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:");
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
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 Apply(KVEvent *)
Apply all currently active patches to event.
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.
Correction to be applied to reconstructed calibrated data.
virtual void ApplyToParticle(KVNucleus *)=0
virtual Bool_t IsParticlePatch()=0
virtual void ApplyToEvent(KVEvent *)=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
Base class container for multi-particle events.
Description of properties and kinematics of atomic nuclei.
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