64 for(
int i=0;i<8;i++) {
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.);
84 Double_t cutpnts[3][2] = { {400, 800}, {700, 900}, {600, 1100} };
92 ((*fConArr1)[0])->SetValues(200,400);
93 ((*fConArr1)[1])->SetValues(700,1000);
94 ((*fConArr1)[2])->SetValues(1500,2000);
105 Double_t xvalues[4] = { 1000, 2000, 1500, 1000 };
106 Double_t yvalues[4] = { 1000, 1000, 3000, 1000 };
107 TCutG* mycut =
new TCutG(
"cut2", 4, xvalues, yvalues);
127 ((*fConArr2)[0])->Enable();
128 ((*fConArr2)[1])->Enable();
187 for(
int i=0;i<8;i++) {
199 fCr1Ch[i] =
MakeTH1(
'I', Form(
"Crate1/Cr1Ch%02d",i+1), Form(
"Crate 1 channel %2d",i+1), nbins, xmin, xmax);
200 fCr2Ch[i] =
MakeTH1(
'I', Form(
"Crate2/Cr2Ch%02d",i+1), Form(
"Crate 2 channel %2d",i+1), nbins, xmin, xmax);
226 Long_t loop = (
fEvCount / 1000000) % 5;
278 Int_t* pdata = psubevt->GetDataField();
279 Int_t lwords = psubevt->GetIntLen();
280 Int_t subcrate=psubevt->GetSubcrate();
283 TGo4Log::Info(
"XXXUnpackProc: skip invalid subcrate %d", subcrate);
287 if(lwords >= 8) lwords=8;
289 for(Int_t i = 0; i<lwords; ++i)
309 TGo4Log::Info(
"XXXUnpackProc: WARNING: no output event module for crate %d, channel %d", subcrate, i);
317 fCr1Ch[i]->Fill((Float_t)(*pdata));
322 fHis1->Fill((Float_t)(*pdata));
327 fHis2->Fill((Float_t)(*pdata));
335 else if ( subcrate == 2)
337 fCr2Ch[i]->Fill((Float_t)(*pdata));
virtual void PrintCondition(Bool_t points=kTRUE)
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)
virtual Int_t PrintParameter(Text_t *buffer=0, Int_t buflen=0)
TGo4Condition * GetAnalysisCondition(const char *name, const char *cond_cl=0)
TGo4PolyCond * MakePolyCond(const char *fullname, Int_t npoints, Double_t(*points)[2], const char *HistoName=0)
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)
void CreateRawHistograms(int nbins, double xmin, double xmax)
void SetDivision(Int_t ndivy, Int_t ndivx)
void AddObject(TObject *obj, Option_t *DrawOption=0)
virtual void Disable(Bool_t result)
void SetCalibSpectrum(TH1 *h1)
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)
TGo4Parameter * GetParameter(const char *name, const char *par_class=0)
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)
void SetFillAtt(Color_t color, Style_t style, Int_t index=UndefIndex)
Bool_t AddPicture(TGo4Picture *pic, 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)
GO4 ConditionPainter prototype Test
void AddSpecialObject(TObject *obj, Option_t *drawopt=0)
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)
Bool_t RemoveHistogram(const char *name)