69 TString hname = TString::Format(
"Crate1/Cr1Ch%02d", i + 1);
70 TString htitle = TString::Format(
"Crate 1 channel %2d", i+1);
71 fCr1Ch[i] =
MakeTH1(
'I', hname.Data(), htitle.Data(), 5000, 1., 5001.);
72 hname = TString::Format(
"Crate2/Cr2Ch%02d",i+1);
73 htitle = TString::Format(
"Crate 2 channel %2d",i+1);
74 fCr2Ch[i] =
MakeTH1(
'I', hname.Data(), htitle.Data(), 5000, 1., 5001.);
77 fCr1Ch1x2 =
MakeTH2(
'I',
"Cr1Ch1x2",
"Crate 1 channel 1x2", 200, 1., 5001., 200, 1., 5001.);
78 fHis1 =
MakeTH1(
'I',
"His1",
"Condition histogram", 5000, 1., 5001.);
79 fHis2 =
MakeTH1(
'I',
"His2",
"Condition histogram", 5000, 1., 5001.);
86 fGraph =
MakeGraph(
"sinus",
"graph from a function",
new TF1(
"sinus",
"sin(x)",0, 4*TMath::Pi()));
95 Double_t cutpnts[3][2] = { {400, 800}, {700, 900}, {600, 1100} };
115 ((*fConArr1)[0])->SetValues(200,400);
116 ((*fConArr1)[1])->SetValues(700,1000);
117 ((*fConArr1)[2])->SetValues(1500,2000);
128 Double_t xvalues[4] = { 1000, 2000, 1500, 1000 };
129 Double_t yvalues[4] = { 1000, 1000, 3000, 1000 };
130 TCutG *mycut =
new TCutG(
"cut2", 4, xvalues, yvalues);
137 TGo4Log::Info(
"TXXXUnpackProc: Restore condition polyconar from autosave");
150 ((*fConArr2)[0])->Enable();
151 ((*fConArr2)[1])->Enable();
165 fcondSet->Pic(1,0)->SetFillAtt(4, 1001);
166 fcondSet->Pic(1,0)->SetLineAtt(4,1,1);
167 fcondSet->Pic(1,1)->SetFillAtt(9, 1001);
168 fcondSet->Pic(1,1)->SetLineAtt(9,1,1);
169 fcondSet->Pic(0,0)->SetTitleAttr(0.05, 0.85, 0.8, 0.95);
183 fLaText =
new TLatex(0.5,0.5,
"-- demo text --");
184 fLaText->SetName(
"LatexObjectDemo");
195 fPicture1->LPic(0,0)->SetFillAtt(5, 3001);
197 fPicture1->LPic(0,0)->SetStatsAttr(0.1,0.6,0.4,0.9,101);
198 fPicture1->LPic(0,0)->SetAxisLabelFontSize(0, 0.07, 0);
199 fPicture1->LPic(0,0)->SetAxisLabelFontSize(1, 0.07, 0);
200 fPicture1->LPic(0,0)->SetHisTitle(
false);
201 fPicture1->LPic(0,0)->SetTitleAttr(0.1,0.75,0.7,0.9);
206 fPicture1->LPic(0,1)->SetFillAtt(4, 3001);
208 fPicture1->LPic(0,1)->SetStatsAttr(0.1,0.6,0.4,0.9,101);
209 fPicture1->LPic(0,1)->SetAxisLabelFontSize(0, 0.07, 0);
210 fPicture1->LPic(0,1)->SetAxisLabelFontSize(1, 0.07, 0);
211 fPicture1->LPic(0,1)->SetHisTitle(
false);
212 fPicture1->LPic(0,1)->SetTitleAttr(0.1,0.75,0.7,0.9);
215 fPicture1->LPic(1,0)->SetFillAtt(6, 1001);
217 fPicture1->LPic(1,0)->SetStatsAttr(0.1,0.6,0.4,0.9,101);
218 fPicture1->LPic(1,0)->SetAxisLabelFontSize(0, 0.07, 0);
219 fPicture1->LPic(1,0)->SetAxisLabelFontSize(1, 0.07, 0);
220 fPicture1->LPic(1,0)->SetHisTitle(
false);
221 fPicture1->LPic(1,0)->SetTitleAttr(0.1,0.75,0.7,0.9);
224 fPicture1->LPic(1,1)->SetFillAtt(7, 1001);
226 fPicture1->LPic(1,1)->SetStatsAttr(0.1,0.6,0.4,0.9,101);
227 fPicture1->LPic(1,1)->SetAxisLabelFontSize(0, 0.07, 0);
228 fPicture1->LPic(1,1)->SetAxisLabelFontSize(1, 0.07, 0);
229 fPicture1->LPic(1,1)->SetHisTitle(
false);
230 fPicture1->LPic(1,1)->SetTitleAttr(0.1,0.75,0.7,0.9);
233 fPicture1->LPic(1,2)->SetStatsAttr(0.1,0.6,0.4,0.9,101);
234 fPicture1->LPic(1,2)->SetAxisLabelFontSize(0, 0.07, 0);
235 fPicture1->LPic(1,2)->SetAxisLabelFontSize(1, 0.07, 0);
236 fPicture1->LPic(1,2)->SetHisTitle(
false);
237 fPicture1->LPic(1,2)->SetTitleAttr(0.1,0.75,0.7,0.9);
240 fPicture1->LPic(2,0)->SetDrawOption(
"CONT");
241 fPicture1->LPic(2,0)->SetStatsAttr(0.1,0.6,0.4,0.9,101);
242 fPicture1->LPic(2,0)->SetAxisLabelFontSize(0, 0.07, 0);
243 fPicture1->LPic(2,0)->SetAxisLabelFontSize(1, 0.07, 0);
244 fPicture1->LPic(2,0)->SetHisTitle(
false);
245 fPicture1->LPic(2,0)->SetTitleAttr(0.1,0.75,0.7,0.9);
268 Bool_t isValid = kFALSE;
275 out_evt->SetValid(isValid);
343 inp_evt->ResetIterator();
344 while (
auto psubevt = inp_evt->NextSubEvent())
346 if( psubevt->GetSubcrate() == 1)
348 Int_t *pdata = psubevt->GetDataField();
349 Int_t lwords = psubevt->GetIntLen();
352 for(Int_t i = 0; i<lwords; ++i)
358 out_evt->fiCrate1[i] = *pdata;
389 if( psubevt->GetSubcrate() == 2)
391 Int_t *pdata = psubevt->GetDataField();
392 Int_t lwords = psubevt->GetIntLen();
394 for(Int_t i = 0; i<lwords; ++i) {
396 out_evt->fiCrate2[i] = *pdata;
405 TString lbl = TString::Format(
"#scale[3.0]{#color[2]{Event number:%d}}",inp_evt->GetCount());
406 fLaText->SetText(0.5,0.5, lbl.Data());