63 for (
int i = 0; i < 8; i++) {
64 TString hname = TString::Format(
"Crate1/Cr1Ch%02d", i + 1);
65 TString htitle = TString::Format(
"Crate 1 channel %2d", i+1);
66 fCr1Ch[i] =
MakeTH1(
'I', hname.Data(), htitle.Data(), 5000, 1., 5001.);
67 hname = TString::Format(
"Crate2/Cr2Ch%02d",i+1);
68 htitle = TString::Format(
"Crate 2 channel %2d",i+1);
69 fCr2Ch[i] =
MakeTH1(
'I', hname.Data(), htitle.Data(), 5000, 1., 5001.);
72 fCr1Ch1x2 =
MakeTH2(
'I',
"Cr1Ch1x2",
"Crate 1 channel 1x2", 200, 1., 5001., 200, 1., 5001.);
73 fHis1 =
MakeTH1(
'I',
"His1",
"Condition histogram", 5000, 1., 5001.);
74 fHis2 =
MakeTH1(
'I',
"His2",
"Condition histogram", 5000, 1., 5001.);
82 Double_t cutpnts[3][2] = { {400, 800}, {700, 900}, {600, 1100} };
89 Double_t xvalues[4] = { 1000, 2000, 1500, 1000 };
90 Double_t yvalues[4] = { 1000, 1000, 3000, 1000 };
91 TCutG *mycut =
new TCutG(
"cut2", 4, xvalues, yvalues);
98 TGo4Log::Info(
"TXXXProc: Restore condition array from autosave");
102 ((*fConArr)[0])->Enable();
103 ((*fConArr)[1])->Enable();
118 fcondSet->Pic(1,0)->SetFillAtt(4, 1001);
119 fcondSet->Pic(1,0)->SetLineAtt(4,1,1);
120 fcondSet->Pic(1,1)->SetFillAtt(9, 1001);
121 fcondSet->Pic(1,1)->SetLineAtt(9,1,1);
128 fPicture->SetLinesDivision(3, 2,3,1);
130 fPicture->LPic(0,0)->SetFillAtt(5, 3001);
131 fPicture->LPic(0,0)->SetLineAtt(5,1,1);
133 fPicture->LPic(0,1)->SetFillAtt(4, 3001);
134 fPicture->LPic(0,1)->SetLineAtt(4,1,1);
136 fPicture->LPic(1,0)->SetFillAtt(6, 1001);
137 fPicture->LPic(1,0)->SetLineAtt(6,1,1);
139 fPicture->LPic(1,1)->SetFillAtt(7, 1001);
140 fPicture->LPic(1,1)->SetLineAtt(7,1,1);
143 fPicture->LPic(3,0)->SetDrawOption(
"CONT");
149 fProfile =
new TProfile(
"profile",
"Example of TProfile usage", 5000, 1., 5001., 1., 5001.);
156 fProfile2D =
new TProfile2D(
"profile2d",
"Example of TProfile2D usage", 200, 1., 5001., 200, 1., 5001., 1., 5001.);
167 auto XXXEvent =
static_cast<TXXXEvent *
>(target);
176 XXXEvent->SetValid(kFALSE);
189 Int_t *pdata = psubevt->GetDataField();
190 Int_t lwords = psubevt->GetIntLen();
191 if(lwords > 8) lwords=8;
193 if(psubevt->GetSubcrate() == 1) {
194 for(Int_t i = 0; i<lwords; i++) {
197 Float_t value = (Float_t)*pdata++;
199 XXXEvent->fCrate1[index] = value;
202 if(psubevt->GetSubcrate() == 2)
203 for(Int_t i = 0; i<lwords; i++)
204 XXXEvent->fCrate2[i] = (Float_t)*pdata++;
209 for(Int_t i = 0; i<8; i++) {
210 fCr1Ch[i]->Fill(XXXEvent->fCrate1[i]);
211 fCr2Ch[i]->Fill(XXXEvent->fCrate2[i]);
213 Float_t value1 = XXXEvent->fCrate1[0];
214 Float_t value2 = XXXEvent->fCrate1[1];
215 Float_t value3 = XXXEvent->fCrate1[3];
229 XXXEvent->SetValid(kTRUE);
TH1 * MakeTH1(char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, const char *xtitle=nullptr, const char *ytitle=nullptr)
Create one dimensional histogram of specified type.
TH2 * MakeTH2(char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t nbinsy, Double_t ylow, Double_t yup, const char *xtitle=nullptr, const char *ytitle=nullptr, const char *ztitle=nullptr)
Create two dimensional histogram of specified type.