53 if (plane != NULL )plane->
print();
61 Int_t test = eventselection();
63 fEvt->GetHeader()->SetEvAnaStatus(test);
75 for(Int_t ndet=0;ndet<2;ndet++) {
78 if ( m == NULL )
continue;
80 for(Int_t j=0;j<
NCHAN;j++){
82 for(Int_t i=0;i<
NADC;i++){
87 if(qch>qchmax) qchmax = qch;
89 Info(
"eventselection",
"plane %d, ch %d: QchMax = %g",ndet,j,qch);
92 if(qchmax<fQchMax)
return -2;
94 Info(
"eventselection",
"QchMax = %g",qchmax);
109 Info(
"Constructor",
"Use default QchMax %.3g",fQchMax);
133 UInt_t ysize = 10*ysize2;
134 TGTransientFrame*
main =
new TGTransientFrame(gClient->GetRoot(), fMain, xsize, ysize);
135 main->Connect(
"CloseWindow()",
"HarpoRecoMonitorGui", main,
"CloseWindow()");
136 main->DontCallClose();
139 main->SetCleanup(kDeepCleanup);
141 TGVerticalFrame* frame =
new TGVerticalFrame(main,xsize,ysize,kVerticalFrame);
144 TGLayoutHints* fLayout1 =
new TGLayoutHints(kLHintsLeft ,5,5,5,5);
145 TGLayoutHints* fLayout2 =
new TGLayoutHints(kLHintsRight ,5,5,5,5);
146 TGLayoutHints* fLayout3 =
new TGLayoutHints(kLHintsTop | kLHintsExpandX ,5,5,5,5);
147 TGLayoutHints* fLayout4 =
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY,5,5,5,5);
155 TGLabel* fAnalysisLabel =
new TGLabel(frame,
"Template selector");
158 TGHorizontalFrame* QchMaxFrame =
new TGHorizontalFrame(frame,xsize,ysize2,kHorizontalFrame);
159 TGLabel* QchMaxLabel =
new TGLabel(QchMaxFrame,
"fQchMax");
160 fChooseQchMax =
new TGNumberEntry(QchMaxFrame);
161 fChooseQchMax->SetNumber(fQchMax);
163 main->AddFrame(frame,fLayout4);
164 frame->AddFrame(fAnalysisLabel,fLayout3);
165 frame->AddFrame(QchMaxFrame,fLayout3);
166 QchMaxFrame->AddFrame(QchMaxLabel,fLayout1);
167 QchMaxFrame->AddFrame(fChooseQchMax,fLayout2);
173 TGTextButton* setConf =
new TGTextButton(frame,
"Save Config",
id);
174 setConf->Associate(fMain);
176 frame->AddFrame(setConf,fLayout3);
178 main->MapSubwindows();
189 if(!fChooseQchMax)
return;
191 fQchMax = fChooseQchMax->GetNumber();
Double_t GetData(Int_t i, Int_t j)
Set/Get Data Cell.
int main(int argc, char **argv)
Bool_t isExist(ULong_t det)
Detecror date exist //! Number of Real Detectors.
void ConfigFrame(TGMainFrame *fMain, Int_t id)
Redefine empty default.
unpacked dcc data The class contains the data map for DCC or Feminos The data is stored as a 2D TMatr...
void Save(char *mode=NULL)
Dummy analysis to run as test and example. Give basic histograms of the data.
Int_t eventselection()
Redefine empty default.
void print()
Overloaded method which do all job.
Bool_t Lookup(const char *path, Bool_t &val)
Lookup function for scalar values.
const ULong_t gkNDetectors
R__EXTERN HarpoDetSet * gHDetSet