19 template <
typename Type>
 
   20 Type 
StrTo(
char const *str);
 
   23 int main(
int argc, 
char *argv[])
 
   27     TApplication app(
"SimComplete", &argc, argv, 0, -1);
 
   30     Int_t 
nEvents = argc > 1 ? StrTo<Int_t>(argv[1]) : 10;
 
   31     TString trackDetector = argc > 2 ? argv[2] : 
"stt";
 
   32     TString const &simEngine = argc > 3 ? argv[3] : 
"TGeant3";
 
   33     Double_t momentum = argc > 4 ? StrTo<Double_t>(argv[4]) : 7.24;
 
   34     Bool_t useEvtGen = argc > 5 ? StrTo<Bool_t>(argv[5]) : kTRUE;
 
   35     Bool_t useDpm = argc > 6 ? StrTo<Bool_t>(argv[6]) : kFALSE;
 
   36     Bool_t useBoxGenerator = argc > 7 ? StrTo<Bool_t>(argv[7]) : kFALSE;
 
   37     Double_t beamMomentum = argc > 8 ? StrTo<Double_t>(argv[8]) : 15.0;
 
   39     TString outParamsFile= argc > 10 ? argv[10] : 
"simparams.root";
 
   40     TString inDigiParamsFile = argc > 11 ? argv[11] : 
"all.par";
 
   44     cout << endl << 
"Starting full simulation with:" << endl
 
   45         << 
"    # events               : " << nEvents << endl
 
   46         << 
"    tracking detector      : " << trackDetector << endl
 
   47         << 
"    sim engine             : " << simEngine << endl
 
   48         << 
"    momentum               : " << momentum << 
"GeV/c" << endl
 
   49         << 
"    using EvtGen           : " << useEvtGen << endl
 
   50         << 
"    using Dpm              : " << useDpm << endl
 
   51         << 
"    using BoxGenerator     : " << useBoxGenerator << endl
 
   52         << 
"    beam momentum          : " << beamMomentum << 
"GeV/c" << endl
 
   53         << 
"    output file            : " << outFile << endl
 
   54         << 
"    output params file     : " << outParamsFile << endl
 
   55         << 
"    input digi params file : " << inDigiParamsFile << endl << endl;
 
   59     SimComplete(nEvents, simEngine, momentum, useEvtGen, useDpm,
 
   60                 useBoxGenerator, beamMomentum, outFile, outParamsFile,
 
   61                 inDigiParamsFile,trackDetector);
 
   68 template <
typename Type>
 
   71     istringstream iss(str);
 
Type StrTo(char const *str)
int main(int argc, char *argv[])
void SimComplete(Int_t nEvents, TString const &simEngine, Double_t momentum, Bool_t useEvtGen, Bool_t useDpm, Bool_t useBoxGenerator, Double_t beamMomentum, TString const &outFile, TString const &outParamsFile, TString const &inDigiParamsFile, TString const &trackDetector)