FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
PndMasterLocalRecoTask Class Reference

The default local reconstruction tasks. More...

#include <PndMasterLocalRecoTask.h>

Inheritance diagram for PndMasterLocalRecoTask:
PndMasterTask PndBlackBoxTask PndPersistencyTask

Public Member Functions

 PndMasterLocalRecoTask (TString options="")
 Default constructor with options This string can be: "" -> default settings full setup "day1" -> Setup for day1 experiment: no GEM, FTS1234, NO DISC, NO RICH "gem" (added to "day1") -> Setup for day1 experiment with 3 GEM planes "fts1256" (added to "day1") -> Setup for day1 experiment with FTS1256 insted of FTS1234 Example: "day1+gem+fts1256" means day1 setup + GEM planes + fst1256. More...
 
virtual ~PndMasterLocalRecoTask ()
 Destructor. More...
 
virtual void SetPersistency (Bool_t pers=kTRUE)
 Set the persistency of all the tasks. More...
 
void PrintTaskList ()
 It prints the list of tasks. More...
 
void SetVerbose (Int_t iVerbose=1)
 Set the Verbosity to all the tasks. More...
 
void SetVerbose (Int_t nTask, Int_t iVerbose)
 Set the Verbosity to a single task. More...
 
FairTask * GetTask (Int_t nTask)
 Return the pointer to a single task. More...
 
virtual void SetParContainers ()
 
virtual InitStatus Init ()
 
virtual InitStatus ReInit ()
 
virtual void Exec (Option_t *opt)
 
Bool_t GetPersistency ()
 

Private Attributes

std::vector< PndPersistencyTask * > fBranchTasks
 
std::vector< FairTask * > fStandardTasks
 
std::map< PndPersistencyTask
*, bool > 
fFixedPersistency
 
TString fOptions
 Options parsed to the digitization. More...
 

Detailed Description

The default local reconstruction tasks.

Master Local Reconstruction Task Class

This class includes all the local reconstruction tasks which need to be used in the default local reconstruction macros.

Remarks
If you find some obsolete task which needs to be changed, contact the computing coordinator.
Author
Tobias Stockmanns t.sto.nosp@m.ckma.nosp@m.nns@f.nosp@m.z-ju.nosp@m.elich.nosp@m..de, FZ Juelich
Version
1.0
Date
Mar 1, 2018

Definition at line 23 of file PndMasterLocalRecoTask.h.

Constructor & Destructor Documentation

PndMasterLocalRecoTask::PndMasterLocalRecoTask ( TString  options = "")

Default constructor with options This string can be: "" -> default settings full setup "day1" -> Setup for day1 experiment: no GEM, FTS1234, NO DISC, NO RICH "gem" (added to "day1") -> Setup for day1 experiment with 3 GEM planes "fts1256" (added to "day1") -> Setup for day1 experiment with FTS1256 insted of FTS1234 Example: "day1+gem+fts1256" means day1 setup + GEM planes + fst1256.

Default Constructor.

Digitization task list

Here all the digitization tasks are added to the task, with the standard settings. A check is done after each task if the tasklist enum is broken or not. At the end the event counter is added (each 100 events), and the verbosity is set to 0 to all the tasks (it can be changed afterwards with SetVerbosity() functions.

Definition at line 39 of file PndMasterLocalRecoTask.cxx.

References Add(), fBranchTasks, fOptions, and PndMasterTask::SetVerbose().

39  :
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 }
mychain Add("run.root")
std::vector< PndPersistencyTask * > fBranchTasks
void SetVerbose(Int_t iVerbose=1)
Set the Verbosity to all the tasks.
Takes clusters and slits them up into bumps.
Task to cluster PndEmcDigis.
PndMasterTask()
Default constructor.
TString fOptions
Options parsed to the digitization.
PndMasterLocalRecoTask::~PndMasterLocalRecoTask ( )
virtual

Destructor.

Definition at line 83 of file PndMasterLocalRecoTask.cxx.

84 {
85 }

Member Function Documentation

void PndBlackBoxTask::Exec ( Option_t *  opt)
virtualinherited

Reimplemented in PndMvdQATask, and PndBufferTestTask.

Definition at line 50 of file PndBlackBoxTask.cxx.

51 {
52  return;
53 }
Bool_t PndPersistencyTask::GetPersistency ( )
inlineinherited

Definition at line 32 of file PndPersistencyTask.h.

References PndPersistencyTask::fPersistency.

