1 #ifndef EventVariationManager_h 2 #define EventVariationManager_h 4 #include "EventVariationBase.hxx" 5 #include "SelectionManager.hxx" 7 #include "ToyExperiment.hxx" 10 const UInt_t NMAXEVENTVARIATIONS=100;
41 std::vector<EventVariationBase*>
GetEventVariations(
const std::vector<Int_t>& indices)
const;
77 void Initialize(Int_t nevents);
87 nSys = _nEventVariationsEnabled;
110 int _nEventVariationsEnabled;
bool HasEventVariations() const
Is there any EventVariation added ?
UInt_t GetNEventVariations() const
Returns the number of EventVariations.
std::vector< EventVariationBase * > & GetEventVariations()
Get the vector of EventVariations.
void DumpEventVariations()
Dump all eventVariations.
bool HasEventVariation(const std::string &name)
Check if an EventVariation with a given name already exists in the manager.
Int_t _eventVariationsEnabled[NMAXEVENTVARIATIONS]
The variation systematics that are enabled.
EventVariationBase * GetEventVariation(const std::string &name) const
Get the EventVariation registered with the given name.
UInt_t GetNEnabledEventVariations()
Returns the number of enabled EventVariations.
void DisableEventVariations(const std::vector< Int_t > &systs)
Disable the EventVariations registered with the given indices.
void DisableAllEventVariations()
Disable all eventVariations.
void ReplaceEventVariation(Int_t index, EventVariationBase *sys)
Replace one of the existing EventVariationBase.
void InitializeEvent(SelectionManager &sel, AnaEventC &event)
Fill the SystBox for the enabled EventVariations.
void EnableAllEventVariations()
Enable all EventVariation eventVariations.
const Int_t * GetEnabledEventVariations(int &nSys)
Returns the vector of indices for all enabled EventVariations.
bool UndoEventVariations(AnaEventC &event)
Undo the event variation (Undo the variation, that is, go back to the previous values of modified obs...
void AddEventVariation(Int_t index, EventVariationBase *sys)
Add a new Event Variation provided its index in the manager and a pointer to it.
std::vector< EventVariationBase * > _eventVariations
The systematics that were registered as eventVariations.
void ApplyEventVariations(const ToyExperiment &toy, AnaEventC &event)
Apply all EventVariations.
void FinalizeEvent(AnaEventC &event)
Delete the SystBox for all EventVariations.
void EnableEventVariations(const std::vector< Int_t > &systs)
Enable the EventVariations registered with the given indices.
std::vector< EventVariationBase * > _eventVariationsWithNull
The systematics that were registered as eventVariations.
void EnableEventVariation(Int_t index)
Enable the EventVariation registered with the given index.
void DisableEventVariation(Int_t index)
Disable the EventVariation registered with the given index.
Int_t GetEventVariationIndex(const std::string &name)
Get the index of a EventVariation registered with the given name.