TG4Event.h
Go to the documentation of this file.
1 #ifndef TG4Event_hxx_seen
2 #define TG4Event_hxx_seen
3 
4 #include "TG4PrimaryVertex.h"
5 #include "TG4Trajectory.h"
6 #include "TG4HitSegment.h"
7 
8 #include <TObject.h>
9 
10 class TG4Event : public TObject {
11 public:
12  TG4Event(void) {}
13  virtual ~TG4Event();
14 
15  /// The run number
16  int RunId;
17 
18  /// The event number
19  int EventId;
20 
21  /// A container of primary vertices (a vector). Sometimes, there is only
22  /// one element, but you need to be careful since some neutrino events
23  /// don't have any primary particles (e.g. neutral current events where
24  /// the scattered nucleon is absorbed by the nucleus). It's also likely
25  /// that an event will have multiple vertices (i.e. more than one
26  /// interaction per spill). When no primary was provided, then a fake
27  /// primary vertex will be inserted so that an empty event is generated.
29 
30  /// A container of G4 trajectories (a vector).
31  ///
32  /// \note When trajectories are eliminated (e.g. very low energy electron
33  /// trajectories) the TG4Trajectory::TrackId fields are adjusted so
34  /// that (Trajectories[index].TrackId==index).
36 
37  /// A map of sensitive detector names and vectors of hit segments. The
38  /// map is keyed using the sensitive volume name.
40 
42 };
43 #endif
TG4PrimaryVertexContainer Primaries
Definition: TG4Event.h:28
TG4TrajectoryContainer Trajectories
Definition: TG4Event.h:35
std::vector< TG4Trajectory > TG4TrajectoryContainer
Definition: TG4Trajectory.h:13
int RunId
The run number.
Definition: TG4Event.h:16
std::map< std::string, TG4HitSegmentContainer > TG4HitSegmentDetectors
Definition: TG4HitSegment.h:18
TG4Event(void)
Definition: TG4Event.h:12
TG4HitSegmentDetectors SegmentDetectors
Definition: TG4Event.h:39
int EventId
The event number.
Definition: TG4Event.h:19
std::vector< TG4PrimaryVertex > TG4PrimaryVertexContainer
virtual ~TG4Event()