ATLAS Offline Software
TauPi0ClusterCnv_p1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Implementation of the TP converter
8 
11 
13 {
15  //m_clusterVectCnv.persToTrans( &persObj->m_CaloClusterVector, &transObj->m_CaloClusterVector, log );
16  m_clusterCnv.persToTrans( &persObj->m_cluster, &transObj->clusterLink(), log );
17  m_vecTauShotCnv.persToTrans( &persObj->m_tauShotVector, &(transObj->tauShotVec()), log );
18 
20  //transObj->m_clusterValueVector1 = persObj->m_clusterValueVector1;
21  transObj->setDeltaPhi (persObj->m_DELTA_PHI);
22  transObj->setDeltaTheta (persObj->m_DELTA_THETA);
23  transObj->setEngFracEM (persObj->m_ENG_FRAC_EM);
24  transObj->setEngFracMAX (persObj->m_ENG_FRAC_MAX);
25  transObj->setEngFracCore (persObj->m_ENG_FRAC_CORE);
26  transObj->setSecondEngDens (persObj->m_SECOND_ENG_DENS);
27  transObj->setLATERAL (persObj->m_LATERAL);
28  transObj->setLONGITUDINAL (persObj->m_LONGITUDINAL);
29  transObj->setEM1CoreFrac (persObj->m_EM1CoreFrac);
31  transObj->setNHitsInEM1 (persObj->m_NHitsInEM1);
32  transObj->setNPosECells_PS (persObj->m_NPosECells_PS);
33  transObj->setNPosECells_EM1 (persObj->m_NPosECells_EM1);
34  transObj->setNPosECells_EM2 (persObj->m_NPosECells_EM2);
39  transObj->setBDTScore (persObj->m_BDTScore);
40 }
41 
43 {
45  //m_clusterVectCnv.transToPers( &transObj->m_CaloClusterVector, &persObj->m_CaloClusterVector, log );
46  m_clusterCnv.transToPers( &transObj->clusterLink(), &persObj->m_cluster, log );
47  m_vecTauShotCnv.transToPers( &(transObj->tauShotVec()), &persObj->m_tauShotVector, log );
48 
50  //persObj->m_clusterValueVector1 = transObj->m_clusterValueVector1;
51  persObj->m_DELTA_PHI = transObj->deltaPhi();
52  persObj->m_DELTA_THETA = transObj->deltaTheta();
53  persObj->m_ENG_FRAC_EM = transObj->engFracEM();
54  persObj->m_ENG_FRAC_MAX = transObj->engFracMAX();
55  persObj->m_ENG_FRAC_CORE = transObj->engFracCore();
56  persObj->m_SECOND_ENG_DENS = transObj->secondEngDens();
57  persObj->m_LATERAL = transObj->LATERAL();
58  persObj->m_LONGITUDINAL = transObj->LONGITUDINAL();
59  persObj->m_EM1CoreFrac = transObj->EM1CoreFrac();
60  persObj->m_asymmetryInEM1WRTTrk = transObj->asymmetryInEM1WRTTrk();
61  persObj->m_NHitsInEM1 = transObj->NHitsInEM1();
62  persObj->m_NPosECells_PS = transObj->NPosECells_PS();
63  persObj->m_NPosECells_EM1 = transObj->NPosECells_EM1();
64  persObj->m_NPosECells_EM2 = transObj->NPosECells_EM2();
69  persObj->m_BDTScore = transObj->BDTScore();
70 }
71 
72 
Analysis::TauPi0Cluster::setDeltaPhi
void setDeltaPhi(float deltaPhi)
Set deltaPhi.
Analysis::TauPi0Cluster::engFracCore
float engFracCore() const
Get engFracCore.
Analysis::TauPi0Cluster::setNPosECells_EM2
void setNPosECells_EM2(int NPosECells_EM2)
Set NPosECells_EM2.
TauPi0ClusterCnv_p1::m_vecTauShotCnv
T_AthenaPoolTPPtrVectorCnv< std::vector< Analysis::TauShot * >, std::vector< TPObjRef >, ITPConverterFor< Analysis::TauShot > > m_vecTauShotCnv
converter for the TauShot
Definition: TauPi0ClusterCnv_p1.h:60
TauPi0ClusterCnv_p1::m_clusterCnv
ElementLinkCnv_p3< ElementLink< CaloClusterContainer > > m_clusterCnv
Definition: TauPi0ClusterCnv_p1.h:57
Analysis::TauPi0Cluster::deltaTheta
float deltaTheta() const
Get deltaTheta.
Analysis::TauPi0Cluster::setLONGITUDINAL
void setLONGITUDINAL(float LONGITUDINAL)
Set LONGITUDINAL.
TauPi0Cluster_p1::m_ENG_FRAC_MAX
float m_ENG_FRAC_MAX
Definition: TauPi0Cluster_p1.h:61
Analysis::TauPi0Cluster::clusterLink
const ElementLink< CaloClusterContainer > & clusterLink() const
Get (const) cluster link.
TauPi0Cluster_p1::m_NPosECells_PS
int m_NPosECells_PS
Definition: TauPi0Cluster_p1.h:69
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
TauPi0Cluster_p1::m_BDTScore
float m_BDTScore
Definition: TauPi0Cluster_p1.h:76
Analysis::TauPi0Cluster::deltaPhi
float deltaPhi() const
Get deltaPhi.
Analysis::TauPi0Cluster::EM1CoreFrac
float EM1CoreFrac() const
Get EM1CoreFrac.
Analysis::TauPi0Cluster::BDTScore
float BDTScore() const
Get BDTScore.
TauPi0Cluster_p1::m_secondEtaWRTClusterPosition_EM2
float m_secondEtaWRTClusterPosition_EM2
Definition: TauPi0Cluster_p1.h:75
Analysis::TauPi0Cluster::setFirstEtaWRTClusterPosition_EM1
void setFirstEtaWRTClusterPosition_EM1(float firstEtaWRTClusterPosition_EM1)
Set firstEtaWRTClusterPosition_EM1.
TauPi0Cluster_p1::m_NHitsInEM1
int m_NHitsInEM1
Definition: TauPi0Cluster_p1.h:68
Analysis::TauPi0Cluster::setEngFracEM
void setEngFracEM(float engFracEM)
Set engFracEM.
TauPi0Cluster_p1::m_tauShotVector
std::vector< TPObjRef > m_tauShotVector
Definition: TauPi0Cluster_p1.h:55
TauPi0Cluster_p1::m_SECOND_ENG_DENS
float m_SECOND_ENG_DENS
Definition: TauPi0Cluster_p1.h:63
Analysis::TauPi0Cluster::setEM1CoreFrac
void setEM1CoreFrac(float EM1CoreFrac)
Set EM1CoreFrac.
Analysis::TauPi0Cluster::secondEtaWRTClusterPosition_EM1
float secondEtaWRTClusterPosition_EM1() const
Get secondEtaWRTClusterPosition_EM1.
Analysis::TauPi0Cluster::LONGITUDINAL
float LONGITUDINAL() const
Get LONGITUDINAL.
Analysis::TauPi0Cluster::setSecondEngDens
void setSecondEngDens(float secondEngDens)
Set secondEngDens.
TauPi0Cluster_p1::m_NPosECells_EM1
int m_NPosECells_EM1
Definition: TauPi0Cluster_p1.h:70
Analysis::TauPi0Cluster::firstEtaWRTClusterPosition_EM1
float firstEtaWRTClusterPosition_EM1() const
Get firstEtaWRTClusterPosition_EM1.
TauPi0Cluster_p1::m_secondEtaWRTClusterPosition_EM1
float m_secondEtaWRTClusterPosition_EM1
Definition: TauPi0Cluster_p1.h:74
TauPi0Cluster_p1::m_firstEtaWRTClusterPosition_EM2
float m_firstEtaWRTClusterPosition_EM2
Definition: TauPi0Cluster_p1.h:73
Analysis::TauPi0Cluster::setNPosECells_EM1
void setNPosECells_EM1(int NPosECells_EM1)
Set NPosECells_EM1.
Analysis::TauPi0Cluster::NPosECells_PS
int NPosECells_PS() const
Get NPosECells_PS.
Analysis::TauPi0Cluster::setEngFracMAX
void setEngFracMAX(float engFracMAX)
Set engFracMAX.
TauPi0Cluster_p1
persistent class version 1 for TauPi0Candidate
Definition: TauPi0Cluster_p1.h:25
TauPi0Cluster_p1::m_NPosECells_EM2
int m_NPosECells_EM2
Definition: TauPi0Cluster_p1.h:71
TauPi0ClusterCnv_p1::persToTrans
virtual void persToTrans(const TauPi0Cluster_p1 *persObj, Analysis::TauPi0Cluster *transObj, MsgStream &log)
Fills a transient object from a persistent object.
Definition: TauPi0ClusterCnv_p1.cxx:12
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
Analysis::TauPi0Cluster
Definition: TauPi0Cluster.h:28
Analysis::TauPi0Cluster::setAsymmetryInEM1WRTTrk
void setAsymmetryInEM1WRTTrk(float asymmetryInEM1WRTTrk)
Set asymmetryInEM1WRTTrk.
Analysis::TauPi0Cluster::firstEtaWRTClusterPosition_EM2
float firstEtaWRTClusterPosition_EM2() const
Get firstEtaWRTClusterPosition_EM2.
TauPi0Cluster_p1::m_DELTA_PHI
float m_DELTA_PHI
Definition: TauPi0Cluster_p1.h:58
TauPi0Cluster_p1::m_cluster
ElementLinkInt_p3 m_cluster
Definition: TauPi0Cluster_p1.h:54
TauPi0Cluster.h
TauPi0ClusterCnv_p1.h
Analysis::TauPi0Cluster::LATERAL
float LATERAL() const
Get LATERAL.
Analysis::TauPi0Cluster::setLATERAL
void setLATERAL(float LATERAL)
Set LATERAL.
Analysis::TauPi0Cluster::setBDTScore
void setBDTScore(float BDTScore)
Set BDTScore.
TauPi0Cluster_p1::m_EM1CoreFrac
float m_EM1CoreFrac
Definition: TauPi0Cluster_p1.h:66
TauPi0Cluster_p1::m_ENG_FRAC_CORE
float m_ENG_FRAC_CORE
Definition: TauPi0Cluster_p1.h:62
Analysis::TauPi0Cluster::setSecondEtaWRTClusterPosition_EM2
void setSecondEtaWRTClusterPosition_EM2(float secondEtaWRTClusterPosition_EM2)
Set secondEtaWRTClusterPosition_EM2.
Analysis::TauPi0Cluster::setDeltaTheta
void setDeltaTheta(float deltaTheta)
Set deltaTheta.
TauPi0Cluster_p1::m_LONGITUDINAL
float m_LONGITUDINAL
Definition: TauPi0Cluster_p1.h:65
Analysis::TauPi0Cluster::setNHitsInEM1
void setNHitsInEM1(int NHitsInEM1)
Set NHitsInEM1.
Analysis::TauPi0Cluster::setEngFracCore
void setEngFracCore(float engFracCore)
Set engFracCore.
Analysis::TauPi0Cluster::NHitsInEM1
int NHitsInEM1() const
Get NHitsInEM1.
TauPi0Cluster_p1::m_ENG_FRAC_EM
float m_ENG_FRAC_EM
Definition: TauPi0Cluster_p1.h:60
Analysis::TauPi0Cluster::setSecondEtaWRTClusterPosition_EM1
void setSecondEtaWRTClusterPosition_EM1(float secondEtaWRTClusterPosition_EM1)
Set secondEtaWRTClusterPosition_EM1.
Analysis::TauPi0Cluster::tauShotVec
const std::vector< TauShot * > & tauShotVec() const
Get shot vector (const)
Analysis::TauPi0Cluster::secondEtaWRTClusterPosition_EM2
float secondEtaWRTClusterPosition_EM2() const
Get secondEtaWRTClusterPosition_EM2.
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Analysis::TauPi0Cluster::NPosECells_EM1
int NPosECells_EM1() const
Get NPosECells_EM1.
TauPi0Cluster_p1::m_LATERAL
float m_LATERAL
Definition: TauPi0Cluster_p1.h:64
Analysis::TauPi0Cluster::NPosECells_EM2
int NPosECells_EM2() const
Get NPosECells_EM2.
Analysis::TauPi0Cluster::asymmetryInEM1WRTTrk
float asymmetryInEM1WRTTrk() const
Get asymmetryInEM1WRTTrk.
TauPi0Cluster_p1::m_firstEtaWRTClusterPosition_EM1
float m_firstEtaWRTClusterPosition_EM1
Definition: TauPi0Cluster_p1.h:72
Analysis::TauPi0Cluster::setFirstEtaWRTClusterPosition_EM2
void setFirstEtaWRTClusterPosition_EM2(float firstEtaWRTClusterPosition_EM2)
Set firstEtaWRTClusterPosition_EM2.
TauPi0Cluster_p1::m_DELTA_THETA
float m_DELTA_THETA
Definition: TauPi0Cluster_p1.h:59
Analysis::TauPi0Cluster::secondEngDens
float secondEngDens() const
Get secondEngDens.
Analysis::TauPi0Cluster::engFracMAX
float engFracMAX() const
Get engFracMAX.
Analysis::TauPi0Cluster::engFracEM
float engFracEM() const
Get engFracEM.
TauPi0ClusterCnv_p1::transToPers
virtual void transToPers(const Analysis::TauPi0Cluster *transObj, TauPi0Cluster_p1 *persObj, MsgStream &log)
Fills a persistent object from a transient object.
Definition: TauPi0ClusterCnv_p1.cxx:42
TauPi0Cluster_p1::m_asymmetryInEM1WRTTrk
float m_asymmetryInEM1WRTTrk
Definition: TauPi0Cluster_p1.h:67
Analysis::TauPi0Cluster::setNPosECells_PS
void setNPosECells_PS(int NPosECells_PS)
Set NPosECells_PS.