| 84 |
|
|
| 85 |
fVerbose.InitMC(); |
fVerbose.InitMC(); |
| 86 |
|
|
| 87 |
gROOT->LoadMacro(setup); |
gROOT->LoadMacro(setup); |
| 88 |
gInterpreter->ProcessLine("Config()"); |
gInterpreter->ProcessLine("Config()"); |
| 89 |
gMC->SetStack(fStack); |
gMC->SetStack(fStack); |
| 90 |
std::cout<<"!!! BEFORE INIT GMC"<<std::endl; |
std::cout<<"!!! BEFORE INIT GMC"<<std::endl; |
| 91 |
|
|
| 92 |
gMC->Init(); |
gMC->Init(); |
| 93 |
cout<<"INIT MC"<<endl; |
cout<<"INIT MC"<<endl; |
| 94 |
gMC->BuildPhysics(); |
gMC->BuildPhysics(); |
| 95 |
cout<<"PHYSICS BUILDED"<<endl; |
cout<<"PHYSICS BUILDED"<<endl; |
| 96 |
|
|
| 97 |
|
|
| 98 |
fdetector->InitMC(); |
fdetector->InitMC(); |
| 99 |
|
|
| 100 |
// fdetector->Print(); |
// fdetector->Print(); |
| 101 |
|
|
| 102 |
PamVMCSDMgr::Instance()->Register(); |
PamVMCSDMgr::Instance()->Register(); |
| 103 |
|
|
| 104 |
PamVMCDigMgr::Instance()->LoadCalib(); |
PamVMCDigMgr::Instance()->LoadCalib(); |
| 105 |
PamVMCRawMgr::Instance()->WriteToFile(); |
PamVMCRawMgr::Instance()->WriteToFile(); |
| 106 |
|
|
| 107 |
fPrimaryGenerator->Register(); |
fPrimaryGenerator->Register(); |
| 108 |
|
|
| 109 |
std::cout<<"LIST OF ACTIVE SD'S:"<<std::endl; |
std::cout<<"LIST OF ACTIVE SD'S:"<<std::endl; |
| 110 |
|
|
| 111 |
PamVMCSDMgr::Instance()->Print(); |
PamVMCSDMgr::Instance()->Print(); |
| 112 |
} |
} |
| 113 |
|
|
| 114 |
void PamVMCApplication::RunMC(Int_t nofEvents) |
void PamVMCApplication::RunMC(Int_t nofEvents) |