FairRoot/PandaRoot
PndMvdPixelDigiSorterTask.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndMvdPixelDigiSorterTask source file -----
3 // -------------------------------------------------------------------------
4 
5 
7 #include "PndSdsPixelDigiPar.h"
8 #include "FairRuntimeDb.h"
9 #include "FairRun.h"
10 
11 // ----- Default constructor -------------------------------------------
13  PndSdsPixelDigiSorterTask("MVD Pixel Digi Sorter")
14 {
15 
16  fOverwriteParams = kFALSE;
17  fPersistance = kTRUE;
18  if(fVerbose>2) std::cout << "MVD Pixel Digi Sorter created, Parameters will be taken from RTDB" << std::endl;
19 
20 }
21 
23  PndSdsPixelDigiSorterTask(numberOfCells, widthOfCells)
24 {
25 
26  fOverwriteParams = kTRUE;
27  fPersistance = kTRUE;
28  if(fVerbose>2) std::cout << "MVD Pixel Digi Sorter created, Parameters will be taken from RTDB" << std::endl;
29 
30 }
31 // -------------------------------------------------------------------------
32 
33 // ----- Destructor ----------------------------------------------------
35 {
36 }
37 
38 // ----- Public method Init --------------------------------------------
40 {
42  return status;
43 }
44 
45 // ----- Initialization of Parameter Containers -------------------------
47 {
48  // called before Init()
49  // Get Base Container
50  FairRun* ana = FairRun::Instance();
51  FairRuntimeDb* rtdb=ana->GetRuntimeDb();
52  fDigiPar = (PndSdsPixelDigiPar*)(rtdb->getContainer("MVDPixelDigiPar"));
53  PndSdsPixelDigiSorterTask::SetParContainers();
54 }
55 
56 // -------------------------------------------------------------------------
57 void PndMvdPixelDigiSorterTask::SetBranchNames(TString inBranchname, TString outBranchname, TString folderName)
58 {
59  fInBranchName = inBranchname;
60  fOutBranchName = outBranchname;
61  fFolderName = folderName;
62  SetInBranchId();
63 }
64 
65 // -------------------------------------------------------------------------
67 {
68  if(fVerbose>1) Info("SetBranchNames","Set Mvd Pixel names.");
69  fInBranchName = "MVDPixelDigis";
70  fOutBranchName = "MVDSortedPixelDigis";
71  fFolderName = "PndMvd";
72  SetInBranchId();
73 }
74 
int fVerbose
Definition: poormantracks.C:24
ClassImp(PndMvdPixelDigiSorterTask)
Double_t
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
fRun Init()
Definition: NHitsPerEvent.C:20
int status[10]
Definition: f_Init.h:28
Digitization Parameter Class for SDS-Pixel part.