113 fCr1Ch[i] =
MakeTH1(
'I', Form(
"Crate1/Cr1Ch%02d",i+1), Form(
"Crate 1 channel %2d",i+1), 5000, 1., 5001.);
114 fCr2Ch[i] =
MakeTH1(
'I', Form(
"Crate2/Cr2Ch%02d",i+1), Form(
"Crate 2 channel %2d",i+1), 5000, 1., 5001.);
117 fCr1Ch1x2 =
MakeTH2(
'I',
"Cr1Ch1x2",
"Crate 1 channel 1x2", 200, 1., 5001., 200, 1., 5001.);
118 fHis1 =
MakeTH1(
'I',
"His1",
"Condition histogram", 5000, 1., 5001.);
119 fHis2 =
MakeTH1(
'I',
"His2",
"Condition histogram", 5000, 1., 5001.);
130 Double_t cutpnts[3][2] = { {400, 800}, {700, 900}, {600, 1100} };
151 ((*fConArr1)[0])->SetValues(200,400);
152 ((*fConArr1)[1])->SetValues(700,1000);
153 ((*fConArr1)[2])->SetValues(1500,2000);
164 Double_t xvalues[4] = { 1000, 2000, 1500, 1000 };
165 Double_t yvalues[4] = { 1000, 1000, 3000, 1000 };
166 TCutG* mycut =
new TCutG(
"cut2", 4, xvalues, yvalues);
173 TGo4Log::Info(
"TXXXUnpackProc: Restore condition polyconar from autosave");
186 ((*fConArr2)[0])->Enable();
187 ((*fConArr2)[1])->Enable();
221 fLaText =
new TLatex(0.5,0.5,
"-- demo text --");
222 fLaText->SetName(
"LatexObjectDemo");
299 Bool_t isValid=kFALSE;
384 for(Int_t i = 0; i<lwords; ++i)
423 for(Int_t i = 0; i<lwords; ++i) {
435 fLaText->SetText(0.5,0.5,Form(
"#scale[3.0]{#color[2]{Event number:%d}}",inp_evt->
GetCount()));
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)
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)
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)
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)
void SetHisTitle(bool on)
TGo4Condition * GetAnalysisCondition(const char *name, const char *cond_cl=0)
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)
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")
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
GO4 ConditionPainter prototype Test
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)