4 cout <<
"QA module for the DRC Simulation." << endl;
12 TString vmcdir=gSystem->Getenv(
"VMCWORKDIR");
14 FairRunSim *
fRun =
new FairRunSim();
15 fRun->SetName(
"TGeant4");
16 fRun->SetGenerateRunInfo(kFALSE);
18 fRun->SetOutputFile(outFile);
19 fRun->SetMaterials(
"media_pnd.geo");
20 fRun->SetUserConfig(vmcdir+
"/macro/detectors/drc/g4Config_Cherenkov.C");
21 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
27 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
29 rtdb->setFirstInput(parIo1);
32 FairParRootFileIo*
output =
new FairParRootFileIo(kParameterMerged);
33 output->open(parFile.Data());
34 rtdb->setOutput(output);
39 Cave->SetGeometryFileName(
"pndcave.geo");
40 fRun->AddModule(Cave);
44 Pipe->SetGeometryFileName(
"beampipe_201309.root");
45 fRun->AddModule(Pipe);
56 Drc->SetVerboseLevel(0);
59 Drc->SetGeometryFileName(
"dirc_e3_b3_l6_m40.root");
63 cout<<
"Seed for random number generation= "<<gRandom->GetSeed()<<endl;
67 FairPrimaryGenerator*
primGen =
new FairPrimaryGenerator();
68 fRun->SetGenerator(primGen);
71 FairBoxGenerator*
boxGen =
new FairBoxGenerator(pdg, 1);
73 boxGen->SetPRange(3,3);
74 boxGen->SetPhiRange(phi, phi);
75 boxGen->SetThetaRange(theta,theta);
76 boxGen->SetXYZ(0.,0.,0.);
77 primGen->AddGenerator(boxGen);
79 fRun->SetStoreTraj(kFALSE);
84 fRun->SetField(fField);
90 rtdb->setOutput(output);
94 cout <<
" Test passed" << endl;
95 cout <<
" All ok " << endl;
void SetStopTime(Double_t ti=-1.)
Set time after which photons are killed.
void SetBlackLensSides(Bool_t lesi=kFALSE)
void SetTransportEffAtProduction(Bool_t tra=kFALSE)
Kill photons at production point according to the transport efficiency distribution.
FairParRootFileIo * output
FairPrimaryGenerator * primGen
void SetDetEffAtProduction(Bool_t dep=kFALSE)
Kill photons at production point according to the detector efficiency distribution.
FairParAsciiFileIo * parIo1
FairBoxGenerator * boxGen
void SetRunCherenkov(Bool_t ch)
void StopSecondaries(Bool_t ss=kFALSE)
Kill secondaries at its production point.
void SetOptionForLUT(Bool_t oplu=kFALSE)
void SetMirrorReal(Bool_t mir=kTRUE)
Choose between ideal and real mirror: