/[PAMELA software]/PamVMC/src/PamVMCApplication.cxx
ViewVC logotype

Diff of /PamVMC/src/PamVMCApplication.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by nikolas, Wed Feb 18 17:38:17 2009 UTC revision 1.3 by nikolas, Thu Feb 19 18:43:14 2009 UTC
# Line 84  void PamVMCApplication::InitMC(const cha Line 84  void PamVMCApplication::InitMC(const cha
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)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23