GGS(GenericGEANT4Simulation)Software
2.6.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 "TObject.h"
13
#include "TString.h"
14
#include "TClonesArray.h"
15
16
// GGS headers
17
#include "montecarlo/dataobjs/GGSTParticle.h"
18
20
class
GGSTMCTruthInfo
:
public
TObject {
21
public
:
22
24
GGSTMCTruthInfo
();
25
27
~GGSTMCTruthInfo
();
28
33
UInt_t
GetNPrimaries
() {
34
if
(_primaries)
35
return
_primaries->GetEntries();
36
else
37
return
0;
38
}
39
46
GGSTParticle
*
GetPrimaryParticle
(UInt_t particleNumber);
47
52
void
AddPrimaryParticle
(
GGSTParticle
* primaryParticle);
53
55
void
Reset
();
56
57
Int_t
eventID
;
58
67
UInt_t
nDiscarded
;
68
69
private
:
70
71
TClonesArray *_primaries;
72
73
ClassDef(
GGSTMCTruthInfo
,1)
74
75
};
76
77
#endif
/* GGSTMCTRUTHINFO_H_ */
GGSTMCTruthInfo::GetNPrimaries
UInt_t GetNPrimaries()
Retrieves the number of primaries in this event.
Definition:
GGSTMCTruthInfo.h:33
GGSTMCTruthInfo::GetPrimaryParticle
GGSTParticle * GetPrimaryParticle(UInt_t particleNumber)
Retrieves a primary particle.
Definition:
GGSTMCTruthInfo.cpp:40
GGSTMCTruthInfo::Reset
void Reset()
Resets the object's properties.
Definition:
GGSTMCTruthInfo.cpp:32
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:51
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:57
GGSTMCTruthInfo::nDiscarded
UInt_t nDiscarded
The number of discarded + killed events the current event and the previous event saved in file...
Definition:
GGSTMCTruthInfo.h:67
Generated on Thu May 30 2019 11:52:22 for GGS(GenericGEANT4Simulation)Software by
1.8.5