HighLAND
|
Public Member Functions | |
CreateMiniTree (int argc, char *argv[]) | |
![]() | |
SimpleLoopBase (int argc, char *argv[]) | |
void | Loop (int nmax=0, int imin=0) |
void | Execute () |
![]() | |
virtual bool | InitializeEntry () |
void | InitializeTrees (bool iniVars=true) |
void | InitializeTree (Int_t tree_index, bool iniVars=true) |
void | InitializeTree () |
std::string | GetString (int a) |
std::string | GetSize (const std::string &counter_name, unsigned int size) |
const std::string & | GetVarName (Int_t tree_index, Int_t var_index) const |
Returns the variable name. | |
const std::string & | GetVarName (Int_t var_index) const |
const std::string & | GetCounterName (Int_t tree_index, Int_t counter_index) const |
Returns the counter name. | |
const std::string & | GetCounterName (Int_t counter_index) const |
void | AddCounter (Int_t tree_index, Int_t index, Int_t counter_index, const std::string &counter_name, int size=-1) |
void | AddCounter (Int_t tree_index, Int_t counter_index, const std::string &counter_name, int size=-1) |
void | InitializeCounter (Int_t tree_name, Int_t counter_index) |
void | InitializeCounter (Int_t counter_index) |
void | ResizeCounter (Int_t tree_index, Int_t counter_index, Int_t size) |
void | ResizeCounter (Int_t counter_index, int size) |
bool | HasCounter (Int_t tree_name, Int_t counter_index) |
bool | CheckCounterType (Int_t counter_index, Int_t indx, Int_t var_index) |
void | IncrementCounter (Int_t counter_index) |
void | IncrementCounterForVar (Int_t index) |
Int_t | GetCounterIndexForVar (Int_t index) |
Int_t | GetCounterValue (Int_t counter_index) |
Int_t | GetCounterValue (Int_t tree_index, Int_t counter_index) |
Int_t | GetCounterValueForVar (Int_t index) |
Int_t | GetCounterValueForVar (Int_t tree_index, Int_t index) |
bool | GetFirstIndexFromCounter (Int_t index, Int_t &indx1) |
void | DeleteVar (Int_t tree_index, Int_t index) |
void | AddVar (Int_t index, const std::string &name, const std::string &type, const std::string &doc, double ini=-9999) |
Add a single variable to all trees. | |
void | AddVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &doc, double ini=-9999) |
Add a single variable to a specific tree. | |
void | AddVectorVar (Int_t index, const std::string &name, const std::string &type, const std::string &doc, Int_t counter_index, const std::string &counter_name, Int_t size=-MAXVECTORSIZE) |
Add a vector variable to all trees. | |
void | AddVectorVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &doc, Int_t counter_index, const std::string &counter_name, Int_t size=-MAXVECTORSIZE) |
Add a vector variable to a specific tree. | |
void | AddVectorVar (Int_t index, const std::string &name, const std::string &type, const std::string &doc, const int size) |
Add a vector variable to all trees. | |
void | AddVectorVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &doc, const int size) |
Add a vector variable to a specific tree. | |
void | AddMatrixVar (Int_t index, const std::string &name, const std::string &type, const std::string &doc, Int_t counter_index, const std::string &counter_name, int size1=-MAXVECTORSIZE, int size2=-1) |
Add a matrix variable to all trees. | |
void | AddMatrixVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &doc, Int_t counter_index, const std::string &counter_name, int size1=-MAXVECTORSIZE, int size2=-1) |
Add a matrix variable to a specific tree. | |
void | AddMatrixVar (Int_t index, const std::string &name, const std::string &type, const std::string &doc, int size1=-MAXVECTORSIZE, int size2=-1) |
Add a matrix variable to all trees. | |
void | AddMatrixVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &doc, int size1=-MAXVECTORSIZE, int size2=-1) |
Add a matrix variable to a specific tree. | |
void | Add3DMatrixVar (Int_t index, const std::string &name, const std::string &type, const std::string &doc, Int_t counter_index, const std::string &counter_name, int size1=-MAXVECTORSIZE, int size2=-1, int size3=-1) |
Add a 3D matrix variable to all trees. | |
void | Add3DMatrixVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &doc, Int_t counter_index, const std::string &counter_name, int size1=-MAXVECTORSIZE, int size2=-1, int size3=-1) |
Add a 3D matrix variable to a specific tree. | |
void | AddToyVar (Int_t index, const std::string &name, const std::string &type, const std::string &docstring) |
Add a single analysis variable to all trees. | |
void | AddToyVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &docstring) |
Add a single analysis variable to a specific tree. | |
void | AddToyVectorVar (Int_t index, const std::string &name, const std::string &type, const std::string &docstring, int ncomp) |
Add a vector analysis variable to all trees. | |
void | AddToyVectorVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &docstring, int ncomp) |
Add a vector analysis variable to a specific tree. | |
void | AddToyMatrixVar (Int_t index, const std::string &name, const std::string &type, const std::string &docstring, int ncomp1, int ncomp2) |
Add a matrix analysis variable to all trees. | |
void | AddToyMatrixVar (Int_t tree_index, Int_t index, const std::string &name, const std::string &type, const std::string &docstring, int ncomp1, int ncomp2) |
Add a matrix analysis variable to a specific tree. | |
void | InitializeVar (Int_t index, Double_t ini) |
void | InitializeVectorVar (Int_t index, Double_t ini) |
void | InitializeMatrixVar (Int_t index, Double_t ini) |
void | FillVar (Int_t index, Float_t var) |
Fill a single variable. | |
void | FillVar (Int_t index, Double_t var) |
void | FillVar (Int_t index, Int_t var) |
void | FillVar (Int_t index, const std::string &var) |
Float_t | GetVarValueF (Int_t index) |
Get the value of a var already filled (so to be used in another package) | |
Double_t | GetVarValueD (Int_t index) |
Int_t | GetVarValueI (Int_t index) |
void | FillVectorVar (Int_t index, Float_t var, Int_t indx=-1) |
Fill a vector variable. | |
void | FillVectorVar (Int_t index, Int_t var, Int_t indx=-1) |
void | FillVectorVar (Int_t index, Double_t var, Int_t indx=-1) |
void | FillVectorVar (Int_t index, const std::string &var, Int_t indx=-1) |
void | FillVectorVarFromArray (Int_t index, const Double_t var[], UInt_t size) |
Fill a vector variable from array. | |
void | FillVectorVarFromArray (Int_t index, const Float_t var[], UInt_t size) |
void | FillVectorVarFromArray (Int_t index, const Int_t var[], UInt_t size) |
void | FillVectorVarFromArray (Int_t index, const std::string var[], UInt_t size) |
Float_t | GetVectorVarValueF (Int_t index, Int_t i1) |
Get the value of a var already filled (so to be used in another package) | |
Double_t | GetVectorVarValueD (Int_t index, Int_t i1) |
Int_t | GetVectorVarValueI (Int_t index, Int_t i1) |
void | FillMatrixVar (Int_t index, Float_t var, Int_t indx1, Int_t indx2) |
Fill a matrix variable. | |
void | FillMatrixVar (Int_t index, Int_t var, Int_t indx1, Int_t indx2) |
void | FillMatrixVar (Int_t index, Double_t var, Int_t indx1, Int_t indx2) |
void | FillMatrixVarFromArray (Int_t index, const Double_t var[], Int_t indx1, UInt_t size) |
Fill a matrix variable from array. | |
void | FillMatrixVarFromArray (Int_t index, const Float_t var[], Int_t indx1, UInt_t size) |
void | FillMatrixVarFromArray (Int_t index, const Int_t var[], Int_t indx1, UInt_t size) |
void | FillMatrixVarFromArray (Int_t index, const Double_t var[], UInt_t size) |
Fill a matrix variable from array. | |
void | FillMatrixVarFromArray (Int_t index, const Float_t var[], UInt_t size) |
void | FillMatrixVarFromArray (Int_t index, const Int_t var[], UInt_t size) |
Float_t | GetMatrixVarValueF (Int_t index, Int_t i1, Int_t i2) |
Get the value of a var already filled (so to be used in another package) | |
Double_t | GetMatrixVarValueD (Int_t index, Int_t i1, Int_t i2) |
Int_t | GetMatrixVarValueI (Int_t index, Int_t i1, Int_t i2) |
void | Fill3DMatrixVar (Int_t index, Float_t var, Int_t indx1, Int_t indx2, Int_t indx3) |
Fill a 3D matrix variable. | |
void | Fill3DMatrixVar (Int_t index, Int_t var, Int_t indx1, Int_t indx2, Int_t indx3) |
void | Fill3DMatrixVar (Int_t index, Double_t var, Int_t indx1, Int_t indx2, Int_t indx3) |
void | Fill3DMatrixVarFromArray (Int_t index, const Double_t var[], Int_t indx1, Int_t indx2, UInt_t size) |
Fill a 3D matrix variable from array. | |
void | Fill3DMatrixVarFromArray (Int_t index, const Float_t var[], Int_t indx1, Int_t indx2, UInt_t size) |
void | Fill3DMatrixVarFromArray (Int_t index, const Int_t var[], Int_t indx1, Int_t indx2, UInt_t size) |
void | FillToyVar (Int_t index, Int_t var) |
Fill a single analysis variable. | |
void | FillToyVar (Int_t index, Float_t var) |
void | FillToyVar (Int_t index, Double_t var) |
Float_t | GetToyVarValueF (Int_t index) |
Get the value of a var already filled (so to be used in another package) | |
Double_t | GetToyVarValueD (Int_t index) |
Int_t | GetToyVarValueI (Int_t index) |
void | FillToyVectorVar (Int_t index, Int_t var, Int_t comp) |
Fill a vector analysis variable. | |
void | FillToyVectorVar (Int_t index, Float_t var, Int_t comp) |
void | FillToyVectorVar (Int_t index, Double_t var, Int_t comp) |
Float_t | GetToyVectorVarValueF (Int_t index, Int_t i1) |
Get the value of a var already filled (so to be used in another package) | |
Double_t | GetToyVectorVarValueD (Int_t index, Int_t i1) |
Int_t | GetToyVectorVarValueI (Int_t index, Int_t i1) |
void | FillToyMatrixVar (Int_t index, Int_t var, Int_t comp1, Int_t comp2) |
Fill a matrix analysis variable. | |
void | FillToyMatrixVar (Int_t index, Float_t var, Int_t comp1, Int_t comp2) |
void | FillToyMatrixVar (Int_t index, Double_t var, Int_t comp1, Int_t comp2) |
void | InitializeAnalysisVar (Int_t index, Double_t ini) |
void | InitializeAnalysisVectorVar (Int_t index, Double_t ini) |
void | FillTree (Int_t tree_index) |
Fill a specific tree. | |
void | FillTree () |
Fill the current tree. | |
void | WriteTree (const std::string &file, const std::string &conf) |
Write a specific tree into a file. | |
void | WriteTrees (const std::string &file) |
Write all trees into a file. | |
void | AddTreeWithName (Int_t tree_index, const std::string &tree_name, TTree *tree=NULL) |
Add a tree provided its index and name. | |
bool | OpenOutputFile (const std::string &file) |
open the output file | |
void | CloseOutputFile () |
close the output file | |
bool | ValidateVarNameAndIndex (Int_t tree_index, Int_t var_index, const std::string &var_name) |
bool | IsSpecialTree (Int_t tree_index) |
void | SetToyIndex (Int_t index) |
Set and gets the index of the current toy experiment. | |
Int_t | GetToyIndex () |
void | SetNToys (Int_t tree_index, int ntoys) |
Sets and gets the number of toy experiments for a given configuration. | |
UInt_t | GetNToys (Int_t tree_index) |
Get the number of toys for a given tree. | |
UInt_t | GetNToys () |
Get the number of toys for the current tree. | |
void | AddToyWeight (Double_t w) |
void | FillMicroTrees () |
void | SetFillSingleTree (Int_t tree_index) |
void | SetFillAllTrees () |
void | CheckVariableType (Int_t index, const std::string &dim, const std::string &type, Bool_t exist) |
void | SetDocStringManager (DocStringManager *doc) |
DocStringManager & | docstrings () |
![]() | |
std::vector< TTree *> & | GetTrees () |
Returns the map of trees. | |
TTree * | GetTree (Int_t index) |
Returns the a tree with a given index. | |
TTree * | GetTree (const std::string &name) |
Returns the a tree with a given name. | |
TTree * | GetTree () |
Returns the a tree set as current. | |
void | ReadTree (const std::string &file, Int_t index) |
Read a tree from a file provided the index. | |
void | ReadTree (const std::string &file, const std::string &name) |
Read a tree from a file provided the name. | |
void | ReadFile (const std::string &file) |
Read all trees from a file. | |
Int_t | GetTreeIndex (const std::string &tree_name) |
Retuns the tree index provided the name. | |
std::string | GetTreeName (Int_t index) |
Retuns the tree name provided the index. | |
Int_t | GetCurrentTree () const |
Retuns the current tree index. | |
std::string | GetCurrentTreeName () |
Retuns the current tree name. | |
void | SetCurrentTree (Int_t index) |
Sets the current tree provided the index. | |
void | SetCurrentTree (const std::string &tree_name) |
Sets the current tree provided the name. | |
bool | HasTree (Int_t index) |
Check the existence of a tree provided the index. | |
bool | HasTree (const std::string &tree_name) |
Check the existence of a tree provided the name. | |
Protected Types | |
enum | miniTreeIndex { minitree = OutputManager::enumSpecialTreesLast+1 } |
Protected Member Functions | |
virtual bool | Initialize () |
virtual bool | InitializeSpill () |
virtual void | DefineOutputTree () |
Define the tree that should be written to the output file. | |
virtual void | FinalizeSpill () |
Finalize each spill, including cleaning up data read from the input file. | |
virtual void | Finalize () |
virtual bool | Process () |
virtual bool | CheckTruthFillMiniTree (const AnaSpill &spill) |
virtual bool | CheckReconFillMiniTree (const AnaBunchB &bunch) |
virtual bool | CheckReconFillMiniTreeOutOfBunch (const AnaBunchB &bunch) |
virtual bool | CheckTrueVertexReaction (const AnaTrueVertex &vtx) |
virtual bool | CheckTrueVertexDetector (unsigned long det) |
virtual void | FillMiniTree () |
virtual void | FillRooTrackerVtxTree () |
virtual void | FilterRooTrackerVtxTree () |
virtual void | WriteGeometry () |
void | DeleteUninterestingBunches () |
virtual AnaSpillB * | MakeSpill () |
virtual AnaBeamB * | MakeBeam () |
![]() | |
void | PrintUsage (const std::string &programName) |
Print the program's usage statement. | |
HighlandInputManager & | input () |
void | FillConfigTree () |
Fill the "config" tree, which includes details of the analysis cuts etc. | |
Protected Attributes | |
RooTrackerVtxManager | _rooVtxManager |
bool | _saveGeometry |
bool | _saveRoo |
bool | _filterRoo |
bool | _saveTPCInfo |
bool | _saveFGDInfo |
bool | _saveECALInfo |
bool | _saveP0DInfo |
bool | _saveSMRDInfo |
bool | _saveTrackerInfo |
bool | _saveReconDirTECALInfo |
bool | _saveReconDirPECALInfo |
bool | _saveReconDirP0DInfo |
bool | _saveReconDirFGDOnlyInfo |
bool | _useTPC1 |
bool | _useTPC2 |
bool | _useTPC3 |
bool | _useFGD1 |
bool | _useFGD2 |
bool | _useP0D |
bool | _useDsECal |
bool | _useTrECal |
bool | _useP0DECal |
bool | _useSMRD |
bool | _useTPC1outOfBunch |
bool | _useTPC2outOfBunch |
bool | _useTPC3outOfBunch |
bool | _useFGD1outOfBunch |
bool | _useFGD2outOfBunch |
bool | _useP0DoutOfBunch |
bool | _useDsECaloutOfBunch |
bool | _useTrECaloutOfBunch |
bool | _useP0DECaloutOfBunch |
bool | _useSMRDoutOfBunch |
bool | _saveTrueNuNC |
bool | _saveTrueAntiNuNC |
bool | _saveTrueNumuCC |
bool | _saveTrueAntiNumuCC |
bool | _saveTrueNueCC |
bool | _saveTrueAntiNueCC |
Double_t | _POTSincePreviousSavedSpill |
Int_t | _SpillsSincePreviousSavedSpill |
bool | _lastSpillSaved |
std::vector< SubDetId::SubDetEnum > | _saveTrueVertexInDet |
AnaSpill * | _spill |
UInt_t | _currentGeomID |
![]() | |
Long64_t | _entry |
The current entry in the file. | |
std::string | _inputFileName |
Input file name, as specified by the user. | |
std::string | _inputFileType |
std::string | _outputFileName |
The output file name, as specified by the user. | |
bool | _cosmicMode |
bool | _versionCheck |
Check version compatibility between nd280AnalysisTools compilation and oaAnalysis file. | |
MemoryUsage | _memory |
Memory logging. | |
CorrectionManager | _corrections |
Correction manager. | |
DocStringManager | _docStrings |
DocStrings manager. | |
![]() | |
std::string | _default_docstring |
DocStringManager * | _doc |
std::vector< Double_t > | _toyWeights |
int | _toy_index |
current toy experiment index | |
Int_t | _single_tree_fill |
std::vector< std::vector< std::string > > | _tree_vars_all_vars |
The names of all variables added. | |
std::vector< std::vector< std::string > > | _tree_vars_all_counters |
The names of all counters added. | |
std::vector< std::vector< Int_t > > | _link_var_to_counter |
Correspondece between a variable index and the counter index. | |
std::vector< std::vector< Int_t > > | _tree_vars_counter_size |
The size of the counter: 0 for variable size vectors, >0 for fix size vectors. | |
std::vector< std::vector< Int_t > > | _tree_vars_counter |
The counter it self. | |
std::vector< std::vector< Int_t > > | _tree_vars_int |
Single variables. | |
std::vector< std::vector< Float_t > > | _tree_vars_float |
std::vector< std::vector< Double_t > > | _tree_vars_double |
std::vector< std::vector< achar > > | _tree_vars_char |
std::vector< std::vector< int_vector *> > | _tree_vars_int_vector |
Vector variables (1 index) | |
std::vector< std::vector< float_vector *> > | _tree_vars_float_vector |
std::vector< std::vector< double_vector *> > | _tree_vars_double_vector |
std::vector< std::vector< char_vector *> > | _tree_vars_char_vector |
std::vector< std::vector< int_matrix *> > | _tree_vars_int_matrix |
Matrix variables (2 indices) | |
std::vector< std::vector< float_matrix *> > | _tree_vars_float_matrix |
std::vector< std::vector< double_matrix *> > | _tree_vars_double_matrix |
std::vector< std::vector< char_matrix *> > | _tree_vars_char_matrix |
std::vector< std::vector< int_3Dmatrix *> > | _tree_vars_int_3Dmatrix |
3D matrix variables (3 indices) | |
std::vector< std::vector< float_3Dmatrix *> > | _tree_vars_float_3Dmatrix |
std::vector< std::vector< double_3Dmatrix *> > | _tree_vars_double_3Dmatrix |
std::vector< std::vector< Int_t > > | _tree_vars_used_counter |
The counter it self. | |
std::vector< std::vector< Int_t > > | _tree_vars_used_int |
Single variables. | |
std::vector< std::vector< Int_t > > | _tree_vars_used_float |
std::vector< std::vector< Int_t > > | _tree_vars_used_double |
std::vector< std::vector< Int_t > > | _tree_vars_used_char |
std::vector< std::vector< Int_t > > | _tree_vars_used_int_vector |
Vector variables (1 index) | |
std::vector< std::vector< Int_t > > | _tree_vars_used_float_vector |
std::vector< std::vector< Int_t > > | _tree_vars_used_double_vector |
std::vector< std::vector< Int_t > > | _tree_vars_used_char_vector |
std::vector< std::vector< Int_t > > | _tree_vars_used_int_matrix |
Matrix variables (2 indices) | |
std::vector< std::vector< Int_t > > | _tree_vars_used_float_matrix |
std::vector< std::vector< Int_t > > | _tree_vars_used_double_matrix |
std::vector< std::vector< Int_t > > | _tree_vars_used_char_matrix |
std::vector< std::vector< Int_t > > | _tree_vars_used_int_3Dmatrix |
3D matrix variables (3 indices) | |
std::vector< std::vector< Int_t > > | _tree_vars_used_float_3Dmatrix |
std::vector< std::vector< Int_t > > | _tree_vars_used_double_3Dmatrix |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_int |
–— Vectors containing whether a given index is used or not More... | |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_float |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_double |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_char |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_int_vector |
Vector variables (1 index) | |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_float_vector |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_double_vector |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_char_vector |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_int_matrix |
Matrix variables (2 indices) | |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_float_matrix |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_double_matrix |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_char_matrix |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_int_3Dmatrix |
3D matrix variables (3 indices) | |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_float_3Dmatrix |
std::vector< std::vector< Bool_t > > | _tree_vars_exist_double_3Dmatrix |
![]() | |
TFile * | _file |
Root input or output file. | |
std::vector< TTree *> | _trees |
Vector of trees. | |
std::vector< TTree *> | _trees_nonull |
Vector of non NULL trees. | |
std::vector< Int_t > | _trees_indices |
Vector of indices for the non NULL TTree in previous vector. | |
Int_t | _current_tree |
The current tree. | |
Additional Inherited Members | |
![]() | |
enum | enumStandardMicroTrees_OutputManager { NTOYS =0, toy_weight, toy_index, enumStandardMicroTreesLast_OutputManager } |
enum | enumSpecialTrees { config =0, header, truth, NRooTrackerVtx, GRooTrackerVtx, RooTrackerVtx, enumSpecialTreesLast } |
Definition at line 10 of file CreateMiniTree.hxx.
|
protectedvirtual |
Tidy up, including closing the output file. Called after all spills have beem read.
Reimplemented from SimpleLoopBase.
Definition at line 319 of file CreateMiniTree.cxx.
|
protectedvirtual |
Initialize the input manager etc, and calls the derived version of the function. Called before any spills are read.
Reimplemented from SimpleLoopBase.
Definition at line 66 of file CreateMiniTree.cxx.
|
inlineprotectedvirtual |
Initialize each spill, including reading it from the input file. Called before Process().
Reimplemented from SimpleLoopBase.
Definition at line 20 of file CreateMiniTree.hxx.
|
protectedvirtual |
The main function that should be overridden in the derived class. Called once for each spill, after it has been read in from the input file. The current spill can be accessed using ND::input().GetSpill().
Implements SimpleLoopBase.
Definition at line 278 of file CreateMiniTree.cxx.