1 // dear emacs, this is -*- C++ -*-
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
10 //-------------------------------------------------------------------------
12 //-------------------------------------------------------------------------
13 inline void TauPi0Cluster::setExternalVars(float DELTA_PHI, float DELTA_THETA, float ENG_FRAC_EM, float ENG_FRAC_MAX, float ENG_FRAC_CORE, float SECOND_ENG_DENS, float LATERAL, float LONGITUDINAL,
14 float EM1CoreFrac, float asymmetryInEM1WRTTrk, int NHitsInEM1 , int NPosECells_PS, int NPosECells_EM1, int NPosECells_EM2,
15 float firstEtaWRTClusterPosition_EM1, float firstEtaWRTClusterPosition_EM2,
16 float secondEtaWRTClusterPosition_EM1, float secondEtaWRTClusterPosition_EM2, float BDTScore)
18 m_DELTA_PHI = DELTA_PHI;
19 m_DELTA_THETA = DELTA_THETA;
20 m_ENG_FRAC_EM = ENG_FRAC_EM;
21 m_ENG_FRAC_MAX = ENG_FRAC_MAX;
22 m_ENG_FRAC_CORE = ENG_FRAC_CORE;
23 m_SECOND_ENG_DENS = SECOND_ENG_DENS;
25 m_LONGITUDINAL = LONGITUDINAL;
26 m_EM1CoreFrac = EM1CoreFrac;
27 m_asymmetryInEM1WRTTrk = asymmetryInEM1WRTTrk;
28 m_NHitsInEM1 = NHitsInEM1;
29 m_NPosECells_PS = NPosECells_PS;
30 m_NPosECells_EM1 = NPosECells_EM1;
31 m_NPosECells_EM2 = NPosECells_EM2;
32 m_firstEtaWRTClusterPosition_EM1 = firstEtaWRTClusterPosition_EM1;
33 m_firstEtaWRTClusterPosition_EM2 = firstEtaWRTClusterPosition_EM2;
34 m_secondEtaWRTClusterPosition_EM1 = secondEtaWRTClusterPosition_EM1;
35 m_secondEtaWRTClusterPosition_EM2 = secondEtaWRTClusterPosition_EM2;
36 m_BDTScore = BDTScore;
39 //-------------------------------------------------------------------------
41 //-------------------------------------------------------------------------
43 inline const CaloCluster* TauPi0Cluster::cluster() const
48 inline const ElementLink<CaloClusterContainer>& TauPi0Cluster::clusterLink() const
53 inline ElementLink<CaloClusterContainer>& TauPi0Cluster::clusterLink()
58 inline void TauPi0Cluster::setCluster( const CaloCluster *cluster, const CaloClusterContainer *cont )
61 m_cluster.setElement( cluster );
63 m_cluster.toContainedElement( *cont, cluster );
66 inline const std::vector<TauShot*>& TauPi0Cluster::tauShotVec() const
68 return m_tauShotVector;
71 inline std::vector<TauShot*>& TauPi0Cluster::tauShotVec()
73 return m_tauShotVector;
76 inline void TauPi0Cluster::addTauShot(TauShot *tauShot )
78 m_tauShotVector.push_back( tauShot );
81 inline float TauPi0Cluster::deltaPhi() const
86 inline void TauPi0Cluster::setDeltaPhi(float deltaPhi)
91 inline float TauPi0Cluster::deltaTheta() const
96 inline void TauPi0Cluster::setDeltaTheta(float deltaTheta)
98 m_DELTA_THETA=deltaTheta;
101 inline float TauPi0Cluster::engFracEM() const
103 return m_ENG_FRAC_EM;
106 inline void TauPi0Cluster::setEngFracEM(float engFracEM)
108 m_ENG_FRAC_EM=engFracEM;
111 inline float TauPi0Cluster::engFracMAX() const
113 return m_ENG_FRAC_MAX;
116 inline void TauPi0Cluster::setEngFracMAX(float engFracMAX)
118 m_ENG_FRAC_MAX=engFracMAX;
121 inline float TauPi0Cluster::engFracCore() const
123 return m_ENG_FRAC_CORE;
126 inline void TauPi0Cluster::setEngFracCore(float engFracCore)
128 m_ENG_FRAC_CORE=engFracCore;
131 inline float TauPi0Cluster::secondEngDens() const
133 return m_SECOND_ENG_DENS;
136 inline void TauPi0Cluster::setSecondEngDens(float secondEngDens)
138 m_SECOND_ENG_DENS=secondEngDens;
141 inline float TauPi0Cluster::LATERAL() const
146 inline void TauPi0Cluster::setLATERAL(float LATERAL)
151 inline float TauPi0Cluster::LONGITUDINAL() const
153 return m_LONGITUDINAL;
156 inline void TauPi0Cluster::setLONGITUDINAL(float LONGITUDINAL)
158 m_LONGITUDINAL=LONGITUDINAL;
161 inline float TauPi0Cluster::EM1CoreFrac() const
163 return m_EM1CoreFrac;
166 inline void TauPi0Cluster::setEM1CoreFrac(float EM1CoreFrac)
168 m_EM1CoreFrac=EM1CoreFrac;
171 inline float TauPi0Cluster::asymmetryInEM1WRTTrk() const
173 return m_asymmetryInEM1WRTTrk;
176 inline void TauPi0Cluster::setAsymmetryInEM1WRTTrk(float asymmetryInEM1WRTTrk)
178 m_asymmetryInEM1WRTTrk=asymmetryInEM1WRTTrk;
181 inline int TauPi0Cluster::NHitsInEM1() const
186 inline void TauPi0Cluster::setNHitsInEM1(int NHitsInEM1)
188 m_NHitsInEM1=NHitsInEM1;
191 inline int TauPi0Cluster::NPosECells_PS() const
193 return m_NPosECells_PS;
196 inline void TauPi0Cluster::setNPosECells_PS(int NPosECells_PS)
198 m_NPosECells_PS=NPosECells_PS;
201 inline int TauPi0Cluster::NPosECells_EM1() const
203 return m_NPosECells_EM1;
206 inline void TauPi0Cluster::setNPosECells_EM1(int NPosECells_EM1)
208 m_NPosECells_EM1=NPosECells_EM1;
211 inline int TauPi0Cluster::NPosECells_EM2() const
213 return m_NPosECells_EM2;
216 inline void TauPi0Cluster::setNPosECells_EM2(int NPosECells_EM2)
218 m_NPosECells_EM2=NPosECells_EM2;
221 inline float TauPi0Cluster::firstEtaWRTClusterPosition_EM1() const
223 return m_firstEtaWRTClusterPosition_EM1;
226 inline void TauPi0Cluster::setFirstEtaWRTClusterPosition_EM1(float firstEtaWRTClusterPosition_EM1)
228 m_firstEtaWRTClusterPosition_EM1=firstEtaWRTClusterPosition_EM1;
231 inline float TauPi0Cluster::firstEtaWRTClusterPosition_EM2() const
233 return m_firstEtaWRTClusterPosition_EM2;
236 inline void TauPi0Cluster::setFirstEtaWRTClusterPosition_EM2(float firstEtaWRTClusterPosition_EM2)
238 m_firstEtaWRTClusterPosition_EM2=firstEtaWRTClusterPosition_EM2;
241 inline float TauPi0Cluster::secondEtaWRTClusterPosition_EM1() const
243 return m_secondEtaWRTClusterPosition_EM1;
246 inline void TauPi0Cluster::setSecondEtaWRTClusterPosition_EM1(float secondEtaWRTClusterPosition_EM1)
248 m_secondEtaWRTClusterPosition_EM1=secondEtaWRTClusterPosition_EM1;
251 inline float TauPi0Cluster::secondEtaWRTClusterPosition_EM2() const
253 return m_secondEtaWRTClusterPosition_EM2;
256 inline void TauPi0Cluster::setSecondEtaWRTClusterPosition_EM2(float secondEtaWRTClusterPosition_EM2)
258 m_secondEtaWRTClusterPosition_EM2=secondEtaWRTClusterPosition_EM2;
261 inline float TauPi0Cluster::BDTScore() const
266 inline void TauPi0Cluster::setBDTScore(float BDTScore)
272 //Alternative setter method
274 inline void TauPi0Cluster::setPi0Cluster(
275 const CaloCluster *cluster,
276 const CaloClusterContainer *cont,
277 std::vector<TauShot*> tauShotVec,
283 float SECOND_ENG_DENS,
287 float asymmetryInEM1WRTTrk,
292 float firstEtaWRTClusterPosition_EM1,
293 float firstEtaWRTClusterPosition_EM2,
294 float secondEtaWRTClusterPosition_EM1,
295 float secondEtaWRTClusterPosition_EM2,
299 this->setCluster(cluster, cont);
300 std::vector<TauShot*>::iterator itr = tauShotVec.begin();
301 for( ; itr!=tauShotVec.end(); ++itr ){
302 this->addTauShot(*itr);
304 this->setExternalVars(DELTA_PHI, DELTA_THETA, ENG_FRAC_EM, ENG_FRAC_MAX, ENG_FRAC_CORE, SECOND_ENG_DENS, LATERAL, LONGITUDINAL,
305 EM1CoreFrac, asymmetryInEM1WRTTrk, NHitsInEM1, NPosECells_PS, NPosECells_EM1, NPosECells_EM2,
306 firstEtaWRTClusterPosition_EM1, firstEtaWRTClusterPosition_EM2, secondEtaWRTClusterPosition_EM1, secondEtaWRTClusterPosition_EM2, BDTScore);
311 } //end of namespace analysis