3 #include "TSkimPionEvent.h"
16 if (!aSkimPionCandidates) aSkimPionCandidates =
new TClonesArray(
"TSkimPionCandidate", 50);
17 m_SkimPionCandidates = aSkimPionCandidates;
18 if (!aHits) aHits =
new TClonesArray(
"THit", 50);
33 m_PrescaleHTTPL2_Test = 0;
49 TSkimPionEvent::~TSkimPionEvent() {
53 void TSkimPionEvent::Clear(
const Option_t*) {
68 m_PrescaleHTTPL2_Test = 0;
82 m_SkimPionCandidates->Clear();
86 void TSkimPionEvent::Reset(Option_t * )
90 delete aSkimPionCandidates;
91 aSkimPionCandidates = 0;
99 TClonesArray &aCand = *m_SkimPionCandidates;
106 THit* TSkimPionEvent::AddHit(
THit& cand) {
108 TClonesArray &aCand = *m_Hits;
109 THit *piCand =
new(aCand[m_NHits++])
THit(cand);
115 TSkimPionCandidate::TSkimPionCandidate() : TObject(){
119 TSkimPionCandidate::TSkimPionCandidate(
const TSkimPionCandidate& orig) : TObject(orig) {
122 m_Mass = orig.m_Mass;
125 m_Asymmetry = orig.m_Asymmetry;
126 m_CosAngle = orig.m_CosAngle;
127 m_TowerId1 = orig.m_TowerId1;
128 m_TowerId2 = orig.m_TowerId2;
129 m_ChargedAssociation1 = orig.m_ChargedAssociation1;
130 m_ChargedAssociation2 = orig.m_ChargedAssociation2;
131 m_SMDFlagg1 = orig.m_SMDFlagg1;
132 m_SMDFlagg2 = orig.m_SMDFlagg2;
133 m_Energy1 = orig.m_Energy1;
134 m_Energy2 = orig.m_Energy2;
135 m_TowerEnergy1 = orig.m_TowerEnergy1;
136 m_TowerEnergy2 = orig.m_TowerEnergy2;
137 m_SMDe1 = orig.m_SMDe1;
138 m_SMDp1 = orig.m_SMDp1;
139 m_SMDe2 = orig.m_SMDe2;
140 m_SMDp2 = orig.m_SMDp2;
141 m_Phi1 = orig.m_Phi1;
142 m_Eta1 = orig.m_Eta1;
143 m_Phi2 = orig.m_Phi2;
144 m_Eta2 = orig.m_Eta2;
147 void TSkimPionCandidate::SetAll(Float_t
data[24]) {
152 m_Asymmetry = data[4];
153 m_CosAngle = data[5];
154 m_TowerId1 = data[6];
155 m_TowerId2 = data[7];
156 m_ChargedAssociation1 = (Int_t) data[8];
157 m_ChargedAssociation2 = (Int_t) data[9];
158 m_SMDFlagg1 = (Int_t)data[10];
159 m_SMDFlagg2 = (Int_t)data[11];
160 m_Energy1 = data[12];
161 m_Energy2 = data[13];
162 m_TowerEnergy1 = data[14];
163 m_TowerEnergy2 = data[15];
175 THit::THit() : TObject() {
194 THit::THit(
const THit& orig) : TObject(orig) {
199 m_Energy = orig.m_Energy;
201 m_NTracks = orig.m_NTracks;
202 m_SMDFlag = orig.m_SMDFlag;
203 m_EnergySMDe = orig.m_EnergySMDe;
204 m_EnergySMDp = orig.m_EnergySMDp;
205 m_EnergyTower = orig.m_EnergyTower;
206 m_SizeSMDe = orig.m_SizeSMDe;
207 m_SizeSMDp = orig.m_SizeSMDp;
208 m_SizeTower = orig.m_SizeTower;
213 void THit::SetAll(Float_t
data[16]) {
217 m_Id = (Int_t) data[3];
220 m_NTracks = (Int_t) data[6];
221 m_SMDFlag = (Int_t) data[7];
222 m_EnergySMDe = data[8];
223 m_EnergySMDp = data[9];
224 m_EnergyTower = data[10];
225 m_SizeSMDe = data[11];
226 m_SizeSMDp = data[12];
227 m_SizeTower = data[13];