20 |
// global variables |
// global variables |
21 |
//=================================== |
//=================================== |
22 |
Bool_t DEBUG; |
Bool_t DEBUG; |
23 |
|
Bool_t MATRIX; |
24 |
TString DIR; |
TString DIR; |
25 |
TString LIST; |
TString LIST; |
26 |
TString I_OPTIONS; |
TString I_OPTIONS; |
65 |
|
|
66 |
if( !Select(event) )return false; |
if( !Select(event) )return false; |
67 |
|
|
68 |
FindAverage(event,iev); |
if ( MATRIX ){ |
69 |
|
FindMatrix(event,iev); |
70 |
|
} else { |
71 |
|
FindAverage(event,iev); |
72 |
|
}; |
73 |
return true; |
return true; |
74 |
|
|
75 |
} |
} |
76 |
|
|
|
bool Process2(int iev){ |
|
|
|
|
|
if( !Select(event) )return false; |
|
|
|
|
|
FindMatrix(event,iev); |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
77 |
//========================================== |
//========================================== |
78 |
//000000000000000000000000000000000000000000 |
//000000000000000000000000000000000000000000 |
79 |
//========================================== |
//========================================== |
131 |
|
|
132 |
}; |
}; |
133 |
|
|
134 |
CalculateAverage(); |
if ( !MATRIX ) CalculateAverage(); |
|
|
|
|
for(ULong64_t iev=nmin; iev<nmin+nmax; iev++){ |
|
|
// |
|
|
event->Clear(); |
|
|
if( event->GetEntry(iev) ){ |
|
|
Process2(iev); |
|
|
}else{ |
|
|
cout << "Chain entry "<<iev<<" -- ERROR --"<<endl; |
|
|
}; |
|
|
|
|
|
}; |
|
135 |
|
|
136 |
event->Clear(); |
event->Clear(); |
137 |
// -------------- |
// -------------- |
184 |
// Read input parameters |
// Read input parameters |
185 |
// ----------------------- |
// ----------------------- |
186 |
DEBUG = false; |
DEBUG = false; |
187 |
|
MATRIX = false; |
188 |
DIR = gSystem->WorkingDirectory(); |
DIR = gSystem->WorkingDirectory(); |
189 |
LIST = ""; |
LIST = ""; |
190 |
OUTFILE = ""; |
OUTFILE = ""; |
257 |
DEBUG = true; |
DEBUG = true; |
258 |
continue; |
continue; |
259 |
} |
} |
260 |
|
// |
261 |
|
else if (!strcmp(argv[i], "-matrix")){ |
262 |
|
MATRIX = true; |
263 |
|
continue; |
264 |
|
} |
265 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
266 |
else{ |
else{ |
267 |
cout << "Unidentified input parameter. Ignored."<< endl; |
cout << "Unidentified input parameter. Ignored."<< endl; |