Referenced by PndLmdPixelHitProducerFast::GetPersistance(), PndMdtDigitization::Init(), PndMdtHitProducerIdeal::Init(), PndMdtClusterTask::Init(), PndFtsHitProducerRealFast::Init(), PndRichHitProducer::Init(), PndSttHitProducerRealFast::Init(), PndDiscTaskReconstruction::Init(), PndSttHelixHitProducer::Init(), PndDiscTaskPID::Init(), PndIdealTrackFinder::Init(), PndSttMvdGemTracking::Init(), PndMdtTrkProducer::Init(), PndFtsHitProducerRealFull::Init(), PndLmdPixelClusterTask::Init(), PndSttHitProducerRealFull::Init(), PndLmdStripClusterTask::Init(), PndEmcApdHitProducer::Init(), PndMissingPzCleanerTask::Init(), PndEmcMakeRecoHit::Init(), PndEmcMakeClusterOnline::Init(), PndTrackSmearTask::Init(), PndEmcFWEndcapTimebasedWaveforms::Init(), PndSttHitProducerIdeal::Init(), PndEmcFWEndcapDigi::Init(), PndFtsHitProducerIdeal::Init(), PndEmcMakeCluster::Init(), PndMdtPointsToWaveform::Init(), PndDiscTaskDigitization::Init(), PndEmcMakeDigi::Init(), PndSdsTimeWalkCorrTask::Init(), PndLmdPixelHitProducerFast::Init(), PndDrcHitFinder::Init(), PndRichHitFinder::Init(), PndEmcMakeCorr::Init(), PndFtofHitProducerIdeal::Init(), PndEmcHitsToWaveform::Init(), PndSciTDigiTask::Init(), PndDrcHitProducerIdeal::Init(), PndSdsHitProducerIdeal::Init(), PndSciTHitProducerIdeal::Init(), PndRecoMultiKalmanTask2::Init(), PndEmcHitProducer::Init(), PndDrcHitProducerReal::Init(), PndDskFLGHitProducerIdeal::Init(), PndEmcTmpWaveformToDigi::Init(), PndDrcDigiTask::Init(), PndEmcWaveformToDigi::Init(), PndSttMatchTracks::Init(), PndEmcWaveformToCalibratedDigi::Init(), PndTrkTracking2::Init(), PndSttFindTracks::Init(), PndEmcMultiWaveformToCalibratedDigi::Init(), PndRecoKalmanTask2::Init(), PndDrcTimeDigiTask::Init(), PndEmcExpClusterSplitter::Init(), PndFtsHoughTrackerTask::Init(), PndSdsNoiseProducer::Init(), PndEmcPhiBumpSplitter::Init(), PndSdsIdealRecoTask::Init(), PndSdsHybridHitProducer::Init(), PndRecoMultiKalmanTask::Init(), PndSdsIdealClusterTask::Init(), PndRecoKalmanTask::Init(), PndSdsStripHitProducerDif::Init(), PndGemDigitize::Init(), PndSdsStripHitProducer::Init(), PndGemFindHits::Init(), PndSdsPixelClusterTask::Init(), PndSdsStripClusterTask::Init(), PndMvdGemTrackFinderOnHits::Init(), PndBarrelTrackFinder::Init(), PndEmcFullDigiTask::PndEmcFullDigiTask(), PndEmcMakeBump::PndEmcMakeBump(), PndUnassignedHitsTask::RegisterBranches(), PndMvdClusterTask::SetPersistance(), PndMvdDigiTask::SetPersistance(), PndEmcMakeBump::SetStorageOfData(), and PndEmcFullDigiTask::StoreDigi().

32 { return fPersistency; }
FairTask * PndMasterTask::GetTask ( Int_t  nTask)
inherited

Return the pointer to a single task.

This function allows to retrieve the pointer of a task inside the task list, when you want to use some particular setter or change someting in the task.

Parameters
nTaskIndex of the task you want to modify. Instead of the integer you can use the enum "k" + task name (i.e. kMvdDigiTask, kSttHitProducerRealFast, etc...)
Returns
A pointer to the corresponding task

Retrieve the pointer to a Task in the list

Definition at line 75 of file PndMasterTask.cxx.

76 {
77  TList* thistasks = this->GetListOfTasks();
78 
79  return ((FairTask*)thistasks->At(nTask));
80 }
InitStatus PndBlackBoxTask::Init ( )
virtualinherited

Reimplemented in PndMvdQATask, and PndBufferTestTask.

Definition at line 43 of file PndBlackBoxTask.cxx.

44 {
45  return kSUCCESS;
46 }
void PndMasterTask::PrintTaskList ( )
inherited

It prints the list of tasks.

Print the list of the task which are included in the list

This function print the task number, its title and its name. This can be important when it is needed to modify a particular task and the task number is needed. In any case, the use of enum should be preferred.

Remarks
The task names are not well defined in the classes, some of them are missing. We should define a better scheme.

Definition at line 24 of file PndMasterTask.cxx.

