FairRoot/PandaRoot
PndMasterSimTask.cxx
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndMasterSimTask source file -----
3 // ----- Created 04/02/16 by S. Spataro -----
4 // ----- Wrapper for sim tasks -----
5 // -------------------------------------------------------------------------
6 
7 
8 #include "PndMasterSimTask.h"
9 #include "PndMasterTask.h"
10 
11 #include "PndEmcHitProducer.h"
12 
18 // ----- Default constructor -------------------------------------------
20  PndMasterTask("Master Sim Task"), fOptions(options)
21 {
22  // ----- Emc hit Producer ----------------------------
23  PndEmcHitProducer* hp=NULL;
24  this->Add(hp=new PndEmcHitProducer()); // 0
25  if ((this->GetListOfTasks()->GetSize()-1) != kPndEmcHitProducer) Error("PndMasterDigiTask","Error in task #%i", (this->GetListOfTasks()->GetSize()-1));
26  if(fOptions.Contains("day1")){
27  hp->SetDayOne(true);
28  }
29  SetVerbose(0);
30 }
31 // -------------------------------------------------------------------------
32 
35 {
36  ((PndEmcHitProducer*)GetListOfTasks()->At(kPndEmcHitProducer))->SetStorageOfData(pers);
37 
38  return;
39 }
40 
41 // ----- Destructor ----------------------------------------------------
43 {
44 }
45 // -------------------------------------------------------------------------
46 
mychain Add("run.root")
The default sim tasks.
void SetVerbose(Int_t iVerbose=1)
Set the Verbosity to all the tasks.
creates PndEmcHits from PndEmcPoints
Emc SetStorageOfData(kFALSE)
Abstract class for all the master task list classes.
Definition: PndMasterTask.h:21
virtual ~PndMasterSimTask()
Destructor.
TString fOptions
Options parsed to the reconstruction.
ClassImp(PndAnaContFact)
virtual void SetPersistency(Bool_t pers=kTRUE)
Set the persistency of all the tasks.
PndMasterSimTask(TString fOptions="")
Default constructor.
void SetDayOne(bool d=true)