61 for (
int i = 0; i < 8; i++) {
62 TString hname = TString::Format(
"Crate1/Cr1Ch%02d", i + 1);
63 TString htitle = TString::Format(
"Crate 1 channel %2d", i+1);
64 fCr1Ch[i] =
MakeTH1(
'I', hname.Data(), htitle.Data(), 5000, 1., 5001.);
65 hname = TString::Format(
"Crate2/Cr2Ch%02d",i+1);
66 htitle = TString::Format(
"Crate 2 channel %2d",i+1);
67 fCr2Ch[i] =
MakeTH1(
'I', hname.Data(), htitle.Data(), 5000, 1., 5001.);
70 fCr1Ch1x2 =
MakeTH2(
'I',
"Cr1Ch1x2",
"Crate 1 channel 1x2", 200, 1., 5001., 200, 1., 5001.);
71 fHis1 =
MakeTH1(
'I',
"His1",
"Condition histogram", 5000, 1., 5001.);
72 fHis2 =
MakeTH1(
'I',
"His2",
"Condition histogram", 5000, 1., 5001.);
80 Double_t cutpnts[3][2] = { {400, 800}, {700, 900}, {600, 1100} };
87 Double_t xvalues[4] = { 1000, 2000, 1500, 1000 };
88 Double_t yvalues[4] = { 1000, 1000, 3000, 1000 };
89 TCutG *mycut =
new TCutG(
"cut2", 4, xvalues, yvalues);
96 TGo4Log::Info(
"TXXXProc: Restore condition array from autosave");
100 ((*fConArr)[0])->Enable();
101 ((*fConArr)[1])->Enable();
173 Int_t *pdata = psubevt->GetDataField();
174 Int_t lwords = psubevt->GetIntLen();
175 if(lwords > 8) lwords=8;
177 if(psubevt->GetSubcrate() == 1) {
178 for(Int_t i = 0; i<lwords; i++) {
181 Float_t value = (Float_t)*pdata++;
183 XXXEvent->
fCrate1[index] = value;
186 if(psubevt->GetSubcrate() == 2)
187 for(Int_t i = 0; i<lwords; i++)
188 XXXEvent->
fCrate2[i] = (Float_t)*pdata++;
193 for(Int_t i = 0; i<8; i++) {
197 Float_t value1 = XXXEvent->
fCrate1[0];
198 Float_t value2 = XXXEvent->
fCrate1[1];
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)
void ResetCounts() override
Long64_t ExecuteScript(const char *script_name)
void Disable(Bool_t result) override
void AddCondition(TNamed *cond=nullptr)
TGo4Picture * GetPicture(const char *name)
static void Info(const char *text,...) GO4_PRINTF_ARGS
Bool_t AddPicture(TGo4Picture *pic, const char *subfolder=nullptr)
void SetValues(Double_t low1, Double_t up1) override
Bool_t BuildEvent(TGo4EventElement *target) override
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)
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)
void SetDivision(Int_t ndivy, Int_t ndivx)
void Print(Option_t *opt="") const override
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
TGo4Parameter * GetParameter(const char *name, const char *par_class=nullptr)
void SetFillAtt(Color_t color, Style_t style, Int_t index=UndefIndex)
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
TGo4Picture * LPic(Int_t nline, Int_t ncol)
Short_t GetTrigger() const
TGo4PolyCond * MakePolyCond(const char *fullname, Int_t npoints, Double_t(*points) [2], const char *HistoName=nullptr)