// $Id$
+// $MpId: testMotifTypeIterators.C,v 1.11 2005/09/26 16:05:25 ivana Exp $
//
// Test macro for reading motif type data and iterate over them.
void testMotifTypeIterators(AliMpStationType station = kStation1,
- AliMpPlaneType plane = kBendingPlane)
+ AliMpPlaneType plane = kBendingPlane,
+ Bool_t rootInput = false)
{
TString names;
TString names2;
nv = 5;
}
else {
- names = "ABCDEFGHIIJKLMN";
- names2 ="abcdefgijklmnopqrstuwvvvvvv";
- nv = 6;
+ names = "ABCEFGHIJKLMN";
+ names2 ="abcdefgijklmnopqrstuwvvvvv";
+ nv = 5;
}
Int_t nofMotifs = names.Length() + names2.Length();
// cout << " nofMotifs: " << nofMotifs << endl;
- TH2C* histos[] = new TH2C* [names.Length()];
+ TH2C* histos[] = new TH2C* [nofMotifs];
TCanvas* canv[] = new TCanvas* [1+(nofMotifs-1)/4];
Int_t i;
for (i=0;i<1+(nofMotifs-1)/4;++i){
canv[i]->Divide(2,2);
}
- AliMpReader r(station, plane);
+ AliMpMotifReader r(station, plane);
//r.SetVerboseLevel(2);
for (i=0;i<nofMotifs;++i){
else
mname += "1";
}
- // if (i==36) continue;
+ //if (i==36) continue;
// break for these motifs (St2, BP) - to be investigated
AliMpMotifType *mt = r.BuildMotifType(mname);
it.CurrentItem().GetIndices().GetSecond(),num);
}
- delete mt;
+ //delete mt;
histos[i]->Draw("text");
canv[i/4]->Update();
}