GGS(GenericGEANT4Simulation)Software
2.7.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Macros
include
montecarlo
dataobjs
GGSTMCTruthInfo.h
1
/*
2
* GGSTMCTruthInfo.h
3
*
4
* Created on: 16 Aug 2011
5
* Author: Nicola Mori
6
*/
7
8
#ifndef GGSTMCTRUTHINFO_H_
9
#define GGSTMCTRUTHINFO_H_
10
11
// ROOT headers
12
#include "TClonesArray.h"
13
#include "TObject.h"
14
#include "TString.h"
15
16
// GGS headers
17
#include "montecarlo/dataobjs/GGSTParticle.h"
18
20
class
GGSTMCTruthInfo
:
public
TObject {
21
public
:
23
GGSTMCTruthInfo
();
24
26
~GGSTMCTruthInfo
();
27
32
UInt_t
GetNPrimaries
() {
33
if
(_primaries)
34
return
_primaries->GetEntries();
35
else
36
return
0;
37
}
38
45
GGSTParticle
*
GetPrimaryParticle
(UInt_t particleNumber);
46
51
void
AddPrimaryParticle
(
GGSTParticle
*primaryParticle);
52
54
void
Reset
();
55
56
Int_t
eventID
;
57
66
UInt_t
nDiscarded
;
67
68
private
:
69
TClonesArray *_primaries;
70
71
ClassDef(
GGSTMCTruthInfo
, 1)
72
};
73
74
#endif
/* GGSTMCTRUTHINFO_H_ */
GGSTMCTruthInfo::GetNPrimaries
UInt_t GetNPrimaries()
Retrieves the number of primaries in this event.
Definition:
GGSTMCTruthInfo.h:32
GGSTMCTruthInfo::GetPrimaryParticle
GGSTParticle * GetPrimaryParticle(UInt_t particleNumber)
Retrieves a primary particle.
Definition:
GGSTMCTruthInfo.cpp:38
GGSTMCTruthInfo::Reset
void Reset()
Resets the object's properties.
Definition:
GGSTMCTruthInfo.cpp:30
GGSTParticle
Class to store G4 particles.
Definition:
GGSTParticle.h:19
GGSTMCTruthInfo::GGSTMCTruthInfo
GGSTMCTruthInfo()
Constructor.
Definition:
GGSTMCTruthInfo.cpp:20
GGSTMCTruthInfo::~GGSTMCTruthInfo
~GGSTMCTruthInfo()
Destructor.
Definition:
GGSTMCTruthInfo.cpp:26
GGSTMCTruthInfo::AddPrimaryParticle
void AddPrimaryParticle(GGSTParticle *primaryParticle)
Adds a primary particle to the particles' array.
Definition:
GGSTMCTruthInfo.cpp:48
GGSTMCTruthInfo
A class to store MC truth informations on ROOT files.
Definition:
GGSTMCTruthInfo.h:20
GGSTMCTruthInfo::eventID
Int_t eventID
The event ID.
Definition:
GGSTMCTruthInfo.h:56
GGSTMCTruthInfo::nDiscarded
UInt_t nDiscarded
The number of discarded + killed events the current event and the previous event saved in file...
Definition:
GGSTMCTruthInfo.h:66
Generated on Wed Jul 8 2020 07:29:44 for GGS(GenericGEANT4Simulation)Software by
1.8.5