ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
doiPETRun.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file doiPETRun.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
28 //
29 //
30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 
33 #ifndef doiPETRun_h
34 #define doiPETRun_h 1
35 
36 #include "G4Run.hh"
37 #include "G4VProcess.hh"
38 #include "globals.hh"
39 
40 #include <iostream>
41 #include <fstream>
42 #include <sstream>
43 #include <map>
44 #include <set>
47 class doiPETRunAction;
48 
49 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51 class doiPETAnalysis;
52 class doiPETRun : public G4Run
53 {
54 public:
55  doiPETRun(/*doiPETDetectorConstruction**/);
56  ~doiPETRun();
57 
58 public:
59  //
62  void Clear();
63  void OpenRun(G4String);
64  void GetEventIDRun(G4int);
67  void SetEventID(G4int);
68  virtual void Merge(const G4Run*);
69  // void EndOfRun();
70 
71 private:
72 
73  std::multimap< G4int, InteractionInformation* > mapBlockInteraction;
74  std::set<G4int> setBlockInteraction;
75  std::ofstream ofs;
81 
82  //
86 
90 
92  //
95 
100 
101 };
102 
103 
104 //The following is to get interaction information
106 {
107 
108 public:
111 
112  //set energy deposition
113  void SetEdep(G4double e) {edep=e;};
114 
115  //set block number
117 
118  //set crystal ID (this is continuous numbering of crystals)
120 
121  //set global time
123 
124  //set interaction position with respect to the crystal axis (local position)
126 
127 
128  G4double GetEdep() {return edep;};
129  G4int GetBlockNo() {return blockNo;};
132 
133  //Interaction position in the detector
135 
136 
137 private:
138  G4double edep;
143 
144 };
145 
146 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
147 
148 #endif
149