FairRoot/PandaRoot
PndEmcFullDigiTask.cxx
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // Description:
3 // Wrapper class for EMC digitization
4 //------------------------------------------------------------------------
5 
6 //-----------------------
7 // This Class's Header --
8 //-----------------------
9 #include "PndEmcFullDigiTask.h"
10 
11 //-------------------------------
12 // Collaborating Class Headers --
13 //-------------------------------
14 
15 #include "PndEmcDataTypes.h"
16 
17 #include "PndEmcHitsToWaveform.h"
18 #include "PndEmcWaveformToDigi.h"
19 #include "TClonesArray.h"
20 #include "TROOT.h"
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 #include <iostream>
26 
27 using std::endl;
28 using std::cout;
29 //----------------
30 // Constructors --
31 //----------------
33  PndPersistencyTask("EMC Full digitization Task"), fVerbose(verbose)
34 {
35  this->Add(new PndEmcHitsToWaveform());
36  this->Add(new PndEmcWaveformToDigi());
37 
38  SetPersistency(persistance);
39 
40  TList* thistasks = this->GetListOfTasks();
41  for(Int_t i=0;i<thistasks->GetEntries();i++)
42  {
43  ((PndPersistencyTask*)thistasks->At(i))->SetVerbose(fVerbose);
44  }
45 
47 }
48 
50 {
51  SetPersistency(val);
52  TList* thistasks = this->GetListOfTasks();
53  ((PndEmcHitsToWaveform*)thistasks->At(0))->SetStorageOfData(GetPersistency());
54  return;
55 }
56 
58 {
59  TList* thistasks = this->GetListOfTasks();
60  ((PndEmcWaveformToDigi*)thistasks->At(1))->SetStorageOfData(val);
61  return;
62 }
63 
64 //--------------
65 // Destructor --
66 //--------------
68 {
69 }
70 
71 // ----- Public method Init -------------------------------
73  return kSUCCESS;
74 }
75 
76 void PndEmcFullDigiTask::Exec(Option_t*)
77 {
78  return;
79 }
80 
82 
Takes list of PndEmcHits and creates PndEmcWaveform.
mychain Add("run.root")
int fVerbose
Definition: poormantracks.C:24
Int_t i
Definition: run_full.C:25
virtual void SetParContainers()
combines the tasks PndEmcHitsToWaveform and PndEmcWaveformToDigi
Double_t val[nBoxes][nFEBox]
Definition: createCalib.C:11
#define verbose
void SetPersistency(Bool_t val=kTRUE)
void StoreDigi(Bool_t val)
PndEmcFullDigiTask(Int_t verbose=0, Bool_t storedigis=kTRUE)
Emc SetStorageOfData(kFALSE)
void StoreWaveforms(Bool_t val)
ClassImp(PndAnaContFact)
virtual InitStatus Init()
Takes list of PndEmcWaveform and creates PndEmcDigi.
drchit SetVerbose(iVerbose)
virtual void Exec(Option_t *opt)