00001
00002
00003
00004
00005 #ifndef MyTruthParticleH
00006 #define MyTruthParticleH
00007
00008
00009
00010
00011
00020
00021
00022
00023
00024
00025
00026 #include <iostream>
00027
00028
00029 #include "TLorentzVector.h"
00030
00031
00032 #include "MyParticle.h"
00033
00034 class MyTruthParticle : public MyParticle {
00035
00036 public:
00037
00038 MyTruthParticle(void) {
00039 init(TLorentzVector(0.0, 0.0, 0.0, 0.0), 0.0, 0, 0, 0, 0, 0, 0, 0, 0);
00040 }
00042 MyTruthParticle(const TLorentzVector & p,
00043 const double & charge,
00044 const int & pdgId,
00045 const int & barcode,
00046 const int & status,
00047 const int & nParents,
00048 const int & nDaughters,
00049 const int & mother0_barcode,
00050 const int & mother0_pdgId,
00051 const int & index
00052 ) {
00053 init(p, charge, pdgId, barcode, status, nParents,
00054 nDaughters, mother0_barcode, mother0_pdgId, index);
00055 }
00057
00058
00059
00060
00061 inline int barcode(void) const;
00063
00065 inline int status(void) const;
00067 inline int nParents(void) const;
00070 inline int nDaughters(void) const;
00073 inline int mother0_barcode(void) const;
00076 inline int mother0_pdgId(void) const;
00079
00080 inline double Et_in_cone(const int & delta_R_index) const;
00087
00088
00089 inline void set_Et_in_cone(const double Et_cone[8]);
00091
00092
00093
00094
00095
00096
00097 inline void PrintParticle(std::string option = "");
00099
00100 private:
00101
00102
00103 int m_barcode;
00104 int m_status;
00105
00106 int m_nParents;
00107
00108 int m_nDaughters;
00109 int m_mother0_barcode;
00110
00111 int m_mother0_pdgId;
00112
00113
00114 double m_Et_cone[5];
00115
00116
00117
00118 inline void init(const TLorentzVector & p,
00119 const double & charge,
00120 const int & pdgId,
00121 const int & barcode,
00122 const int & status,
00123 const int & nParents,
00124 const int & nDaughters,
00125 const int & mother0_barcode,
00126 const int & mother0_pdgId,
00127 const int & index
00128 );
00129
00130
00131
00132
00133
00134
00135
00136 };
00137
00138
00139
00140
00141
00142 #include "MyTruthParticle.ixx"
00143
00144 #endif