109 fCr1Ch[i] =
MakeTH1(
'I', Form(
"Crate1/Cr1Ch%02d",i+1), Form(
"Crate 1 channel %2d",i+1), 5000, 1., 5001.);
110 fCr2Ch[i] =
MakeTH1(
'I', Form(
"Crate2/Cr2Ch%02d",i+1), Form(
"Crate 2 channel %2d",i+1), 5000, 1., 5001.);
113 fCr1Ch1x2 =
MakeTH2(
'I',
"Cr1Ch1x2",
"Crate 1 channel 1x2", 200, 1., 5001., 200, 1., 5001.);
114 fHis1 =
MakeTH1(
'I',
"His1",
"Condition histogram", 5000, 1., 5001.);
115 fHis2 =
MakeTH1(
'I',
"His2",
"Condition histogram", 5000, 1., 5001.);
122 fGraph =
MakeGraph(
"sinus",
"graph from a function",
new TF1(
"sinus",
"sin(x)",0, 4*TMath::Pi()));
131 Double_t cutpnts[3][2] = { {400, 800}, {700, 900}, {600, 1100} };
154 ((*fConArr1)[0])->SetValues(200,400);
155 ((*fConArr1)[1])->SetValues(700,1000);
156 ((*fConArr1)[2])->SetValues(1500,2000);
167 Double_t xvalues[4] = { 1000, 2000, 1500, 1000 };
168 Double_t yvalues[4] = { 1000, 1000, 3000, 1000 };
169 TCutG* mycut =
new TCutG(
"cut2", 4, xvalues, yvalues);
176 TGo4Log::Info(
"TXXXUnpackProc: Restore condition polyconar from autosave");
189 ((*fConArr2)[0])->Enable();
190 ((*fConArr2)[1])->Enable();
224 fLaText =
new TLatex(0.5,0.5,
"-- demo text --");
225 fLaText->SetName(
"LatexObjectDemo");
306 Bool_t isValid=kFALSE;
391 for(Int_t i = 0; i<lwords; ++i)
433 for(Int_t i = 0; i<lwords; ++i) {
445 fLaText->SetText(0.5,0.5,Form(
"#scale[3.0]{#color[2]{Event number:%d}}",inp_evt->
GetCount()));
virtual Bool_t Test(Double_t value)
virtual void PrintCondition(Bool_t points=kTRUE)
TGo4Parameter * MakeParameter(const char *fullname, const char *classname, const char *newcmd=0)
TGo4ShapedCond * MakeBoxCond(const char *fullname, Double_t cx, Double_t cy, Double_t a1, Double_t a2, Double_t theta, const char *HistoName=0)
virtual void Fill(Double_t value, Double_t xerror=-1, Double_t yerror=-1)
Fills a new value into the rolling graph.
TGo4ShapedCond * MakeFreeShapeCond(const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0)
Int_t fiCrate1[XXX_NUM_CHAN]
TGo4Picture * GetPicture(const char *name)
virtual void PrintCondition(Bool_t full=kTRUE)
TGo4RollingGraph * fRollingGraph1
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=0, const char *ytitle=0, const char *ztitle=0)
virtual Bool_t Test(Double_t x, Double_t y)
TGo4RollingGraph * MakeRollingGraph(const char *fullname, const char *title, Int_t points=0, Int_t average=1)
TH1 * fCr2Ch[XXX_NUM_CHAN]
TH1 * fCr1Ch[XXX_NUM_CHAN]
TGo4WinCond * MakeWinCond(const char *fullname, Double_t xmin, Double_t xmax, const char *HistoName=0)
TGo4ListCond * MakeListCond(const char *fullname, const Int_t num, const Int_t *values, const char *HistoName=0)
TGo4RollingGraph * fRollingGraph2
void SetHisTitle(bool on)
TGo4Condition * GetAnalysisCondition(const char *name, const char *cond_cl=0)
GO4 ConditionPainter prototype Test
Int_t fiCrate2[XXX_NUM_CHAN]
TGo4PolyCond * MakePolyCond(const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0)
void SetAxisLabelFontSize(Int_t naxis, Float_t LabelSize, Int_t index=UndefIndex)
virtual Bool_t BuildEvent(TGo4EventElement *dest)
virtual void SetValues(Double_t low1, Double_t up1)
TGo4Picture * Pic(Int_t posy, Int_t posx)
TGo4MbsSubEvent * NextSubEvent(Bool_t all=kFALSE)
TGo4ShapedCond * MakeCircleCond(const char *fullname, Int_t npoints, Double_t cx, Double_t cy, Double_t r, const char *HistoName=0)
TGo4ListCond * fWhitelistCon
void SetDivision(Int_t ndivy, Int_t ndivx)
TGraph * MakeGraph(const char *fullname, const char *title, Int_t points=0, Double_t *xvalues=0, Double_t *yvalues=0)
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")
void AddObject(TObject *obj, Option_t *DrawOption=0)
TGo4ShapedCond * fCircleCond
virtual void Disable(Bool_t result)
TGo4ShapedCond * fBoxCond
void SetHistogram(const char *name)
virtual void Disable(Bool_t result)
void AddCondition(TNamed *cond=0)
void SetLineAtt(Color_t color, Style_t style, Width_t width, Int_t index=UndefIndex)
void SetLinesDivision(Int_t numlines, const Int_t *numbers)
TGo4EventElement * GetInputEvent()
Bool_t AddAnalysisCondition(TGo4Condition *con, const char *subfolder=0)
virtual Bool_t Test(Double_t v1)
TGo4ShapedCond * fEllipseCond
void SetFillAtt(Color_t color, Style_t style, Int_t index=UndefIndex)
TGo4ShapedCond * fFreestyleCond
Bool_t AddPicture(TGo4Picture *pic, const char *subfolder=0)
Bool_t AddObject(TNamed *anything, const char *subfolder=0)
TH1 * MakeTH1(char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, const char *xtitle=0, const char *ytitle=0)
Char_t GetSubcrate() const
virtual void SetDrawOption(Option_t *option="")
TGo4Picture * LPic(Int_t nline, Int_t ncol)
static void Error(const char *text,...)
static void Info(const char *text,...)
virtual ~TXXXUnpackProc()
virtual void ResetCounts()
void SetTitleAttr(Double_t x1, Double_t y1, Double_t x2, Double_t y2, Double_t textsize=0.)
virtual void Invert(Bool_t on)
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=0)