|
HighLAND
|
#include <DataSample.hxx>
Public Member Functions | |
| DataSample (const std::string &file, double norm=0, const std::string &cut="") | |
| void | SetCut (const std::string &cut) |
| Set and returns the cut to be applied to this sample. | |
| std::string | GetCut () const |
| void | SetNorm (Float_t norm) |
| Set and Get the special normalisation to be used for this sample. | |
| Float_t | GetNorm () const |
| void | SetSystGroup (const std::string &systGroup) |
| Systematic group for this sample. | |
| const std::string & | GetSystGroup () const |
| void | SetSystOption (const std::string &systOption) |
| Systematic option for this sample. | |
| const std::string & | GetSystOption () const |
| const std::string & | GetFilePath () |
| returns the filePath | |
| void | SetNEntries (Int_t en) |
| Set and Get the special normalisation to be used for this sample. | |
| Int_t | GetNEntries () const |
Public Member Functions inherited from TreeManager | |
| 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. | |
Public Member Functions inherited from Header | |
| Header () | |
| constructor | |
| void | IncrementPOTBySpill (const AnaSpillC &spill) |
| void | IncrementPOTByFile (Double_t pot, bool bySpillPOT=true) |
| void | ReadHeader (const std::string &file) |
| Read the "header" tree from the given file, but reset POT counting first. | |
| void | ReadHeader (TTree *tree) |
| bool | AddHeader (const std::string &file, bool bySpillPOT=false) |
| Read the "header" tree from the given file and increment the existing POT counting. | |
| bool | AddHeader (TTree *tree, bool bySpillPOT=false) |
| Double_t | GetPOT () |
| This is the method used externaly. It corresponds to POT that passed beam and ND280 quality cuts. | |
| Int_t | GetNSpills () |
| This is the method used externaly. It corresponds to POT that passed beam and ND280 quality cuts. | |
| Double_t | GetPOTNoCut () |
| Get the total recorded POT, before any quality cuts. | |
| Double_t | GetPOTCountedPerFile () |
| Get the total recorded POT counted per file. | |
| Double_t | GetPOTBadBeam () |
| Get the total POT that was removed due to bad beam quality. | |
| Double_t | GetPOTBadND280 () |
| Get the total POT that was removed due to bad ND280 quality. | |
| Double_t | GetPOTGoodBeamGoodND280 () |
| Get the total POT that passed beam and ND280 quality cuts. | |
| void | SetPOTGoodBeamGoodND280 (Double_t good) |
| Set the total POT that passed beam and ND280 quality cuts. | |
| Double_t | GetPOT0KA () |
| Get the total POT that passed beam and ND280 quality cuts, at 0KA horn current. | |
| Double_t | GetPOT200KA () |
| Get the total POT that passed beam and ND280 quality cuts, at 200KA horn current. | |
| Double_t | GetPOT250KA () |
| Get the total POT that passed beam and ND280 quality cuts, at 250KA horn current. | |
| Double_t | GetPOTMinus250KA () |
| Get the total POT that passed beam and ND280 quality cuts, at -250KA horn current. | |
| Double_t | GetPOTOtherKA () |
| Int_t | GetSpillNoCut () |
| Get the total recorded spills, before any quality cuts. | |
| Int_t | GetSpillBadBeam () |
| Get the total spills that was removed due to bad beam quality. | |
| Int_t | GetSpillBadND280 () |
| Get the total spills that was removed due to bad ND280 quality. | |
| Int_t | GetSpillGoodBeamGoodND280 () |
| Get the total spills that passed beam and ND280 quality cuts. | |
| void | DumpPOT () |
| Print the POT information. | |
| void | Reset () |
| Reset all the information in the header. | |
| bool | SetIsMC (bool isMC) |
| Set the Data/MC mode. | |
| bool | GetIsMC () const |
| returns the Data/MC mode | |
| bool | SetSoftwareVersion (const std::string &ver) |
| Set the software version. | |
| const std::string & | GetSoftwareVersion () |
| Returns the software version. | |
Protected Attributes | |
| std::string | _filePath |
| The file path. | |
| Int_t | _nEntries |
| The number of entries in this DataSample. | |
| std::string | _cut |
| An automatic cut to be applied to this sample (for example to select runs) | |
| Float_t | _norm |
| Special normalization for this sample (instead of POT in header) | |
| std::string | _systGroup |
| Systematic group for this sample. | |
| std::string | _systOption |
| Systematic option for this sample. | |
Protected Attributes inherited from TreeManager | |
| 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 | |
Public Attributes inherited from Header | |
| Double_t | _POT_CountedPerFile |
| POT info. | |
| Double_t | _POT_NoCut |
| Double_t | _POT_BadBeam |
| Double_t | _POT_BadND280 |
| Double_t | _POT_GoodBeamGoodND280 |
| Double_t | _POT_0KA |
| Double_t | _POT_200KA |
| Double_t | _POT_250KA |
| Double_t | _POT_m250KA |
| Double_t | _POT_OtherKA |
| Int_t | _Spill_NoCut |
| Spill info. | |
| Int_t | _Spill_BadBeam |
| Int_t | _Spill_BadND280 |
| Int_t | _Spill_GoodBeamGoodND280 |
| bool | _IsMC |
| data or MC mode | |
| std::string | _SoftwareVersion |
| The software version used to create the original oaAnalysis file of the last input file. | |
| bool | _isFirstFile |
| iternal variable that tell us whether a file has been added previously | |
This class handles a data sample with POT and spill info A DataSample inherits from a Tree manager and therefore contains several trees
Definition at line 19 of file DataSample.hxx.
1.8.13