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();
183 fLaText =
new TLatex(0.5,0.5,
"-- demo text --");
184 fLaText->SetName(
"LatexObjectDemo");
268 Bool_t isValid = kFALSE;
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)
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) {
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());
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)
TGo4ShapedCond * MakeFreeShapeCond(const char *fullname, Int_t npoints, Double_t(*points) [2], const char *HistoName=nullptr)
void ResetCounts() override
void Disable(Bool_t result) override
virtual void Fill(Double_t value, Double_t xerror=-1, Double_t yerror=-1)
Fills a new value into the rolling graph.
void AddCondition(TNamed *cond=nullptr)
Int_t fiCrate1[XXX_NUM_CHAN]
TGo4Picture * GetPicture(const char *name)
Bool_t BuildEvent(TGo4EventElement *dest) override
TGo4RollingGraph * fRollingGraph1
static void Info(const char *text,...) GO4_PRINTF_ARGS
TGo4RollingGraph * MakeRollingGraph(const char *fullname, const char *title, Int_t points=0, Int_t average=1)
Bool_t AddPicture(TGo4Picture *pic, const char *subfolder=nullptr)
TH1 * fCr2Ch[XXX_NUM_CHAN]
TH1 * fCr1Ch[XXX_NUM_CHAN]
void SetValues(Double_t low1, Double_t up1) override
TGo4RollingGraph * fRollingGraph2
void SetHisTitle(bool on)
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)
Int_t fiCrate2[XXX_NUM_CHAN]
void SetAxisLabelFontSize(Int_t naxis, Float_t LabelSize, Int_t index=UndefIndex)
void AddObject(TObject *obj, Option_t *DrawOption=nullptr)
Bool_t Test(Double_t x, Double_t y) override
TGo4Picture * Pic(Int_t posy, Int_t posx)
TGo4MbsSubEvent * NextSubEvent(Bool_t all=kFALSE)
TGo4ListCond * fWhitelistCon
void SetDivision(Int_t ndivy, Int_t ndivx)
void SetStatsAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Int_t optstat=1111, const char *statformat="6.4g", Int_t optfit=1111, const char *fitformat="5.4g")
TGo4ShapedCond * fCircleCond
TGo4Parameter * MakeParameter(const char *fullname, const char *classname, const char *newcmd=nullptr)
Bool_t Test(Double_t value) override
void PrintCondition(Bool_t full=kTRUE) override
TGo4ShapedCond * fBoxCond
void SetHistogram(const char *name)
virtual void Disable(Bool_t result)
TGo4ShapedCond * MakeBoxCond(const char *fullname, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta, const char *HistoName=nullptr)
TGo4Condition * GetAnalysisCondition(const char *name, const char *cond_cl=nullptr)
void SetLineAtt(Color_t color, Style_t style, Width_t width, Int_t index=UndefIndex)
void SetLinesDivision(Int_t numlines, const Int_t *numbers)
static void Error(const char *text,...) GO4_PRINTF_ARGS
TGo4EventElement * GetInputEvent()
void SetDrawOption(Option_t *option="") override
TGo4ShapedCond * fEllipseCond
void SetFillAtt(Color_t color, Style_t style, Int_t index=UndefIndex)
TGo4ShapedCond * fFreestyleCond
Bool_t AddAnalysisCondition(TGo4Condition *con, const char *subfolder=nullptr)
TGo4WinCond * MakeWinCond(const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=nullptr)
Bool_t Test(Double_t v1) override
Bool_t AddObject(TNamed *anything, const char *subfolder=nullptr)
TGo4ShapedCond * MakeCircleCond(const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t r, const char *HistoName=nullptr)
TGo4Picture * LPic(Int_t nline, Int_t ncol)
virtual ~TXXXUnpackProc()
TGo4ListCond * MakeListCond(const char *fullname, const Int_t num, const Int_t *values, const char *HistoName=nullptr)
TGraph * MakeGraph(const char *fullname, const char *title, Int_t points=0, Double_t *xvalues=nullptr, Double_t *yvalues=nullptr)
TGo4ShapedCond * MakeEllipseCond(const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta=0, const char *HistoName=nullptr)
TGo4PolyCond * MakePolyCond(const char *fullname, Int_t npoints, Double_t(*points) [2], const char *HistoName=nullptr)
void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize=0.)
virtual void Invert(Bool_t on)
void PrintCondition(Bool_t points=kTRUE) override