4#include "KVDataPatchList.h"
5#include "KVDataPatch.h"
22 Info(
"FillPatchList",
"No data patch plugins defined");
26 while (!plugins.
End()) {
34 Warning(
"FillPatchList",
"Cannot load plugin data patch %s", plug.
Data());
95 Info(
"InitializePatchList",
96 "Initializing patches for |%s|%s|%04d|%s|%02d|",
97 dataset.
Data(), datatype.
Data(), runnumber, dataseries.
Data(), datareleasenumber);
105 if (patch->
IsRequired(dataset, datatype, runnumber, dataseries, datareleasenumber, streamerinfolist)) {
138 while ((particle =
event->GetNextParticle())) {
154 Info(
"Print",
"No currently active data patches");
158 Info(
"Print",
"Currently active event-level patches:");
162 Info(
"Print",
"Currently active particle-level patches:");
winID h TVirtualViewer3D TVirtualGLPainter p
Base class for KaliVeda framework.
static const Char_t * GetListOfPlugins(const Char_t *base)
static const Char_t * GetPluginURI(const Char_t *base, const Char_t *plugin)
static TPluginHandler * LoadPlugin(const Char_t *base, const Char_t *uri="0")
List of corrections to be applied to reconstructed calibrated data.
Bool_t fEventPatches
=kTRUE if there are event-level patches
virtual ~KVDataPatchList()
Destructor.
void Print(Option_t *="") const
Print list of currently active patches.
Bool_t fParticlePatches
=kTRUE if there are particle-level patches
static KVUniqueNameList * fPatchList
list of all defined patches
void InitializePatchList(TString dataset, TString datatype, Int_t runnumber, TString dataseries, Int_t datareleasenumber, const TList *streamerinfolist)
Fill lists of active patches for given data.
void FillPatchList()
Fill static list of patches from KVDataPatch plugin list.
KVUniqueNameList fActiveParticlePatches
list of currently active particle-level patches
KVUniqueNameList fActiveEventPatches
list of currently active event-level patches
KVDataPatchList()
Default constructor.
void Apply(KVReconstructedEvent *)
Apply all currently active patches to event.
Correction to be applied to reconstructed calibrated data.
virtual void ApplyToParticle(KVReconstructedNucleus *)=0
virtual void ApplyToEvent(KVReconstructedEvent *)=0
virtual Bool_t IsParticlePatch()=0
virtual Bool_t IsRequired(TString dataset, TString datatype, Int_t runnumber, TString dataseries, Int_t datareleasenumber, const TList *streamerinfolist)=0
virtual Bool_t IsEventPatch()=0
Event containing KVReconstructedNucleus nuclei reconstructed from hits in detectors.
Nuclei reconstructed from data measured by a detector array .
virtual void Clear(Option_t *option="")
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
KVString Next(Bool_t strip_whitespace=kFALSE) const
Optimised list in which named objects can only be placed once.
virtual void Add(TObject *obj)
virtual void Print(Option_t *option, const char *wildcard, Int_t recurse=1) const
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual void Info(const char *method, const char *msgfmt,...) const
const char * Data() const