10 #ifndef ProofEventProc_h 11 #define ProofEventProc_h 48 void InitEvent() {
event = 0 ; fEventName = 0; fTracks = 0;
49 fHighPt = 0; fMuons = 0; fH = 0; fIsValid =
kFALSE; }
61 ProcFileElements *fProcElem;
90 ProofEventProc(
TTree *) { InitEvent(); fFullRead =
kTRUE; fTestAbort = -1;
91 fPtHist = 0; fPzHist = 0; fPxPyHist = 0;
92 fEntMin = -1; fEntMax = -1; fProcElems = 0; fProcElem = 0;}
93 ProofEventProc() { InitEvent(); fFullRead =
kTRUE; fTestAbort = -1;
94 fPtHist = 0; fPzHist = 0; fPxPyHist = 0;
95 fEntMin = -1; fEntMax = -1; fProcElems = 0; fProcElem = 0;}
96 virtual ~ProofEventProc() {
if (fProcElems) { fProcElems->
SetOwner(
kFALSE);
104 virtual void SetOption(
const char *option) { fOption = option; }
116 #ifdef ProofEventProc_cxx 131 if (tree == 0)
return;
156 Bool_t ProofEventProc::Notify()
168 Info(
"Notify",
"processing file: %s", fn.
Data());
172 if (fProcElem) fProcElem->Add(fEntMin, fEntMax);
179 if (fProcElems) fProcElem = (ProcFileElements *) fProcElems->
FindObject(fn);
181 Info(
"Notify",
"assigned new file: create ProcFileElements entry");
182 fProcElem =
new ProcFileElements(fn.
Data());
183 if (!fProcElems) fProcElems =
new TList;
184 if (fProcElems) fProcElems->
Add(fProcElem);
188 b_event_fType = fChain->
GetBranch(
"fType[20]");
189 b_fEventName = fChain->
GetBranch(
"fEventName");
190 b_event_fNtrack = fChain->
GetBranch(
"fNtrack");
191 b_event_fNseg = fChain->
GetBranch(
"fNseg");
192 b_event_fNvertex = fChain->
GetBranch(
"fNvertex");
193 b_event_fFlag = fChain->
GetBranch(
"fFlag");
194 b_event_fTemperature = fChain->
GetBranch(
"fTemperature");
195 b_event_fMeasures = fChain->
GetBranch(
"fMeasures[10]");
196 b_event_fMatrix = fChain->
GetBranch(
"fMatrix[4][4]");
197 b_fClosestDistance = fChain->
GetBranch(
"fClosestDistance");
198 b_event_fEvtHdr = fChain->
GetBranch(
"fEvtHdr");
199 b_fTracks = fChain->
GetBranch(
"fTracks");
200 b_fHighPt = fChain->
GetBranch(
"fHighPt");
202 b_event_fLastTrack = fChain->
GetBranch(
"fLastTrack");
203 b_event_fWebHistogram = fChain->
GetBranch(
"fWebHistogram");
205 b_event_fTriggerBits = fChain->
GetBranch(
"fTriggerBits");
206 b_event_fIsValid = fChain->
GetBranch(
"fIsValid");
211 #endif // #ifdef ProofEventProc_cxx virtual const char * GetName() const
Returns name of object.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
TSelectorList * fOutput
! List of objects created during processing
virtual Bool_t Notify()
This method must be overridden to handle object notification.
virtual void SetOwner(Bool_t enable=kTRUE)
Set whether this collection is the owner (enable==true) of its content.
1-D histogram with a float per channel (see TH1 documentation)}
An array of references to TObjects.
virtual void SetInputList(TList *input)
Class to hold information about the processed elements of a file.
virtual TObject * FindObject(const char *name) const
Delete a TObjLink object.
Persistent Reference link to a TObject A TRef is a lightweight object pointing to any TObject...
#define ClassDef(name, id)
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=0)
Change branch address, dealing with clone trees properly.
void Init(TClassEdit::TInterpreterLookupHelper *helper)
virtual void Begin(TTree *)
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
virtual int Version() const
2-D histogram with a float per channel (see TH1 documentation)}
virtual void SlaveBegin(TTree *)
TFile * GetCurrentFile() const
Return pointer to the current file.
virtual void SlaveTerminate()
virtual void SetMakeClass(Int_t make)
Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode)...
virtual Bool_t Process(Long64_t)
virtual void SetObject(TObject *obj)
virtual void SetOption(const char *option)
Mother of all ROOT objects.
An array of clone (identical) objects.
virtual void Add(TObject *obj)
A TTree object has a header with a name and a title.
A TTree is a list of TBranches.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
virtual TList * GetOutputList() const
virtual void Init(TTree *)
const char * Data() const