ATLAS Offline Software
TauShotCnv_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 
9 #include "tauEvent/TauShot.h"
11 
12 void TauShotCnv_p1::persToTrans(const TauShot_p1 *persObj, Analysis::TauShot *transObj, MsgStream &log)
13 {
15  //m_clusterVectCnv.persToTrans( &persObj->m_CaloClusterVector, &transObj->m_CaloClusterVector, log );
16  m_clusterCnv.persToTrans( &persObj->m_cluster, &transObj->clusterLink(), log );
17  m_seedCellCnv.persToTrans( &persObj->m_seedCell, &transObj->seedCellLink(), log );
18 
19  // 4momentum
22  transObj->set4Mom (mom);
24  // vectors
25  //transObj->m_clusterValueVector1 = persObj->m_clusterValueVector1;
26  // floats or ints
27  transObj->setNCellsInEta (persObj->m_nCellsInEta);
28  transObj->setpt1 (persObj->m_pt1);
29  transObj->setpt3 (persObj->m_pt3);
30  transObj->setpt5 (persObj->m_pt5);
31  transObj->setws5 (persObj->m_ws5);
32  transObj->setsdevEta5_WRTmean (persObj->m_sdevEta5_WRTmean);
33  transObj->setsdevEta5_WRTmode (persObj->m_sdevEta5_WRTmode);
34  transObj->setsdevPt5 (persObj->m_sdevPt5);
35  transObj->setdeltaPt12_min (persObj->m_deltaPt12_min);
36  transObj->setFside_3not1 (persObj->m_Fside_3not1);
37  transObj->setFside_5not1 (persObj->m_Fside_5not1);
38  transObj->setFside_5not3 (persObj->m_Fside_5not3);
39  transObj->setfracSide_3not1 (persObj->m_fracSide_3not1);
40  transObj->setfracSide_5not1 (persObj->m_fracSide_5not1);
41  transObj->setfracSide_5not3 (persObj->m_fracSide_5not3);
42  transObj->setpt1OverPt3 (persObj->m_pt1OverPt3);
43  transObj->setpt3OverPt5 (persObj->m_pt3OverPt5);
44  transObj->setmergedScore (persObj->m_mergedScore);
45  transObj->setsignalScore (persObj->m_signalScore);
46  transObj->setNPhotons (persObj->m_nPhotons);
47 }
48 
49 void TauShotCnv_p1::transToPers(const Analysis::TauShot *transObj, TauShot_p1 *persObj, MsgStream &log)
50 {
52  //m_clusterVectCnv.transToPers( &transObj->m_CaloClusterVector, &persObj->m_CaloClusterVector, log );
53  m_clusterCnv.transToPers( &transObj->clusterLink(), &persObj->m_cluster, log );
54  m_seedCellCnv.transToPers( &transObj->seedCellLink(), &persObj->m_seedCell, log );
55 
56  // 4momentum
57  m_P4EEtaPhiMCnv.transToPers((P4EEtaPhiM*)transObj,&persObj->m_P4EEtaPhiM,log);
59  // vector
60  //persObj->m_clusterValueVector1 = transObj->m_clusterValueVector1;
61  // floats or ints
62  persObj->m_nCellsInEta = transObj->nCellsInEta();
63  persObj->m_pt1 = transObj->pt1();
64  persObj->m_pt3 = transObj->pt3();
65  persObj->m_pt5 = transObj->pt5();
66  persObj->m_ws5 = transObj->ws5();
67  persObj->m_sdevEta5_WRTmean = transObj->sdevEta5_WRTmean();
68  persObj->m_sdevEta5_WRTmode = transObj->sdevEta5_WRTmode();
69  persObj->m_sdevPt5 = transObj->sdevPt5();
70  persObj->m_deltaPt12_min = transObj->deltaPt12_min();
71  persObj->m_Fside_3not1 = transObj->Fside_3not1();
72  persObj->m_Fside_5not1 = transObj->Fside_5not1();
73  persObj->m_Fside_5not3 = transObj->Fside_5not3();
74  persObj->m_fracSide_3not1 = transObj->fracSide_3not1();
75  persObj->m_fracSide_5not1 = transObj->fracSide_5not1();
76  persObj->m_fracSide_5not3 = transObj->fracSide_5not3();
77  persObj->m_pt1OverPt3 = transObj->pt1OverPt3();
78  persObj->m_pt3OverPt5 = transObj->pt3OverPt5();
79  persObj->m_mergedScore = transObj->mergedScore();
80  persObj->m_signalScore = transObj->signalScore();
81  persObj->m_nPhotons = transObj->nPhotons();
82 }
83 
84 
TauShot_p1::m_Fside_5not3
float m_Fside_5not3
Definition: TauShot_p1.h:55
TauShot_p1::m_P4EEtaPhiM
P4EEtaPhiMFloat_p2 m_P4EEtaPhiM
Definition: TauShot_p1.h:40
TauShot_p1::m_sdevPt5
float m_sdevPt5
Definition: TauShot_p1.h:51
TauShot_p1::m_pt1OverPt3
float m_pt1OverPt3
Definition: TauShot_p1.h:59
TauShotCnv_p1.h
ElementLinkCnv_p3::persToTrans
void persToTrans(const PersLink_t &pers, Link_t &trans, MsgStream &log) const
Analysis::TauShot::clusterLink
const ElementLink< CaloClusterContainer > & clusterLink() const
element link to cluster
TauShot_p1::m_deltaPt12_min
float m_deltaPt12_min
Definition: TauShot_p1.h:52
TauShot_p1::m_fracSide_3not1
float m_fracSide_3not1
Definition: TauShot_p1.h:56
Analysis::TauShot::seedCellLink
const ElementLink< CaloCellContainer > & seedCellLink() const
element link to seed cell
Analysis::TauShot::setsdevPt5
void setsdevPt5(float)
Analysis::TauShot::setpt3
void setpt3(float)
Analysis::TauShot::setsignalScore
void setsignalScore(float)
TauShot_p1::m_seedCell
ElementLinkInt_p3 m_seedCell
Definition: TauShot_p1.h:39
P4EEtaPhiM
Definition: P4EEtaPhiM.h:25
TauShot_p1::m_pt1
float m_pt1
Definition: TauShot_p1.h:45
TauShot.h
Analysis::TauShot::setpt1
void setpt1(float)
P4EEtaPhiMCnv_p2::transToPers
virtual void transToPers(const P4EEtaPhiM *transObj, P4EEtaPhiMFloat_p2 *persObj, MsgStream &log) const override
Method creating the persistent representation P4EEtaPhiMFloat_p2 from its transient representation P4...
Definition: P4EEtaPhiMCnv_p2.cxx:38
Analysis::TauShot::setNCellsInEta
void setNCellsInEta(int)
Analysis::TauShot::setfracSide_5not3
void setfracSide_5not3(float)
Analysis::TauShot::setws5
void setws5(float)
TauShot_p1::m_Fside_3not1
float m_Fside_3not1
Definition: TauShot_p1.h:53
TauShot_p1::m_nCellsInEta
int m_nCellsInEta
Definition: TauShot_p1.h:44
Analysis::TauShot::setdeltaPt12_min
void setdeltaPt12_min(float)
ElementLinkCnv_p3::transToPers
void transToPers(const Link_t &trans, PersLink_t &pers, const SG::ThinningCache *cache, MsgStream &log) const
Analysis::TauShot::setFside_5not1
void setFside_5not1(float)
Analysis::TauShot::setsdevEta5_WRTmean
void setsdevEta5_WRTmean(float)
Analysis::TauShot
Definition: TauShot.h:48
TauShot_p1::m_sdevEta5_WRTmean
float m_sdevEta5_WRTmean
Definition: TauShot_p1.h:49
TauShot_p1::m_signalScore
float m_signalScore
Definition: TauShot_p1.h:62
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
TauShot_p1::m_fracSide_5not3
float m_fracSide_5not3
Definition: TauShot_p1.h:58
Analysis::TauShot::setFside_5not3
void setFside_5not3(float)
TauShot_p1::m_pt5
float m_pt5
Definition: TauShot_p1.h:47
TauShotCnv_p1::persToTrans
virtual void persToTrans(const TauShot_p1 *persObj, Analysis::TauShot *transObj, MsgStream &log)
Fills a transient object from a persistent object.
Definition: TauShotCnv_p1.cxx:12
P4PtEtaPhiM::set4Mom
virtual void set4Mom(const I4Momentum &theI4Mom)
set all 4-mom from another I4Momentum reference
Definition: P4PtEtaPhiM.h:127
TauShotCnv_p1::m_P4EEtaPhiMCnv
P4EEtaPhiMCnv_p2 m_P4EEtaPhiMCnv
Definition: TauShotCnv_p1.h:54
TauShot_p1::m_pt3OverPt5
float m_pt3OverPt5
Definition: TauShot_p1.h:60
Analysis::TauShot::setpt1OverPt3
void setpt1OverPt3(float)
TauShotCnv_p1::transToPers
virtual void transToPers(const Analysis::TauShot *transObj, TauShot_p1 *persObj, MsgStream &log)
Fills a persistent object from a transient object.
Definition: TauShotCnv_p1.cxx:49
TauShot_p1::m_pt3
float m_pt3
Definition: TauShot_p1.h:46
Analysis::TauShot::setFside_3not1
void setFside_3not1(float)
TauShot_p1::m_sdevEta5_WRTmode
float m_sdevEta5_WRTmode
Definition: TauShot_p1.h:50
Analysis::TauShot::setfracSide_3not1
void setfracSide_3not1(float)
TauShot_p1::m_fracSide_5not1
float m_fracSide_5not1
Definition: TauShot_p1.h:57
TauShot_p1::m_nPhotons
int m_nPhotons
Definition: TauShot_p1.h:63
TauShot_p1::m_ws5
float m_ws5
Definition: TauShot_p1.h:48
TauShot_p1::m_mergedScore
float m_mergedScore
Definition: TauShot_p1.h:61
Analysis::TauShot::setpt5
void setpt5(float)
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Analysis::TauShot::setNPhotons
void setNPhotons(int)
TauShot_p1
persistent class version 1 for TauPi0Candidate
Definition: TauShot_p1.h:26
TauShotCnv_p1::m_seedCellCnv
ElementLinkCnv_p3< ElementLink< CaloCellContainer > > m_seedCellCnv
Definition: TauShotCnv_p1.h:53
Analysis::TauShot::setfracSide_5not1
void setfracSide_5not1(float)
Analysis::TauShot::setmergedScore
void setmergedScore(float)
Analysis::TauShot::setsdevEta5_WRTmode
void setsdevEta5_WRTmode(float)
TauShotCnv_p1::m_clusterCnv
ElementLinkCnv_p3< ElementLink< CaloClusterContainer > > m_clusterCnv
Definition: TauShotCnv_p1.h:52
Analysis::TauShot::setpt3OverPt5
void setpt3OverPt5(float)
P4EEtaPhiMCnv_p2::persToTrans
virtual void persToTrans(const P4EEtaPhiMFloat_p2 *persObj, P4EEtaPhiM *transObj, MsgStream &log) const override
Method creating the transient representation of P4EEtaPhiM from its persistent representation P4EEtaP...
Definition: P4EEtaPhiMCnv_p2.cxx:26
TauShot_p1::m_Fside_5not1
float m_Fside_5not1
Definition: TauShot_p1.h:54
TauShot_p1::m_cluster
ElementLinkInt_p3 m_cluster
Definition: TauShot_p1.h:38