25 #include "FairRootManager.h"
26 #include "FairRunAna.h"
27 #include "FairRuntimeDb.h"
29 #include "TClonesArray.h"
30 #include "TStopwatch.h"
32 #include "IfdProxyDict.h"
33 #include "IfdStdVectorProxy.h"
67 FairRootManager* ioman = FairRootManager::Instance();
70 cout <<
"-E- PndEmcTmpWaveformToDigi::Init: "
71 <<
"RootManager not instantiated!" << endl;
104 cout <<
"-W- PndEmcTmpWaveformToDigi::Init: "
105 <<
"Unknown digi position method!" << endl;
109 cout <<
"-I- PndEmcTmpWaveformToDigi: Intialization successfull" << endl;
121 if ( !
fDigiArray ) Fatal(
"Exec",
"No Digi Array");
148 vector<PndEmcWaveform*> *waveformList= Ifd< std::vector<PndEmcWaveform*> >::get(gblEvtDict);
150 Int_t nWaveforms = waveformList->size();
151 if (0==waveformList) {
152 cout <<
"Failed to recover std::vector from the dictionary"
157 vector<PndEmcWaveform*>::const_iterator it=waveformList->begin();
158 for (it; it!=waveformList->end();it++)
160 hitIndex=(*it)->GetHitIndex();
161 Int_t detId=(*it)->GetDetectorId();
162 Int_t trackId=(*it)->GetTrackId();
163 (*it)->fitPeak(max_energy,peakPosition);
164 max_energy/=(*it)->get_scale();
168 new((*fDigiArray)[i_digi])
PndEmcDigi(trackId,detId, max_energy, peakPosition,hitIndex);
179 cout <<
"PndEmcTmpWaveformToDigi, Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
187 FairRun*
run = FairRun::Instance();
188 if ( ! run ) Fatal(
"SetParContainers",
"No analysis run");
190 FairRuntimeDb* db = run->GetRuntimeDb();
191 if ( ! db ) Fatal(
"SetParContainers",
"No runtime database");
static void selectDigiPositionMethod(PositionMethod, double positionDepthPWO=0., double positionDepthShahslyk=0., double rescaleFactor=1.)
represents the reconstructed hit of one emc crystal
Double_t val[nBoxes][nFEBox]
void SetPersistency(Bool_t val=kTRUE)
Double_t GetEnergyDigiThreshold()
parameter set of Emc digitisation
Parameter set for Emc Reco.