Definition at line 34 of file TGRSISelector.h.
Public Member Functions | |
TGRSISelector (TTree *=nullptr) | |
~TGRSISelector () override=default | |
void | Begin (TTree *tree) override |
virtual void | CreateHistograms ()=0 |
virtual void | EndOfSort () |
virtual void | FillHistograms ()=0 |
Int_t | GetEntry (Long64_t entry, Int_t getall=0) override |
TList * | GetOutputList () const override |
void | Init (TTree *tree) override |
virtual void | InitializeBranches (TTree *tree)=0 |
Bool_t | Notify () override |
Bool_t | Process (Long64_t entry) override |
void | SetObject (TObject *obj) override |
void | SetOption (const char *option) override |
void | SetOutputPrefix (const char *prefix) |
void | SlaveBegin (TTree *tree) override |
void | SlaveTerminate () override |
void | Terminate () override |
Int_t | Version () const override |
Public Attributes | |
TTree * | fChain |
Protected Attributes | |
TGRSIMap< std::string, GCube * > | fCube |
std::map< std::string, TCutG * > | fCuts |
int64_t | fEntry |
TGRSIMap< std::string, TH1 * > | fH1 |
TGRSIMap< std::string, TH2 * > | fH2 |
TGRSIMap< std::string, TH3 * > | fH3 |
TGRSIMap< std::string, THnSparseF * > | fHSparse |
TPPG * | fPpg {nullptr} |
TRunInfo * | fRunInfo {nullptr} |
TGRSIMap< std::string, GHSym * > | fSym |
TGRSIMap< std::string, TTree * > | fTree |
Private Member Functions | |
void | CheckSizes (const char *usage) |
ClassDefOverride (TGRSISelector, 2) | |
Private Attributes | |
TAnalysisOptions * | fAnalysisOptions {nullptr} |
Int_t | fFirstRunNumber |
Int_t | fFirstSubRunNumber |
std::string | fOutputPrefix |
#include <TGRSISelector.h>
|
inline |
pointer to the analyzed TTree or TChain
Definition at line 41 of file TGRSISelector.h.
References SetOutputPrefix().
|
overridedefault |
|
override |
The Begin() function is called at the start of the query. When running with PROOF Begin() is only called on the client. The tree argument is deprecated (on PROOF 0 is passed).
Definition at line 39 of file TGRSISelector.cxx.
|
private |
Function to check size of objects in output list.
Definition at line 301 of file TGRSISelector.cxx.
References DRED, RESET_COLOR, and SIZE_LIMIT.
Referenced by SlaveBegin(), SlaveTerminate(), and Terminate().
|
private |
|
pure virtual |
Implemented in AngularCorrelationSelector, ExampleTreeSelector, ExampleEventSelector, TimeWalkSelector, AlphanumericSelector, CrossTalk, ExampleFragmentSelector, and GriffinKValueSelector.
Referenced by SlaveBegin().
|
inlinevirtual |
Definition at line 63 of file TGRSISelector.h.
Referenced by SlaveTerminate().
|
pure virtual |
Implemented in AngularCorrelationSelector, ExampleTreeSelector, ExampleEventSelector, TimeWalkSelector, AlphanumericSelector, CrossTalk, ExampleFragmentSelector, and GriffinKValueSelector.
Referenced by Process().
|
inlineoverride |
Definition at line 49 of file TGRSISelector.h.
References fChain.
|
inlineoverride |
this does the same as TSelector::GetOutputList()
Definition at line 56 of file TGRSISelector.h.
Referenced by ExampleFragmentSelector::CreateHistograms(), GriffinKValueSelector::CreateHistograms(), CrossTalk::CreateHistograms(), AlphanumericSelector::CreateHistograms(), TimeWalkSelector::CreateHistograms(), ExampleEventSelector::CreateHistograms(), ExampleTreeSelector::CreateHistograms(), and AngularCorrelationSelector::CreateHistograms().
|
override |
The Init() function is called when the selector needs to initialize a new tree or chain. Typically here the branch addresses and branch pointers of the tree will be set. It is normally not necessary to make changes to the generated code, but the routine can be extended by the user if needed. Init() will be called many times when running on PROOF (once per file to be processed). Set branch addresses and branch pointers
Definition at line 273 of file TGRSISelector.cxx.
References fChain, and InitializeBranches().
|
pure virtual |
Implemented in AngularCorrelationSelector, ExampleTreeSelector, ExampleEventSelector, TimeWalkSelector, AlphanumericSelector, CrossTalk, ExampleFragmentSelector, and GriffinKValueSelector.
Referenced by Init().
|
override |
The Notify() function is called when a new file is opened. This can be either for a new TTree in a TChain or when when a new TTree is started when using PROOF. It is normally not necessary to make changes to the generated code, but the routine can be extended by the user if needed. The return value is currently not used.
Definition at line 290 of file TGRSISelector.cxx.
|
override |
The Process() function is called for each entry in the tree (or possibly keyed object in the case of PROOF) to be processed. The entry argument specifies which entry in the currently loaded tree is to be processed. It can be passed to either TGRSISelector::GetEntry() or TBranch::GetEntry() to read either all or the required parts of the data. When processing keyed objects with PROOF, the object is already loaded and is available via the fObject pointer.
This function should contain the "body" of the analysis. It can contain simple or elaborate selection criteria, run algorithms on the data of the event and typically fill histograms.
The processing can be stopped by calling Abort().
Use fStatus to set the return value of TTree::Process().
The return value is currently not used
Definition at line 169 of file TGRSISelector.cxx.
References TGRSIOptions::AnalysisOptions(), DRED, fChain, fEntry, FillHistograms(), TChannel::ReadCalFromFile(), TAnalysisOptions::ReadFromFile(), and RESET_COLOR.
|
inlineoverride |
Definition at line 54 of file TGRSISelector.h.
|
inlineoverride |
Definition at line 53 of file TGRSISelector.h.
|
inline |
Definition at line 64 of file TGRSISelector.h.
References fOutputPrefix.
Referenced by AlphanumericSelector::AlphanumericSelector(), AngularCorrelationSelector::AngularCorrelationSelector(), CrossTalk::CrossTalk(), ExampleEventSelector::ExampleEventSelector(), ExampleFragmentSelector::ExampleFragmentSelector(), ExampleTreeSelector::ExampleTreeSelector(), GriffinKValueSelector::GriffinKValueSelector(), TGRSISelector(), and TimeWalkSelector::TimeWalkSelector().
|
override |
The SlaveBegin() function is called after the Begin() function. When running with PROOF SlaveBegin() is called on each slave server. The tree argument is deprecated (on PROOF 0 is passed).
Definition at line 47 of file TGRSISelector.cxx.
References TGRSIOptions::AnalysisOptions(), CheckSizes(), CreateHistograms(), fAnalysisOptions, fCuts, fPpg, fRunInfo, TGRSIOptions::Get(), TSingleton< TParserLibrary >::Get(), TParserLibrary::Load(), TGRSIOptions::ParserLibrary(), TGRSIOptions::Print(), TChannel::ReadCalFile(), GValue::ReadValFile(), and GValue::Size().
|
override |
The SlaveTerminate() function is called after all entries or objects have been processed. When running with PROOF SlaveTerminate() is called on each slave server.
Definition at line 209 of file TGRSISelector.cxx.
References CheckSizes(), EndOfSort(), and TChannel::GetChannelMap().
|
override |
The Terminate() function is the last function to be called during a query. It always runs on the client, it can be used to present the results graphically or save the results to file.
Definition at line 221 of file TGRSISelector.cxx.
References TGRSIOptions::AnalysisOptions(), CheckSizes(), TRunInfo::FirstRunNumber(), TRunInfo::FirstSubRunNumber(), fOutputPrefix, fPpg, fRunInfo, TGRSIOptions::Get(), TSingleton< TRunInfo >::Get(), TRunInfo::LastRunNumber(), TRunInfo::LastSubRunNumber(), TGRSIOptions::LogFile(), TRunInfo::Print(), TRunInfo::RunNumber(), TRunInfo::SubRunNumber(), TPPG::Write(), TAnalysisOptions::WriteToFile(), and TChannel::WriteToRoot().
|
inlineoverride |
Definition at line 43 of file TGRSISelector.h.
|
private |
! pointer to analysis options
Definition at line 82 of file TGRSISelector.h.
Referenced by SlaveBegin().
TTree* TGRSISelector::fChain |
Definition at line 36 of file TGRSISelector.h.
Referenced by GetEntry(), Init(), and Process().
! map for GRSISort's 3-D histograms
Definition at line 71 of file TGRSISelector.h.
|
protected |
|
protected |
! entry number currently being processed
Definition at line 77 of file TGRSISelector.h.
Referenced by ExampleTreeSelector::CreateHistograms(), and Process().
|
private |
! run number of first file
Definition at line 83 of file TGRSISelector.h.
|
private |
! sub-run number of first file
Definition at line 84 of file TGRSISelector.h.
|
protected |
! map for 1-D histograms
Definition at line 67 of file TGRSISelector.h.
Referenced by ExampleFragmentSelector::CreateHistograms(), GriffinKValueSelector::CreateHistograms(), AlphanumericSelector::CreateHistograms(), CrossTalk::CreateHistograms(), TimeWalkSelector::CreateHistograms(), ExampleEventSelector::CreateHistograms(), ExampleTreeSelector::CreateHistograms(), AngularCorrelationSelector::CreateHistograms(), GriffinKValueSelector::FillHistograms(), CrossTalk::FillHistograms(), ExampleEventSelector::FillHistograms(), ExampleTreeSelector::FillHistograms(), and AngularCorrelationSelector::FillHistograms().
|
protected |
! map for 2-D histograms
Definition at line 68 of file TGRSISelector.h.
Referenced by ExampleFragmentSelector::CreateHistograms(), GriffinKValueSelector::CreateHistograms(), CrossTalk::CreateHistograms(), AlphanumericSelector::CreateHistograms(), TimeWalkSelector::CreateHistograms(), ExampleEventSelector::CreateHistograms(), ExampleTreeSelector::CreateHistograms(), AngularCorrelationSelector::CreateHistograms(), ExampleFragmentSelector::FillHistograms(), GriffinKValueSelector::FillHistograms(), AlphanumericSelector::FillHistograms(), CrossTalk::FillHistograms(), TimeWalkSelector::FillHistograms(), ExampleEventSelector::FillHistograms(), ExampleTreeSelector::FillHistograms(), and AngularCorrelationSelector::FillHistograms().
|
protected |
! map for 3-D histograms
Definition at line 69 of file TGRSISelector.h.
Referenced by TimeWalkSelector::CreateHistograms(), and TimeWalkSelector::FillHistograms().
|
protected |
! map for sparse n-D histograms
Definition at line 72 of file TGRSISelector.h.
Referenced by ExampleFragmentSelector::CreateHistograms(), GriffinKValueSelector::CreateHistograms(), CrossTalk::CreateHistograms(), AlphanumericSelector::CreateHistograms(), TimeWalkSelector::CreateHistograms(), ExampleEventSelector::CreateHistograms(), and AngularCorrelationSelector::CreateHistograms().
|
private |
! pre-fix for output files
Definition at line 81 of file TGRSISelector.h.
Referenced by SetOutputPrefix(), and Terminate().
|
protected |
! pointer to the PPG
Definition at line 74 of file TGRSISelector.h.
Referenced by SlaveBegin(), and Terminate().
|
protected |
! pointer to the run info
Definition at line 75 of file TGRSISelector.h.
Referenced by SlaveBegin(), and Terminate().
! map for GRSISort's symmetric 2-D histograms
Definition at line 70 of file TGRSISelector.h.
|
protected |
! map for trees
Definition at line 73 of file TGRSISelector.h.
Referenced by ExampleTreeSelector::CreateHistograms(), and ExampleTreeSelector::FillHistograms().