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;
133 fChain->SetMakeClass(1);
135 fChain->SetBranchAddress(
"fType[20]",
fType);
136 fChain->SetBranchAddress(
"fEventName",fEventName);
137 fChain->SetBranchAddress(
"fNtrack",&fNtrack);
138 fChain->SetBranchAddress(
"fNseg",&fNseg);
139 fChain->SetBranchAddress(
"fNvertex",&fNvertex);
140 fChain->SetBranchAddress(
"fFlag",&fFlag);
141 fChain->SetBranchAddress(
"fTemperature",&fTemperature);
142 fChain->SetBranchAddress(
"fMeasures[10]",fMeasures);
143 fChain->SetBranchAddress(
"fMatrix[4][4]",
fMatrix);
144 fChain->SetBranchAddress(
"fClosestDistance",fClosestDistance);
145 fChain->SetBranchAddress(
"fEvtHdr",&fEvtHdr);
146 fChain->SetBranchAddress(
"fTracks",&fTracks);
147 fChain->SetBranchAddress(
"fHighPt",&fHighPt);
148 fChain->SetBranchAddress(
"fMuons",&fMuons);
149 fChain->SetBranchAddress(
"fLastTrack",&fLastTrack);
150 fChain->SetBranchAddress(
"fWebHistogram",&fWebHistogram);
151 fChain->SetBranchAddress(
"fH",&fH);
152 fChain->SetBranchAddress(
"fTriggerBits",&fTriggerBits);
153 fChain->SetBranchAddress(
"fIsValid",&fIsValid);
165 TString fn(fChain->GetCurrentFile()->GetName());
166 Info(
"Notify",
"processing file: %s", fn.Data());
169 if (fProcElem) fProcElem->Add(fEntMin, fEntMax);
176 if (fProcElems) fProcElem = (ProcFileElements *) fProcElems->FindObject(fn);
178 Info(
"Notify",
"assigned new file: create ProcFileElements entry");
179 fProcElem =
new ProcFileElements(fn.Data());
180 if (!fProcElems) fProcElems =
new TList;
181 if (fProcElems) fProcElems->
Add(fProcElem);
185 b_event_fType = fChain->GetBranch(
"fType[20]");
186 b_fEventName = fChain->GetBranch(
"fEventName");
187 b_event_fNtrack = fChain->GetBranch(
"fNtrack");
188 b_event_fNseg = fChain->GetBranch(
"fNseg");
189 b_event_fNvertex = fChain->GetBranch(
"fNvertex");
190 b_event_fFlag = fChain->GetBranch(
"fFlag");
191 b_event_fTemperature = fChain->GetBranch(
"fTemperature");
192 b_event_fMeasures = fChain->GetBranch(
"fMeasures[10]");
193 b_event_fMatrix = fChain->GetBranch(
"fMatrix[4][4]");
194 b_fClosestDistance = fChain->GetBranch(
"fClosestDistance");
195 b_event_fEvtHdr = fChain->GetBranch(
"fEvtHdr");
196 b_fTracks = fChain->GetBranch(
"fTracks");
197 b_fHighPt = fChain->GetBranch(
"fHighPt");
198 b_fMuons = fChain->GetBranch(
"fMuons");
199 b_event_fLastTrack = fChain->GetBranch(
"fLastTrack");
200 b_event_fWebHistogram = fChain->GetBranch(
"fWebHistogram");
201 b_fH = fChain->GetBranch(
"fH");
202 b_event_fTriggerBits = fChain->GetBranch(
"fTriggerBits");
203 b_event_fIsValid = fChain->GetBranch(
"fIsValid");
208 #endif // #ifdef ProofEventProc_cxx
virtual int Version() const
virtual Bool_t Notify()
This method must be overridden to handle object notification.
virtual TList * GetOutputList() const
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.
Persistent Reference link to a TObject A TRef is a lightweight object pointing to any TObject...
#define ClassDef(name, id)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
void Info(const char *location, const char *msgfmt,...)
virtual void Begin(TTree *)
2-D histogram with a float per channel (see TH1 documentation)}
virtual void SlaveBegin(TTree *)
virtual void SlaveTerminate()
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 void Init(TTree *)