1 #include "ERRawToAnalyzeConverter.h" 7 #include "FairRootManager.h" 8 #include "FairRunAna.h" 9 #include "FairRuntimeDb.h" 13 : FairTask(
"Convert Raw event to analyse event"),
31 : FairTask(
"Convert Raw event to analyse event", verbose),
54 void ERRawToAnalyzeConverter::SetParContainers()
57 FairRunAna* run = FairRunAna::Instance();
58 if ( ! run ) Fatal(
"SetParContainers",
"No analysis run");
60 FairRuntimeDb* rtdb = run->GetRuntimeDb();
61 if ( ! rtdb ) Fatal(
"SetParContainers",
"No runtime database");
69 FairRootManager* ioman = FairRootManager::Instance();
70 if ( ! ioman ) Fatal(
"Init",
"No FairRootManager");
74 for (Int_t iChanel = 0; iChanel < fNChanels; iChanel++){
76 bName.Form(
"ch%d.", iChanel+1);
78 if (!fRawEvents[iChanel])
79 Fatal(
"Init",
"Can`t find branch in input file!");
84 for (Int_t iChanel = 0; iChanel < fNChanels; iChanel++){
87 bName.Form(
"Ach%d.",iChanel+1);
88 ioman->Register(bName,
"Analyze", fAEvents[iChanel], kTRUE);
90 if (fSmoothPar == kTRUE ) { std::cout << std::endl <<
"SIGNALS WILL BE SMOOTHED!" << std::endl; }
91 else std::cout << std::endl <<
"SIGNALS WILL NOT BE SMOOTHED!" << std::endl;
100 if ( !(fEvent%500) ) { std::cout <<
"####### EVENT " << fEvent <<
" #####" << std::endl; }
106 for (Int_t iChanel = 0; iChanel < fNChanels; iChanel++){
107 fAEvents[iChanel]->SetInputEvent(&fRawEvents[iChanel]);
108 fAEvents[iChanel]->SetCFratio(fRatio);
109 fAEvents[iChanel]->SetCFtimeDelay(fTD);
110 fAEvents[iChanel]->SetNoiseRange(fNoiseMin, fNoiseMax);
111 fAEvents[iChanel]->SetSmoothPoints(fNumSmoothP);
112 fAEvents[iChanel]->ProcessEvent(fSmoothPar);
120 for (Int_t iChanel = 0; iChanel < fNChanels; iChanel++){
121 fAEvents[iChanel]->Reset();
~ERRawToAnalyzeConverter()
class for processing raw data and getting amp and time properties of signal
ERRawToAnalyzeConverter()
task for analyzing raw data
virtual void Exec(Option_t *opt)
virtual InitStatus Init()
class for raw data obtained from measurements or simulations