Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Acclaim::SummarySet Class Reference

Public Member Functions

 SummarySet (const char *pathToSummaryFiles, const char *treeName="sumTree", const char *summaryBranchName="sum", bool useProof=false)
 
Long64_t N () const
 
AnitaEventSummarysummary () const
 
Long64_t getEntry (Long64_t entry)
 
Long64_t getEvent (UInt_t eventNumber)
 
Long64_t first ()
 
Long64_t last ()
 
UInt_t getFirstTime ()
 
UInt_t getLastTime ()
 
UInt_t getFirstEventNumber ()
 
UInt_t getLastEventNumber ()
 
TH2D * bookTimeHistogram (const char *name, const char *title, int nx, int ny, double yMin, double yMax)
 
TH2D * bookEventNumberHistogram (const char *name, const char *title, int nx, int ny, double yMin, double yMax)
 
Long64_t Process (TSelector *selector, Option_t *option="", Long64_t nentries=TChain::kMaxEntries, Long64_t firstentry=0)
 
TProfile2DAntarcticamakeAntarcticaProf (AnitaPol::AnitaPol_t pol=AnitaPol::kNotAPol, const char *name="", const char *title="", Int_t nx=-1, Int_t ny=-1)
 
TH2DAntarcticamakeAntarcticaHist (AnitaPol::AnitaPol_t pol=AnitaPol::kNotAPol, const char *name="", const char *title="", Int_t nx=-1, Int_t ny=-1)
 
Double_t getTotalSize () const
 
TGraphAntarcticamakePayloadLocationGraph (int stride=TGraphAntarctica::defaultGpsTreeStride)
 
TChain * getChain ()
 
Long64_t Draw (const char *varexp, const TCut &selection, Option_t *option="", Long64_t nentries=TChain::kMaxEntries, Long64_t firstentry=0)
 
Long64_t Draw (const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=TChain::kMaxEntries, Long64_t firstentry=0)
 
Double_t getBytesPerEvent () const
 
void SetUseProof (bool useProof=true)
 
Bool_t GetUseProof ()
 
void addFlagChain (const char *flagFileGlob, const char *flagTreeName="flagTree")
 
TObject * getDrawOutput ()
 

Static Public Member Functions

static TProof * startProof ()
 You take it, you own it, you delete it.
 

Protected Member Functions

void init ()
 
void initProof ()
 
void renameProofCanvas (const char *varexp)
 
void findHist (const char *varexp)
 

Protected Attributes

TString fPathToSummaryFiles
 
TString fTreeName
 The glob passed to the TChain.
 
TString fSummaryBranchName
 The name of the TTrees, default is "sumTree".
 
TChain * fChain
 Branch name of the AnitaEventSummary, default is "sum".
 
Long64_t fN
 The chain of TTrees containing the AnitaEventSummary.
 
AnitaEventSummaryfSum
 The number of entries in the AnitaEventSummary chain, access with SummarySet::N()
 
UInt_t fFirstTime
 Pointer to the current entry in the chain, access with SummarySet::summary()
 
UInt_t fFirstEventNumber
 The realTime of the first entry in the summary chain, useful for booking histograms.
 
UInt_t fLastTime
 The eventNumber of the first entry in the summary chain, useful for booking histograms.
 
UInt_t fLastEventNumber
 The realTime of the last entry in the summary chain, useful for booking histograms.
 
Bool_t fUseProof
 The eventNumber of the last entry in the summary chain, useful for booking histograms.
 
TProof * fProof
 Switch on the Parallel ROOT Facility, for speedy histogram plotting.
 
Bool_t fBuiltIndex
 Pointer to the PROOF session.
 
TChain * fFlagChain
 Built chain index?
 
AnitaEventSummary::EventFlagsfFlags
 An optional chain of TTrees containing just AnitaEventSummary::EventFlags.
 
UInt_t fFlagEventNumber
 Pointer to tree entry of optional flags.
 
TObject * fDrawOutput
 Event number stored with flags to double check event matching.
 

Detailed Description

Definition at line 31 of file SummarySet.h.

Collaboration diagram for Acclaim::SummarySet:
Collaboration graph
[legend]

Member Function Documentation

void Acclaim::SummarySet::findHist ( const char *  varexp)
protected

Parses the varexp to get the created hist name and stores the result in fDrawOutput

Parameters
varexp

Definition at line 306 of file SummarySet.cxx.

Double_t Acclaim::SummarySet::getBytesPerEvent ( ) const
inline

Returns the approximate mean size of each SummaryTree entry

Returns
effective AnitaEventSummary branch size

Definition at line 79 of file SummarySet.h.

Long64_t Acclaim::SummarySet::getEntry ( Long64_t  entry)

Loads entry from the fChain, access with summary()

Parameters
entryis the entry to load
Returns
the number of bytes read (same as TChain::GetEntry(entry))

Definition at line 179 of file SummarySet.cxx.

Long64_t Acclaim::SummarySet::getEvent ( UInt_t  eventNumber)

Loads eventNumber from the fChain, access with summary()

Parameters
eventNumberis the entry to load
Returns
the number of bytes read (same as TChain::GetEntry(entry))

Definition at line 208 of file SummarySet.cxx.

Double_t Acclaim::SummarySet::getTotalSize ( ) const

Counts the number of bytes in each file in fChain

Returns
The sum of the file sizes in fChain (bytes)

Definition at line 152 of file SummarySet.cxx.

void Acclaim::SummarySet::initProof ( )
protected

Enable (disable) PROOF, if fUseProof is true (false)

Definition at line 81 of file SummarySet.cxx.

TGraphAntarctica * Acclaim::SummarySet::makePayloadLocationGraph ( int  stride = TGraphAntarctica::defaultGpsTreeStride)

Use the anitaLocation subclass in the AnitaEventSummary to make a flight path graph

Parameters
strideonly put every nth entry into the graph, default is the same as TGraphAntarctica::defaultGpsTreeStride
Returns
the TGraphAntarctica

Definition at line 418 of file SummarySet.cxx.

void Acclaim::SummarySet::renameProofCanvas ( const char *  varexp)
protected

Little hack to make PROOF give me a histogram and canvas with different names

Parameters
varexpthe Draw expression

Definition at line 341 of file SummarySet.cxx.


The documentation for this class was generated from the following files: