9     G4AnalysisManager *man = G4AnalysisManager::Instance();
 
   12     man->CreateNtuple(
"lyso", 
"Primary Gamma, energy deposition inside the crystal and detectors output");
 
   14     man->CreateNtupleIColumn(
"Event"); 
 
   15     man->CreateNtupleIColumn(
"PID_gun");
 
   16     man->CreateNtupleDColumn(
"E_gun");
 
   17     man->CreateNtupleDColumn(
"X_gun");
 
   18     man->CreateNtupleDColumn(
"Y_gun");
 
   19     man->CreateNtupleDColumn(
"Z_gun"); 
 
   20     man->CreateNtupleDColumn(
"MomX_gun");
 
   21     man->CreateNtupleDColumn(
"MomY_gun");
 
   22     man->CreateNtupleDColumn(
"MomZ_gun");
 
   23     man->CreateNtupleDColumn(
"ToA");
 
   24     man->CreateNtupleDColumn(
"XoA"); 
 
   25     man->CreateNtupleDColumn(
"YoA");
 
   26     man->CreateNtupleDColumn(
"ZoA");
 
   27     man->CreateNtupleDColumn(
"ToFI");
 
   28     man->CreateNtupleDColumn(
"XoFI");
 
   29     man->CreateNtupleDColumn(
"YoFI"); 
 
   30     man->CreateNtupleDColumn(
"ZoFI"); 
 
   32     man->CreateNtupleDColumn(
"Edep");
 
   33     man->CreateNtupleDColumn(
"MaxEdep");
 
   34     man->CreateNtupleDColumn(
"MaxEdepPosX");
 
   35     man->CreateNtupleDColumn(
"MaxEdepPosY"); 
 
   36     man->CreateNtupleDColumn(
"MaxEdepPosZ"); 
 
   38     man->CreateNtupleIColumn(
"NHits_F");
 
   39     man->CreateNtupleIColumn(
"NHits_B");
 
   40     man->CreateNtupleIColumn(
"NHits_Tot");
 
   41     man->CreateNtupleIColumn(
"NHits_F_Ch", 
fEventAction->fHitsNum_F_Ch); 
 
   46     man->CreateNtupleIColumn(
"NHits_B_Ch", 
fEventAction->fHitsNum_B_Ch);
 
   60     G4AnalysisManager *man = G4AnalysisManager::Instance();
 
   62     std::stringstream strMCID;
 
   65     G4int runID = run->GetRunID();
 
   66     std::stringstream strRunID;
 
   70         man->OpenFile(
"MCID_" + strMCID.str() + 
".root");
 
   73         man->OpenFile(
"MCID_" + strMCID.str() + 
"_RunID_" + strRunID.str() + 
".root");
 
   82     G4AnalysisManager *man = G4AnalysisManager::Instance();
 
User action concrete class of G4UserEventAction. In addition to defining procedures executed at the s...
std::vector< G4double > fT_F
Vector containing times of detection of optical photons on the front face.
std::vector< G4double > fT_B
Vector containing times of detection of optical photons on the back face.
std::vector< G4double > fY_F
Vector containing y-positions of detection of optical photons on the front face.
std::vector< G4double > fX_B
Vector containing x-positions of detection of optical photons on the back face.
std::vector< G4int > fChannel_B
Vector containing SiPM channels of detection of optical photons on the back face.
std::vector< G4double > fX_F
Vector containing x-positions of detection of optical photons on the front face.
std::vector< G4double > fY_B
Vector containing y-positions of detection of optical photons on the back face.
std::vector< G4int > fChannel_F
Vector containing SiPM channels of detection of optical photons on the front face.
void BeginOfRunAction(const G4Run *run) override
Creates and accesses the output root file at the beginning of the run.
MyEventAction * fEventAction
Pointer to the MyEventAction object.
G4int fMCID
The Monte Carlo ID.
MyRunAction(G4int theMCID, MyEventAction *eventAction)
Constructor of the class.
void EndOfRunAction(const G4Run *run) override
Writes the TTree to the output root file and closes it at the end of the run.
Declaration of the class MyRunAction.