ATLAS Offline Software
TauRecDetailsCnv_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 
15 
16 #include "tauEvent/TauRecDetails.h"
22 
23 static const HepLorentzVectorCnv_p1 hepLorentzVectorCnv;
24 
25 static const ElementLinkVectorCnv_p1<
27  Rec::TrackParticleContainer> > tracksCnv;
28 
31  Analysis::TauDetails,
32  Analysis::TauRecDetails,
33  TauRecDetails_p1 >(),
34  m_recVertexCnv(0)
35 {
36 }
37 
39 {
40 }
41 
43  const TauRecDetails_p1 *pers,
45  MsgStream &msg )
46 {
47  trans->setEMRadius (pers->m_emRadius);
48  trans->setHadRadius (pers->m_hadRadius);
49  trans->setSumEmCellEt (pers->m_sumEmCellEt);
50  trans->setSumHadCellEt (pers->m_sumHadCellEt);
51  trans->setIsolationFraction (pers->m_ET12Frac);
53  trans->setStripWidth2 (pers->m_stripWidth2);
54  trans->setNumStripCells (pers->m_numStripCells);
55  trans->setETEMCalib (pers->m_etEMCalib);
56  trans->setETHadCalib (pers->m_etHadCalib);
57 
58  trans->setNumTrack (pers->m_trackCaloEta.size());
59  for (size_t i = 0; i < pers->m_trackCaloEta.size(); i++) {
60  trans->setTrackCaloEta (i, pers->m_trackCaloEta[i]);
61  trans->setTrackCaloPhi (i, pers->m_trackCaloPhi[i]);
62  }
63 
64  trans->setLeadingTrackPT (pers->m_leadingTrackPT);
66 
67  CLHEP::HepLorentzVector sumEM;
68  hepLorentzVectorCnv.persToTrans( &pers->m_sumEM, &sumEM, msg );
69  trans->setSumEM (sumEM);
71  ( &m_recVertexCnv, pers->m_secVertex, msg ));
72 
73  trans->setEtaCalo (pers->m_etaCalo);
74  trans->setPhiCalo (pers->m_phiCalo);
75  trans->setIpSigLeadTrack (pers->m_ipSigLeadTrack);
77  trans->setNTracksdrdR (pers->m_nTracksdrdR);
79 
80  tracksCnv.persToTrans(
81  &pers->m_looseTracks, &trans->looseTracks(),msg );
82 }
83 
85  (const Analysis::TauRecDetails */*trans*/,
86  TauRecDetails_p1 */*pers*/,
87  MsgStream &msg )
88 {
89  msg << MSG::WARNING << "TauRecDetailsCnv_p1::transToPers called "
90  "this should not happen, as this method is deprecated" << endmsg;
91  return;
92 }
Analysis::TauRecDetails::setPhiCalo
void setPhiCalo(double phi)
Definition: TauRecDetails.h:542
TauRecDetails_p1::m_numStripCells
int m_numStripCells
Definition: TauRecDetails_p1.h:38
TauRecDetails_p1::m_hadRadius
float m_hadRadius
Definition: TauRecDetails_p1.h:32
Analysis::TauRecDetails::setSumEM
void setSumEM(const CLHEP::HepLorentzVector &sumEM)
Definition: TauRecDetails.h:434
TauRecDetails_p1::m_sumEM
HepLorentzVector_p1 m_sumEM
Definition: TauRecDetails_p1.h:39
Analysis::TauRecDetails
DEPRECATED DO NOT USE - MIGRATE TO TauCommonDetails Basic details class containing information produc...
Definition: TauRecDetails.h:36
Analysis::TauRecDetails::setIsolationFraction
void setIsolationFraction(double isolationFraction)
Definition: TauRecDetails.h:346
TauRecDetails_p1::m_sumEmCellEt
float m_sumEmCellEt
Definition: TauRecDetails_p1.h:33
TauRecDetails_p1::m_looseTracks
ElementLinkIntVector_p1 m_looseTracks
Definition: TauRecDetails_p1.h:30
Analysis::TauRecDetails::setLeadingTrackPT
void setLeadingTrackPT(double leadingTrackPT)
Definition: TauRecDetails.h:509
ElementLinkVectorCnv_p1
Definition: ElementLinkVectorCnv_p1.h:28
TauRecDetailsCnv_p1::m_recVertexCnv
RecVertexCnv_p1 * m_recVertexCnv
Reconstruction vertex converter.
Definition: TauRecDetailsCnv_p1.h:72
Analysis::TauRecDetails::setETHadCalib
void setETHadCalib(double etHadCalib)
Definition: TauRecDetails.h:454
TauRecDetailsCnv_p1::persToTrans
virtual void persToTrans(const TauRecDetails_p1 *pers, Analysis::TauRecDetails *trans, MsgStream &msg)
Fills transient TauRecDetails instance from a persistent tauRecDetails instance.
Definition: TauRecDetailsCnv_p1.cxx:42
ElementLinkVectorCnv_p1.h
This file contains the class definition for the ElementLinkVectorCnv_p1 class. NOTE: it should be inc...
TauRecDetails_p1::m_stripWidth2
float m_stripWidth2
Definition: TauRecDetails_p1.h:37
Analysis::TauRecDetails::setTrackCaloPhi
void setTrackCaloPhi(int i, double trackCaloPhi)
Definition: TauRecDetails.h:499
VectorUtils.h
ElementLinkVectorCnv_p1::persToTrans
void persToTrans(const PersLinkVect_t &pers, LinkVect_t &trans, MsgStream &log) const
Analysis::TauRecDetails::setIpSigLeadTrack
void setIpSigLeadTrack(double ipSigLeadTrack)
Definition: TauRecDetails.h:387
HepLorentzVectorCnv_p1.h
Analysis::TauRecDetails::setEtOverPtLeadTrack
void setEtOverPtLeadTrack(double etOverPtLeadTrack)
Definition: TauRecDetails.h:397
TauRecDetails_p1::m_phiCalo
float m_phiCalo
Definition: TauRecDetails_p1.h:48
TauRecDetailsCnv_p1::~TauRecDetailsCnv_p1
virtual ~TauRecDetailsCnv_p1()
Destructor.
Definition: TauRecDetailsCnv_p1.cxx:38
Analysis::TauRecDetails::setCentralityFraction
void setCentralityFraction(double centralityFraction)
Definition: TauRecDetails.h:356
Analysis::TauRecDetails::setNumTrack
void setNumTrack(unsigned n)
Definition: TauRecDetails.h:473
TPPolyCnvBase
Definition: TPConverter.h:674
TauRecDetails_p1::m_secVertex
TPObjRef m_secVertex
Definition: TauRecDetails_p1.h:42
Analysis::TauRecDetails::looseTracks
ElementLinkVector< Rec::TrackParticleContainer > & looseTracks()
Definition: TauRecDetails.h:574
TauRecDetails_p1::m_etEMCalib
float m_etEMCalib
Definition: TauRecDetails_p1.h:40
TauRecDetailsCnv_p1::transToPers
virtual void transToPers(const Analysis::TauRecDetails *trans, TauRecDetails_p1 *pers, MsgStream &msg)
DEPRECATED DO NOT USE!
Definition: TauRecDetailsCnv_p1.cxx:85
TauRecDetails_p1::m_nTracksdrdR
int m_nTracksdrdR
Definition: TauRecDetails_p1.h:51
RecVertexCnv_p1.h
lumiFormat.i
int i
Definition: lumiFormat.py:85
TauRecDetails_p1::m_trackCaloPhi
std::vector< float > m_trackCaloPhi
Definition: TauRecDetails_p1.h:44
TauRecDetailsCnv_p1::TauRecDetailsCnv_p1
TauRecDetailsCnv_p1()
Default constructor.
Definition: TauRecDetailsCnv_p1.cxx:29
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
Analysis::TauRecDetails::setTrFlightPathSig
void setTrFlightPathSig(double trFlightPathSig)
Definition: TauRecDetails.h:522
Analysis::TauRecDetails::setETEMCalib
void setETEMCalib(double etEMCalib)
Definition: TauRecDetails.h:444
Analysis::TauRecDetails::setSecVertex
void setSecVertex(const Trk ::RecVertex *secVertex)
Secondary vertex.
Definition: TauRecDetails.h:467
TauRecDetails_p1::m_chargeLooseTracks
int m_chargeLooseTracks
Definition: TauRecDetails_p1.h:52
Analysis::TauRecDetails::setTrackCaloEta
void setTrackCaloEta(int i, double trackCaloEta)
Definition: TauRecDetails.h:489
ElementLinkVector
ElementLinkVector implementation for standalone ROOT.
Definition: AthLinks/ElementLinkVector.h:27
Analysis::TauRecDetails::setNumStripCells
void setNumStripCells(int numStripCells)
Definition: TauRecDetails.h:376
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Analysis::TauRecDetails::setHadRadius
void setHadRadius(double HadRadius)
Definition: TauRecDetails.h:316
Analysis::TauRecDetails::setStripWidth2
void setStripWidth2(double stripWidth2)
Definition: TauRecDetails.h:366
Rec::TrackParticleContainer
Definition: Reconstruction/Particle/Particle/TrackParticleContainer.h:33
Analysis::TauRecDetails::setSumEmCellEt
void setSumEmCellEt(double SumEmCellEt)
Definition: TauRecDetails.h:326
TauRecDetails_p1::m_ET12Frac
float m_ET12Frac
Definition: TauRecDetails_p1.h:35
HepLorentzVectorCnv_p1::persToTrans
virtual void persToTrans(const HepLorentzVector_p1 *persObj, CLHEP::HepLorentzVector *transObj, MsgStream &log) const override
Method creating the transient representation of HepLorentzVector from its persistent representation H...
Definition: HepLorentzVectorCnv_p1.cxx:26
TauRecDetails_p1::m_leadingTrackPT
float m_leadingTrackPT
Definition: TauRecDetails_p1.h:45
TauRecDetails_p1::m_etaCalo
float m_etaCalo
Definition: TauRecDetails_p1.h:47
TauRecDetails_p1::m_emRadius
float m_emRadius
Definition: TauRecDetails_p1.h:31
TauRecDetails.h
TauRecDetails_p1::m_ipSigLeadTrack
float m_ipSigLeadTrack
Definition: TauRecDetails_p1.h:49
Analysis::TauRecDetails::setEtaCalo
void setEtaCalo(double eta)
Definition: TauRecDetails.h:532
TauRecDetails_p1::m_etOverPtLeadTrack
float m_etOverPtLeadTrack
Definition: TauRecDetails_p1.h:50
Analysis::TauRecDetails::setNTracksdrdR
void setNTracksdrdR(int nTracksdrdR)
Definition: TauRecDetails.h:419
Analysis::TauRecDetails::setSumHadCellEt
void setSumHadCellEt(double SumHadCellEt)
Definition: TauRecDetails.h:336
TauRecDetailsCnv_p1.h
Analysis::TauRecDetails::setChargeLooseTracks
void setChargeLooseTracks(const int chargeLooseTracks)
Set the charge of loose tracks.
Definition: TauRecDetails.h:408
TauRecDetails_p1::m_trackCaloEta
std::vector< float > m_trackCaloEta
Definition: TauRecDetails_p1.h:43
TauRecDetails_p1
Definition: TauRecDetails_p1.h:25
TauRecDetails_p1::m_sumHadCellEt
float m_sumHadCellEt
Definition: TauRecDetails_p1.h:34
HepLorentzVectorCnv_p1
Definition: HepLorentzVectorCnv_p1.h:34
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
TauRecDetails_p1::m_centralityFraction
float m_centralityFraction
Definition: TauRecDetails_p1.h:36
TauRecDetails_p1::m_etHadCalib
float m_etHadCalib
Definition: TauRecDetails_p1.h:41
TauRecDetails_p1::m_trFlightPathSig
float m_trFlightPathSig
Definition: TauRecDetails_p1.h:46
ITPConverterFor< TRANS_BASE >::createTransFromPStore
CNV::Trans_t * createTransFromPStore(CNV **cnv, const TPObjRef &ref, MsgStream &log) const
Create transient representation of a persistent object, stored in the the top-level persistent object...
Definition: TPConverter.h:172
Analysis::TauRecDetails::setEMRadius
void setEMRadius(double EMRadius)
Definition: TauRecDetails.h:306