GenParticle_ROOT.h
Go to the documentation of this file.
1 #ifndef _IO_GEN_PARTICLE_H_
2 #define _IO_GEN_PARTICLE_H_
3 
4 #ifndef __CINT__
5 # include <evt/GenParticle.h>
6 #endif
7 
8 #include <iostream>
9 #include <vector>
10 #include <Rtypes.h>
11 
12 
13 namespace io {
14 
16  public:
18 #ifndef __CINT__
20  void operator>>(evt::GenParticle& gp) const;
23  void ConvertGenParticleRoot2Evt(const io::GenParticle_ROOT& rootGP, evt::GenParticle& evtGP) const;
24 #endif
25 
26  int GetParentId() const { return fParentId; }
27  double GetParentEnergy() const { return fParentEnergy; }
28  double GetEnergyCM() const { return fEnergyCM; }
29  double GetKinel() const { return fKinel; }
30  int GetMultiplicity() const { return fMultiplicity; }
31  int GetTargetMass() const { return fTargetMass; }
32  double GetDepth() const {return fDepth; }
33  double GetHeight() const {return fHeight; }
34 
35  std::vector<io::GenParticle_ROOT>& GetDaughterParticles()
36  { return fDaughterParticles; }
37  const std::vector<io::GenParticle_ROOT>& GetDaughterParticles() const
38  { return fDaughterParticles; }
39 
40  void SetParentId(const int parentId) { fParentId = parentId; }
41  void SetParentEnergy(const double parentEnergy) { fParentEnergy = parentEnergy; }
42  void SetEnergyCM(const double energyCM) { fEnergyCM = energyCM; }
43  void SetKinel(const double kinel) { fKinel = kinel; }
44  void SetMultiplicity(const int mult) { fMultiplicity = mult; }
45  void SetTargetMass(const int targetMass) { fTargetMass = targetMass; }
46  void SetDepth(const double depth) { fDepth = depth; }
47  void SetHeight(const double height) { fHeight = height; }
48 
50  fDaughterParticles.push_back(parttemp); }
51  void AddNDaughters(int size) { fDaughterParticles.resize(size); }
53  io::GenParticle_ROOT dummyGenP;
54  fDaughterParticles.push_back(dummyGenP);
55  }
56 
57 
58  bool HasDaughters() { return !fDaughterParticles.empty(); }
59 
60  int fParentId = 0;
61  double fParentEnergy = 0.;
62  double fEnergyCM = 0.;
63  double fKinel = 0.;
64  int fMultiplicity = 0;
65  int fTargetMass = 0;
66  double fDepth = 0;
67  double fHeight = 0;
68 
69  std::vector<io::GenParticle_ROOT> fDaughterParticles;
70 
72 
73  };
74 }
75 
76 
77 #endif
double GetDepth() const
void SetDepth(const double depth)
int GetTargetMass() const
void SetTargetMass(const int targetMass)
std::vector< io::GenParticle_ROOT > & GetDaughterParticles()
double GetKinel() const
int GetMultiplicity() const
const std::vector< io::GenParticle_ROOT > & GetDaughterParticles() const
void SetParentEnergy(const double parentEnergy)
void SetMultiplicity(const int mult)
void ConvertGenParticleEvt2Root(io::GenParticle_ROOT &rootGP, const evt::GenParticle &evtGP)
void SetEnergyCM(const double energyCM)
double GetHeight() const
void SetHeight(const double height)
std::vector< io::GenParticle_ROOT > fDaughterParticles
void SetParentId(const int parentId)
double GetEnergyCM() const
void AddNDaughters(int size)
int GetParentId() const
void operator>>(evt::GenParticle &gp) const
ClassDefNV(GenParticle_ROOT, 1)
void ConvertGenParticleRoot2Evt(const io::GenParticle_ROOT &rootGP, evt::GenParticle &evtGP) const
void SetKinel(const double kinel)
void AddDaughterParticle(io::GenParticle_ROOT &parttemp)
evt::GenParticle Convert()
double GetParentEnergy() const

, generated on Tue Sep 26 2023.