4 #include "AnitaConventions.h" 5 #include "TGraphAntarctica.h" 6 #include "AnitaEventSummary.h" 8 #ifndef ACCLAIM_SUMMARY_SET_H 9 #define ACCLAIM_SUMMARY_SET_H 13 #if ROOT_VERSION_CODE < ROOT_VERSION(6,0,8) 14 #define TCHAIN_NENTRIES_DEFAULT TChain::kBigNumber 16 #define TCHAIN_NENTRIES_DEFAULT TChain::kMaxEntries 33 SummarySet(
const char* pathToSummaryFiles,
const char* treeName =
"sumTree",
const char* summaryBranchName =
"sum",
bool useProof =
false);
36 Long64_t N()
const {
return fN;}
40 Long64_t
getEvent(UInt_t eventNumber);
41 Long64_t first(){
return getEntry(0);}
55 TH2D* bookTimeHistogram(
const char* name,
const char* title,
int nx,
int ny,
double yMin,
double yMax);
56 TH2D* bookEventNumberHistogram(
const char* name,
const char* title,
int nx,
int ny,
double yMin,
double yMax);
59 Long64_t Process(TSelector* selector, Option_t* option =
"", Long64_t nentries = TCHAIN_NENTRIES_DEFAULT, Long64_t firstentry = 0);
70 TChain* getChain(){
return fChain;}
71 Long64_t Draw(
const char* varexp,
const TCut &selection, Option_t *option =
"", Long64_t nentries = TCHAIN_NENTRIES_DEFAULT, Long64_t firstentry = 0);
72 Long64_t Draw(
const char* varexp,
const char* selection=
"", Option_t* option =
"", Long64_t nentries = TCHAIN_NENTRIES_DEFAULT, Long64_t firstentry = 0);
82 void SetUseProof(
bool useProof=
true) {
fUseProof = useProof;}
84 void addFlagChain(
const char* flagFileGlob,
const char* flagTreeName =
"flagTree");
97 TString fPathToSummaryFiles;
121 #endif //ACCLAIM_SUMMARY_SET_H Double_t getBytesPerEvent() const
UInt_t fFirstTime
Pointer to the current entry in the chain, access with SummarySet::summary()
TChain * fChain
Branch name of the AnitaEventSummary, default is "sum".
Bool_t fUseProof
The eventNumber of the last 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.
static TProof * startProof()
You take it, you own it, you delete it.
TObject * fDrawOutput
Event number stored with flags to double check event matching.
UInt_t fLastTime
The eventNumber of the first entry in the summary chain, useful for booking histograms.
AnitaEventSummary * fSum
The number of entries in the AnitaEventSummary chain, access with SummarySet::N() ...
void renameProofCanvas(const char *varexp)
Long64_t fN
The chain of TTrees containing the AnitaEventSummary.
Namespace which wraps everything in the library.
TChain * fFlagChain
Built chain index?
AnitaEventSummary::EventFlags * fFlags
An optional chain of TTrees containing just AnitaEventSummary::EventFlags.
Long64_t getEntry(Long64_t entry)
UInt_t fFirstEventNumber
The realTime of the first entry in the summary chain, useful for booking histograms.
TProof * fProof
Switch on the Parallel ROOT Facility, for speedy histogram plotting.
Long64_t getEvent(UInt_t eventNumber)
UInt_t fFlagEventNumber
Pointer to tree entry of optional flags.
TString fSummaryBranchName
The name of the TTrees, default is "sumTree".
TGraphAntarctica * makePayloadLocationGraph(int stride=TGraphAntarctica::defaultGpsTreeStride)
Bool_t fBuiltIndex
Pointer to the PROOF session.
Common analysis format between UCorrelator and Acclaim.
void findHist(const char *varexp)
enum AnitaPol::EAnitaPol AnitaPol_t
Polarisation enumeration.
Double_t getTotalSize() const
TString fTreeName
The glob passed to the TChain.