8 TClonesArray* cutsArray;
9 TOrdCollection* cutsColl;
11 void listStrangeCuts(
const char* fileName=
"evMuDst.root");
13 void listStrangeCuts(
const char* fileName) {
14 filePtr =
new TFile(fileName);
16 cout <<
"_______________________________________________" << endl;
17 cout <<
"Opened file: " << fileName << endl;
18 cout <<
"_______________________________________________" << endl;
20 cutsColl = (TOrdCollection*) filePtr->Get(
"StrangeCuts");
22 cout <<
"Found cuts collection with " << cutsColl->GetSize()
24 cout <<
"_______________________________________________" << endl;
26 cout <<
"_______________________________________________" << endl;
30 treePtr = (TTree*) filePtr->Get(
"StrangeMuDst");
31 if (!treePtr) treePtr = (TTree*) filePtr->Get(
"MuDst");
33 if (!(treePtr->GetBranch(
"StrangeCuts")))
return;
35 cutArray =
new TClonesArray(
"TCut",0);
36 treePtr->SetBranchStatus(
"*",0);
37 treePtr->SetBranchStatus(
"StrangeCuts.*",1);
38 treePtr->SetBranchAddress(
"StrangeCuts",&cutArray);
40 for (
int i=0; i<treePtr->GetEntries(); i++) {
42 ncuts = cutArray->GetEntriesFast();
44 cout <<
"Found cuts branch with " << ncuts <<
" cuts." << endl;
45 cout <<
"_______________________________________________" << endl;
50 if (!ncuts) cout <<
"Found cuts branch, but NO entries!!!" << endl;
51 cout <<
"_______________________________________________" << endl;