FairRoot/PandaRoot
Functions
production/scripts/prod_dig.C File Reference

Go to the source code of this file.

Functions

int prod_dig (TString prefix="")
 

Function Documentation

int prod_dig ( TString  prefix = "")

Definition at line 1 of file production/scripts/prod_dig.C.

References PndMasterRunAna::AddDigiTasks(), PndMasterRunAna::Finish(), fRun, nEvents, output, PndMasterRunAna::SetInput(), PndMasterRunAna::SetOptions(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndMasterRunAna::Setup(), and TString.

2 {
3  //-----User Settings:------------------------------------------------------
4  TString parAsciiFile = "all.par";
5  TString output = "digi";
6  TString opt = "";
7 
8  // ----- Initial Settings --------------------------------------------
10  fRun->SetInput("dummy");
11  fRun->SetOutput(output);
12  fRun->SetParamAsciiFile(parAsciiFile);
13  fRun->Setup(prefix);
14  if (opt!="") fRun->SetOptions(opt);
15 
16  // ----- Add tasks ----------------------------------------------------
17  fRun->AddDigiTasks();
18 
19  // ----- Intialise and run --------------------------------------------
20  fRun->Init();
21  fRun->Run(0, nEvents);
22  fRun->Finish();
23 
24  return 0;
25 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
FairParRootFileIo * output
Definition: sim_emc_apd.C:120
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetInput(TString par)
Input of the macro.
Int_t nEvents
Definition: hit_dirc.C:11
void SetOptions(TString par)
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for ...
void AddDigiTasks(Bool_t pers=kTRUE)
Add digitization and local reconstruction tasks.
void Finish()
Final diagnostics.
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.