GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
GriffinKValueSelector Class Reference

Definition at line 20 of file GriffinKValueSelector.h.

Public Member Functions

 GriffinKValueSelector (TTree *=0)
 
virtual ~GriffinKValueSelector ()
 
void Begin (TTree *tree) override
 
 ClassDef (GriffinKValueSelector, 2)
 
void CreateHistograms ()
 
virtual void EndOfSort ()
 
void FillHistograms ()
 
Int_t GetEntry (Long64_t entry, Int_t getall=0) override
 
TList * GetOutputList () const override
 
void Init (TTree *tree) override
 
void InitializeBranches (TTree *tree)
 
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
 
virtual Int_t Version () const
 

Public Attributes

TTree * fChain
 
TFragmentfFragment
 

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
 
TPPGfPpg {nullptr}
 
TRunInfofRunInfo {nullptr}
 
TGRSIMap< std::string, GHSym * > fSym
 
TGRSIMap< std::string, TTree * > fTree
 

#include <GriffinKValueSelector.h>

+ Inheritance diagram for GriffinKValueSelector:
+ Collaboration diagram for GriffinKValueSelector:

Constructor & Destructor Documentation

◆ GriffinKValueSelector()

GriffinKValueSelector::GriffinKValueSelector ( TTree *  = 0)
inline

Definition at line 25 of file GriffinKValueSelector.h.

References TGRSISelector::SetOutputPrefix().

◆ ~GriffinKValueSelector()

virtual GriffinKValueSelector::~GriffinKValueSelector ( )
inlinevirtual

Definition at line 26 of file GriffinKValueSelector.h.

Member Function Documentation

◆ Begin()

void TGRSISelector::Begin ( TTree *  tree)
overrideinherited

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.

◆ ClassDef()

GriffinKValueSelector::ClassDef ( GriffinKValueSelector  ,
 
)

◆ CreateHistograms()

void GriffinKValueSelector::CreateHistograms ( )
virtual

◆ EndOfSort()

virtual void TGRSISelector::EndOfSort ( )
inlinevirtualinherited

Definition at line 63 of file TGRSISelector.h.

Referenced by TGRSISelector::SlaveTerminate().

◆ FillHistograms()

void GriffinKValueSelector::FillHistograms ( )
virtual

◆ GetEntry()

Int_t TGRSISelector::GetEntry ( Long64_t  entry,
Int_t  getall = 0 
)
inlineoverrideinherited

Definition at line 49 of file TGRSISelector.h.

References TGRSISelector::fChain.

◆ GetOutputList()

◆ Init()

void TGRSISelector::Init ( TTree *  tree)
overrideinherited

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 TGRSISelector::fChain, and TGRSISelector::InitializeBranches().

◆ InitializeBranches()

void GriffinKValueSelector::InitializeBranches ( TTree *  tree)
virtual

Implements TGRSISelector.

◆ Notify()

Bool_t TGRSISelector::Notify ( )
overrideinherited

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.

◆ Process()

Bool_t TGRSISelector::Process ( Long64_t  entry)
overrideinherited

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, TGRSISelector::fChain, TGRSISelector::fEntry, TGRSISelector::FillHistograms(), TChannel::ReadCalFromFile(), TAnalysisOptions::ReadFromFile(), and RESET_COLOR.

◆ SetObject()

void TGRSISelector::SetObject ( TObject *  obj)
inlineoverrideinherited

Definition at line 54 of file TGRSISelector.h.

◆ SetOption()

void TGRSISelector::SetOption ( const char *  option)
inlineoverrideinherited

Definition at line 53 of file TGRSISelector.h.

◆ SetOutputPrefix()

◆ SlaveBegin()

void TGRSISelector::SlaveBegin ( TTree *  tree)
overrideinherited

◆ SlaveTerminate()

void TGRSISelector::SlaveTerminate ( )
overrideinherited

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 TGRSISelector::CheckSizes(), TGRSISelector::EndOfSort(), and TChannel::GetChannelMap().

◆ Terminate()

◆ Version()

virtual Int_t GriffinKValueSelector::Version ( ) const
inlinevirtual

Definition at line 27 of file GriffinKValueSelector.h.

Member Data Documentation

◆ fChain

TTree* TGRSISelector::fChain
inherited

◆ fCube

TGRSIMap<std::string, GCube*> TGRSISelector::fCube
protectedinherited

! map for GRSISort's 3-D histograms

Definition at line 71 of file TGRSISelector.h.

◆ fCuts

std::map<std::string, TCutG*> TGRSISelector::fCuts
protectedinherited

! map of cuts

Definition at line 76 of file TGRSISelector.h.

Referenced by TGRSISelector::SlaveBegin().

◆ fEntry

int64_t TGRSISelector::fEntry
protectedinherited

! entry number currently being processed

Definition at line 77 of file TGRSISelector.h.

Referenced by ExampleTreeSelector::CreateHistograms(), and TGRSISelector::Process().

◆ fFragment

TFragment* GriffinKValueSelector::fFragment

Definition at line 23 of file GriffinKValueSelector.h.

Referenced by FillHistograms().

◆ fH1

◆ fH2

◆ fH3

TGRSIMap<std::string, TH3*> TGRSISelector::fH3
protectedinherited

! map for 3-D histograms

Definition at line 69 of file TGRSISelector.h.

Referenced by TimeWalkSelector::CreateHistograms(), and TimeWalkSelector::FillHistograms().

◆ fHSparse

◆ fPpg

TPPG* TGRSISelector::fPpg {nullptr}
protectedinherited

! pointer to the PPG

Definition at line 74 of file TGRSISelector.h.

Referenced by TGRSISelector::SlaveBegin(), and TGRSISelector::Terminate().

◆ fRunInfo

TRunInfo* TGRSISelector::fRunInfo {nullptr}
protectedinherited

! pointer to the run info

Definition at line 75 of file TGRSISelector.h.

Referenced by TGRSISelector::SlaveBegin(), and TGRSISelector::Terminate().

◆ fSym

TGRSIMap<std::string, GHSym*> TGRSISelector::fSym
protectedinherited

! map for GRSISort's symmetric 2-D histograms

Definition at line 70 of file TGRSISelector.h.

◆ fTree

TGRSIMap<std::string, TTree*> TGRSISelector::fTree
protectedinherited

! map for trees

Definition at line 73 of file TGRSISelector.h.

Referenced by ExampleTreeSelector::CreateHistograms(), and ExampleTreeSelector::FillHistograms().