46 TString kind, input, out1, out2;
60 out1 =
"Output_Calib";
67 input = TString::Format(
"%s", argv[1]);
68 out1 = TString::Format(
"%s_Calib", argv[1]);
69 out2 = TString::Format(
"%s_Anl", argv[1]);
74 kind = TString::Format(
"%s", argv[1]);
75 input = TString::Format(
"%s", argv[2]);
76 out1 = TString::Format(
"%s_Calib", argv[2]);
77 out2 = TString::Format(
"%s_Anl", argv[2]);
86 AddAnalysisStep(step1);
99 AddAnalysisStep(step2);
123 TString exec = TString::Format(
"setup.C(\"%s\",\"%s\")", kind.Data(), input.Data());
125 ExecuteScript(exec.Data());
151 fSize =
new TH1D (
"Eventsize",
"Event size [b]",160,1,160);
163 fitter->
AddGauss1(
"data1",
"Gauss1",15,5,1000);
164 fFitEnvSize=
new TGo4FitterEnvelope(
"sizefitter",fitter);
175 fitter->
AddGauss1(
"spectrum",
"Gauss1",500,20,1000);
#define __GO4BUILDVERSION__
Contains a single step of the analysis.
void SetErrorStopEnabled(Bool_t on)
Enables or disables the stop-on-error mode.
void SetProcessEnabled(Bool_t on=kTRUE)
Enables or disables the event processing.
void SetStoreEnabled(Bool_t on=kTRUE)
Enables or disables the event store.
void SetSourceEnabled(Bool_t on=kTRUE)
Enables or disables the event source.
The mother of all go4 analysis.
TGo4EventElement * GetInputEvent(const char *stepname) const
Returns the input event structure of analysis step.
TGo4EventElement * GetOutputEvent() const
Returns the output event (detector) structure of analysis step.
Bool_t AddParameter(TGo4Parameter *par, const char *subfolder=nullptr)
Puts a new parameter object in corresponding folder.
TH1 * GetHistogram(const char *name)
Search histogram in histogram list (directory).
Bool_t AddHistogram(TH1 *his, const char *subfolder=nullptr, Bool_t replace=kTRUE)
Add external histogram to go4 histogram directory.
Bool_t IsNewInputFile() const
True if input filelist has changed to a new lmd file.
TGo4Parameter * GetParameter(const char *name, const char *parameter_class=nullptr)
Retrieves a parameter object by name from the object folder.
void Print(Option_t *opt="") const override
Printout the analysis (step-) setup.
TGo4FitDataHistogram * AddH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)
Create TGo4FitDataHistogram object and adds its to fitter.
TGo4FitModelGauss1 * AddGauss1(const char *DataName, const char *ModelName, Double_t iPosition, Double_t iWidth, Double_t iAmpl=1., Int_t Axis=0)
Add 1-dim gaussian model to fitter.
void AddPolynomX(const char *DataName, const char *NamePrefix, Int_t MaxOrder=1, Int_t GroupIndex=0, Double_t lrange=0., Double_t rrange=0.)
Construct 1-dim polynom for specified data object for x scale.
static void Info(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 1.
static void Error(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 3.
Ready to use step factory.
void DefEventProcessor(const char *Pname, const char *Pclass)
Configure name and class name for event processor.
void DefInputEvent(const char *Iname, const char *Iclass)
Configure name and class name for input event.
void DefOutputEvent(const char *Oname, const char *Oclass)
Configure name and class name for output event.
static Bool_t CheckVersion(Int_t version)
Returns true if Version number matches the argument of the Method.
TGo4FitterEnvelope * fFitEnvSize
Int_t UserPostLoop() override
User defined function called once after processing the main event loop.
TGo4FitterEnvelope * fFitEnvSpectrum
TXXXUnpackEvent * fRawEvent
Int_t UserPreLoop() override
User defined function called once before processing the main event loop.
Int_t UserEventFunc() override
User defined function which processes the actual analysis.