HighLAND
|
#include <AnalysisAlgorithm.hxx>
Public Member Functions | |
AnalysisAlgorithm (AnalysisAlgorithm *ana=NULL) | |
virtual void | Finalize () |
[AnalysisAlgorithm_optional] | |
virtual bool | InitializeSpill () |
virtual void | FinalizeSpill () |
virtual void | InitializeBunch () |
virtual void | FinalizeBunch () |
virtual void | InitializeConfiguration () |
virtual bool | FinalizeConfiguration () |
virtual void | InitializeToy () |
virtual void | FinalizeToy () |
virtual void | InitializeSelection (const SelectionBase &) |
virtual void | FinalizeSelection (const SelectionBase &) |
virtual void | FillCategories () |
virtual void | FillConfigTree () |
virtual AnaEventC * | MakeEvent ()=0 |
[AnalysisAlgorithm_optional] More... | |
virtual bool | Initialize ()=0 |
[AnalysisAlgorithm_mandatory] | |
virtual void | DefineProductions ()=0 |
virtual void | DefineInputConverters ()=0 |
virtual void | DefineSelections ()=0 |
virtual void | DefineCorrections ()=0 |
virtual void | DefineSystematics ()=0 |
virtual void | DefineConfigurations ()=0 |
virtual void | DefineMicroTrees (bool addBase=true)=0 |
virtual void | DefineTruthTree ()=0 |
virtual void | FillMicroTrees (bool addBase=true)=0 |
virtual void | FillToyVarsInMicroTrees (bool addBase=true)=0 |
virtual void | FillTruthTree ()=0 |
void | FinalizeToyBase () |
[AnalysisAlgorithm_mandatory] More... | |
void | SetFillSuccessOnly (bool fill) |
Fill trees and process weight systematics only when any of the branches is successful. | |
bool | GetFillSuccessOnly () |
void | SetInitializeTrees (bool ini) |
Initialize trees at the beginning of each configuration. | |
bool | GetInitializeTrees () |
void | SetMinAccumCutLevelToSave (Int_t level) |
Set the minimum accumulated cut level to save an event into the micro-tree. | |
Int_t | GetMinAccumCutLevelToSave () |
Get the minimum accumulated cut level to save an event into the micro-tree. | |
bool | CheckAccumLevelToSave () |
Check if the condition is fulfilled for at least one branch. | |
void | SetEvent (AnaEventC *event) |
Set the current event into the algorithm and all used algorithms. | |
void | SetToyBox (const ToyBoxB *box, Int_t isel=0) |
Set the current box into the algorithm and all used algorithms. This is useful when one Analysis uses another. | |
void | UseAnalysis (AnalysisAlgorithm *ana) |
Used a given analysis. | |
void | SetSelectedSelection (Int_t sel) |
Select one of the selections. | |
void | SetVersionCheck (bool check) |
Set version checking. | |
void | SetAnalysisPoint (enumAnalysisPoint point) |
Set the point of the analysis at which AnalysisLoop is. | |
HighlandInputManager & | input () |
SelectionManager & | sel () |
CorrectionManager & | corr () |
SystematicManager & | syst () |
EventWeightManager & | eweight () |
EventVariationManager & | evar () |
OutputManager & | output () |
ConfigurationManager & | conf () |
CategoryManager & | cat () |
DocStringManager & | doc () |
virtual const ToyBoxB & | boxB (Int_t isel=-1) const |
Protected Attributes | |
HighlandInputManager * | _inputManager |
Input Manager: access to the current Event. | |
CorrectionManager * | _corrManager |
Correction Manager. | |
SystematicManager * | _systManager |
Systematics Manager. | |
EventWeightManager * | _weightManager |
EventWeight Manager. | |
EventVariationManager * | _variationManager |
EventVariation Manager. | |
OutputManager * | _outputManager |
Output Manager. | |
ConfigurationManager * | _confManager |
Configuration Manager. | |
SelectionManager * | _selManager |
CategoryManager * | _categManager |
DocStringManager * | _docManager |
const ToyBoxB * | _box [NMAXSELECTIONS] |
The analysis box. | |
Int_t | _min_accum_cut_level |
the minimum accumulated cut level to save an event into the micro-tree | |
bool | _fillSuccessOnly |
Fill trees and process weight systematics only when any of the branches is succesful. | |
bool | _initializeTrees |
Initialize trees at the beginning of each configuration. | |
AnaEventC * | _event |
The current event. | |
std::vector< AnalysisAlgorithm * > | _usedAnalyses |
The Vector of used analysis. | |
Int_t | _selectedSelection |
The selected selection. | |
bool | _setMethodCalled |
Boolean parameter to know whether nny of the methods that sets things into used analysis has been called. | |
bool | _versionCheck |
enumAnalysisPoint | _analysisPoint |
This class provides a base for user analyses. It handles many common functions, and provides a structure so that users don't have to write too much "boiler-plate" code.
User analyses should inherit from this class.
Definition at line 22 of file AnalysisAlgorithm.hxx.
AnalysisAlgorithm::AnalysisAlgorithm | ( | AnalysisAlgorithm * | ana = NULL | ) |
Constructor, which instantiates the necessary converters for converting input files to the AnaSpill format.
Boolean parameter to know whether nny of the methods that sets things into used analysis has been called
Version check enabled by default
Definition at line 7 of file AnalysisAlgorithm.cxx.
void AnalysisAlgorithm::FinalizeToyBase | ( | ) |
[AnalysisAlgorithm_mandatory]
Finalize toy
Definition at line 184 of file AnalysisAlgorithm.cxx.
|
pure virtual |
[AnalysisAlgorithm_optional]
Create the appropriate event time from an Spill and a Bunch in that spill
Implemented in baseAnalysis, and p0dExampleAnalysis.