FairRoot/PandaRoot
PndMasterLocalRecoTask.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndMasterLocalRecoTask source file -----
3 // ----- Created 31/01/16 by S. Spataro -----
4 // ----- Wrapper for digitizing tasks -----
5 // -------------------------------------------------------------------------
6 
7 
9 #include "PndMasterTask.h"
10 
12 #include "PndMvdDigiTask.h"
13 #include "PndMvdClusterTask.h"
14 #include "PndEmcHitsToWaveform.h"
15 #include "PndEmcWaveformToDigi.h"
16 #include "PndEmcMakeCluster.h"
17 #include "PndEmcMakeBump.h"
19 #include "PndSciTDigiTask.h"
20 #include "PndMdtHitProducerIdeal.h"
21 #include "PndMdtTrkProducer.h"
22 #include "PndDrcHitProducerReal.h"
23 #include "PndGemDigitize.h"
24 #include "PndGemFindHits.h"
27 #include "PndRichHitProducer.h"
28 
29 
30 #include <algorithm>
31 
32 
38 // ----- Default constructor -------------------------------------------
40  PndMasterTask("Master Local Reco Task"), fOptions(options)
41 {
42 
43  fBranchTasks.push_back(new PndSttHitProducerRealFast());
44  fBranchTasks.push_back(new PndFtsHitProducerRealFast());
45  fBranchTasks.push_back(new PndSciTDigiTask());
46  fBranchTasks.push_back(new PndMdtHitProducerIdeal());
47  fBranchTasks.push_back(new PndDrcHitProducerReal());
48  fBranchTasks.push_back(new PndFtofHitProducerIdeal());
49  if ( !fOptions.Contains("day1") || !fOptions.Contains("phase1") )
50  {
51  fBranchTasks.push_back(new PndRichHitProducer());
52  }
53 
54  fBranchTasks.push_back(new PndMvdClusterTask());
55 
56  fBranchTasks.push_back(new PndEmcMakeCluster());
57  fBranchTasks.push_back(new PndEmcMakeBump());
58 
59  fBranchTasks.push_back(new PndMdtTrkProducer());
60 
61  // ----- GEM hit producers ---------------------------------
62  if ( (!fOptions.Contains("nogem")) || (!fOptions.Contains("gem0")) )
63  {
64  fBranchTasks.push_back(new PndGemFindHits("GEM Hit Finder", 0));
65  }
66 
67  std::for_each(fBranchTasks.begin(), fBranchTasks.end(), [this](const FairTask* task){ Add((TTask*)task); } );
68 
69  SetVerbose(0);
70 }
71 // -------------------------------------------------------------------------
72 
75 {
76  std::for_each(fBranchTasks.begin(), fBranchTasks.end(), [pers](PndPersistencyTask* task){task->SetPersistency(pers);});
77  std::for_each(fFixedPersistency.begin(), fFixedPersistency.end(), [](std::pair<PndPersistencyTask*, bool> task){task.first->SetPersistency(task.second);});
78 
79  return;
80 }
81 
82 // ----- Destructor ----------------------------------------------------
84 {
85 }
86 // -------------------------------------------------------------------------
87 
mychain Add("run.root")
std::vector< PndPersistencyTask * > fBranchTasks
PndMasterLocalRecoTask(TString options="")
Default constructor with options This string can be: &quot;&quot; -&gt; default settings full setup &quot;day1&quot; -&gt; Set...
void SetVerbose(Int_t iVerbose=1)
Set the Verbosity to all the tasks.
Abstract class for all the master task list classes.
Definition: PndMasterTask.h:21
The default local reconstruction tasks.
virtual void SetPersistency(Bool_t pers=kTRUE)
Set the persistency of all the tasks.
Takes clusters and slits them up into bumps.
Task to cluster PndEmcDigis.
std::map< PndPersistencyTask *, bool > fFixedPersistency
ClassImp(PndAnaContFact)
virtual ~PndMasterLocalRecoTask()
Destructor.
TString fOptions
Options parsed to the digitization.