5 TH1* h =
new TH1D(Form(
"fmd%d%c", d, r),
8 Color_t col = ((d == 1 ? kRed+2 :
9 d == 2 ? kGreen+(r ==
'I'?2:-2) :
10 kBlue+(r ==
'I'?2:-2)));
17 h->SetMarkerColor(col);
18 h->SetMarkerStyle(19+d);
25 for (
UShort_t d = 1; d <= 3+(fake?1:0); d++) {
27 Int_t nQ = (d == 1 ? 1 : 2);
29 char r = (q == 0 ?
'i' :
'o');
31 UShort_t nStr = (q == 0 ? 512 : 256);
32 UShort_t idx = (d-1)*2-(1-q)+(d==1?1:0);
33 TH1* h =
static_cast<TH1*
>(list->At(idx));
36 Info(
"",
"Adding %s @ %d", h->GetName(), idx);
41 for (
UShort_t s = 0; s < nSec; s++) {
43 for (
UShort_t t = 0; t < nStr; t++) {
87 if (TMath::Abs(ipZ) > 10)
continue;
88 if (iEv != 0 && (iEv % 100 == 0)) Printf(
"Event # %4d", iEv);
92 TVector3 ip(ipX, ipY, ipZ);
93 Event(ip, &list,
false);
97 THStack*
stack =
new THStack(
"stack",
"");
100 while ((hist = static_cast<TH1*>(next())))
102 stack->Draw(
"nostack p");
void Event(const TVector3 &ip, TList *list, Bool_t fake)
static Bool_t GetEtaPhi(UShort_t det, Char_t ring, UShort_t sec, UShort_t str, const TVector3 &ip, Double_t &eta, Double_t &phi)
TList * list
TDirectory file where lists per trigger are stored in train ouput.
TH1 * Make(UShort_t d, Char_t r)