References counter, and next.

25 {
26  TList* thistasks = this->GetListOfTasks();
27 
28  Int_t counter = 0;
29  TIter next(thistasks->MakeIterator());
30  while (FairTask *task = (FairTask*)next())
31  {
32  if (counter < 10)
33  std::cout << "Task #" << counter << "\tTitle: " << task->GetTitle() << "\tName: " << task->GetName() << std::endl;
34  else
35  std::cout << "Task #" << counter << "\tTitle: " << task->GetTitle() << "\tName: " << task->GetName() << std::endl;
36  counter++;
37  }
38 
39  return;
40 }
int counter
Definition: ZeeAnalysis.C:59
static int next[96]
Definition: ranlxd.cxx:374
InitStatus PndBlackBoxTask::ReInit ( )
virtualinherited

Definition at line 25 of file PndBlackBoxTask.cxx.

26 {
27  return kSUCCESS;
28 }
void PndBlackBoxTask::SetParContainers ( )
virtualinherited

Reimplemented in PndMvdQATask.

Definition at line 21 of file PndBlackBoxTask.cxx.

22 {
23 }
void PndMasterLocalRecoTask::SetPersistency ( Bool_t  pers = kTRUE)
virtual

Set the persistency of all the tasks.

Parameters
persPersistency level: 0 no TCA, 1 all TCA

Set the Persistency of all the tasks in the same way

Reimplemented from PndMasterTask.

Definition at line 74 of file PndMasterLocalRecoTask.cxx.

References fBranchTasks, and fFixedPersistency.

Referenced by PndMasterRunAna::AddLocalRecoTasks().

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 }
std::vector< PndPersistencyTask * > fBranchTasks
std::map< PndPersistencyTask *, bool > fFixedPersistency
void PndMasterTask::SetVerbose ( Int_t  iVerbose = 1)
inherited

Set the Verbosity to all the tasks.

Parameters
iVerboseVerbosity level: 0 no messages, the higher more messages

Set the Verbosity of all the tasks at the same number

Definition at line 43 of file PndMasterTask.cxx.

References next.

Referenced by PndMasterDigiOnlyTask::PndMasterDigiOnlyTask(), PndMasterDigiTask::PndMasterDigiTask(), PndMasterLocalRecoTask(), PndMasterMultiPidTask::PndMasterMultiPidTask(), PndMasterPidTask::PndMasterPidTask(), PndMasterRecoIdealTask::PndMasterRecoIdealTask(), PndMasterRecoTask::PndMasterRecoTask(), PndMasterSimTask::PndMasterSimTask(), and PndMasterTask::SetVerbose().

44 {
45  TList* thistasks = this->GetListOfTasks();
46 
47  TIter next(thistasks->MakeIterator());
48  while (FairTask *task = (FairTask*)next())
49  {
50  task->SetVerbose(iVerbose);
51  }
52 
53  return;
54 }
Int_t iVerbose
static int next[96]
Definition: ranlxd.cxx:374
void PndMasterTask::SetVerbose ( Int_t  nTask,
Int_t  iVerbose 
)
inherited

Set the Verbosity to a single task.

This function has to be used when you want to change the verbosity to a single task

Parameters
nTaskIndex of the task you want to modify. Instead of the integer you can use the enum k + task name (i.e. kMvdDigiTask, hSttHitProducerRealFast
iVerboseVerbosity. 0 -> no messages; the higher -> more messages

Set the Verbosity of a single task

Definition at line 57 of file PndMasterTask.cxx.

References PndMasterTask::SetVerbose().

58 {
59  TList* thistasks = this->GetListOfTasks();
60  ((FairTask*)thistasks->At(nTask))->SetVerbose(iVerbose);
61 
62  return;
63 }
void SetVerbose(Int_t iVerbose=1)
Set the Verbosity to all the tasks.
Int_t iVerbose

Member Data Documentation

std::vector<PndPersistencyTask*> PndMasterLocalRecoTask::fBranchTasks
private

Definition at line 51 of file PndMasterLocalRecoTask.h.

Referenced by PndMasterLocalRecoTask(), and SetPersistency().

std::map<PndPersistencyTask*, bool> PndMasterLocalRecoTask::fFixedPersistency
private

Definition at line 53 of file PndMasterLocalRecoTask.h.

Referenced by SetPersistency().

TString PndMasterLocalRecoTask::fOptions
private

Options parsed to the digitization.

Definition at line 55 of file PndMasterLocalRecoTask.h.

Referenced by PndMasterLocalRecoTask().

std::vector<FairTask*> PndMasterLocalRecoTask::fStandardTasks
private

Definition at line 52 of file PndMasterLocalRecoTask.h.


The documentation for this class was generated from the following files: