ATLAS Offline Software
Tau1P3PExtraDetailsCnv_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 
18 
21 
24  Analysis::TauDetails,
25  Analysis::Tau1P3PExtraDetails,
27 {
28 }
29 
31 {
32 }
33 
35  const Tau1P3PExtraDetails_p1 *pers,
37  MsgStream &msg )
38 {
40  trans->setSumPTTracks (pers->m_sumPTTracks);
41  const unsigned int tracks = pers->m_tracks;
42  if( tracks == 0 ) return;
43  const unsigned int samplings = pers->m_closestPhiTrkCell.size()/tracks;
44  trans->allocTracksAndSamplings( tracks, samplings );
45  unsigned int ind = 0;
46  for( unsigned int i = 0; i < tracks; ++i ) {
47  for( unsigned int j = 0; j < samplings; ++j ) {
51  el, msg );
52  trans->setClosestEtaTrkVertCellLink (el, i, j);
54  pers->m_closestEtaTrkCell[ind],
55  el, msg );
56  trans->setClosestEtaTrkCellLink (el, i, j);
59  el, msg );
60  trans->setClosestPhiTrkVertCellLink (el, i, j);
62  pers->m_closestPhiTrkCell[ind],
63  el, msg );
64  trans->setClosestPhiTrkCellLink (el, i, j);
65  trans->setEtaTrackCaloSamp (i, j, pers->m_etaTrackCaloSamp[ind]);
66  trans->setPhiTrackCaloSamp (i, j, pers->m_phiTrackCaloSamp[ind]);
67  ++ind;
68  }
69  }
70 }
71 
73  (const Analysis::Tau1P3PExtraDetails */*trans*/,
74  Tau1P3PExtraDetails_p1 */*pers*/,
75  MsgStream &msg )
76 {
77  msg << MSG::WARNING << "Tau1P3PExtraDetailsCnv_p1::transToPers called "
78  "this should not happen, as this method is deprecated" << endmsg;
79  return;
80 }
Tau1P3PExtraDetails_p1::m_closestEtaTrkVertCell
std::vector< ElementLinkInt_p2 > m_closestEtaTrkVertCell
Definition: Tau1P3PExtraDetails_p1.h:34
Tau1P3PExtraDetails_p1::m_closestPhiTrkVertCell
std::vector< ElementLinkInt_p2 > m_closestPhiTrkVertCell
Definition: Tau1P3PExtraDetails_p1.h:36
Analysis::Tau1P3PExtraDetails::setClosestPhiTrkCellLink
void setClosestPhiTrkCellLink(const ElementLink< CaloCellContainer > &el, int itrk, int num)
Definition: Tau1P3PExtraDetails.h:260
Analysis::Tau1P3PExtraDetails::setEtaTrackCaloSamp
void setEtaTrackCaloSamp(int itrk, int i, double eta)
Definition: Tau1P3PExtraDetails.h:274
Tau1P3PExtraDetailsCnv_p1::m_cellCnv
ElementLinkCnv_p2< ElementLink< CaloCellContainer > > m_cellCnv
Calorimeter cell cluster converter.
Definition: Tau1P3PExtraDetailsCnv_p1.h:72
Tau1P3PExtraDetailsCnv_p1::transToPers
virtual void transToPers(const Analysis::Tau1P3PExtraDetails *trans, Tau1P3PExtraDetails_p1 *pers, MsgStream &msg)
DEPRECATED DO NOT USE!
Definition: Tau1P3PExtraDetailsCnv_p1.cxx:73
Tau1P3PExtraDetailsCnv_p1::Tau1P3PExtraDetailsCnv_p1
Tau1P3PExtraDetailsCnv_p1()
Constructor.
Definition: Tau1P3PExtraDetailsCnv_p1.cxx:22
Analysis::Tau1P3PExtraDetails::setClosestEtaTrkVertCellLink
void setClosestEtaTrkVertCellLink(const ElementLink< CaloCellContainer > &el, int itrk, int num)
Definition: Tau1P3PExtraDetails.h:196
Tau1P3PExtraDetails.h
TPPolyCnvBase
Definition: TPConverter.h:674
Tau1P3PExtraDetails_p1::m_linkNames
ElementLinkContNames_p2 m_linkNames
Definition: Tau1P3PExtraDetails_p1.h:43
Tau1P3PExtraDetailsCnv_p1::persToTrans
virtual void persToTrans(const Tau1P3PExtraDetails_p1 *pers, Analysis::Tau1P3PExtraDetails *trans, MsgStream &msg)
Fills transient Tau1P3PExtraDetails instance from a persistent tau1P3PExtraDetails instance.
Definition: Tau1P3PExtraDetailsCnv_p1.cxx:34
lumiFormat.i
int i
Definition: lumiFormat.py:85
Tau1P3PExtraDetails_p1::m_closestPhiTrkCell
std::vector< ElementLinkInt_p2 > m_closestPhiTrkCell
Definition: Tau1P3PExtraDetails_p1.h:37
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
Analysis::Tau1P3PExtraDetails::setClosestPhiTrkVertCellLink
void setClosestPhiTrkVertCellLink(const ElementLink< CaloCellContainer > &el, int itrk, int num)
Definition: Tau1P3PExtraDetails.h:218
ElementLinkCnv_p2::persToTrans
void persToTrans(State &state, const PersLink_t &pers, Link_t &trans, MsgStream &log) const
Analysis::Tau1P3PExtraDetails::setPhiTrackCaloSamp
void setPhiTrackCaloSamp(int itrk, int i, double eta)
Definition: Tau1P3PExtraDetails.h:285
Analysis::Tau1P3PExtraDetails::setClosestEtaTrkCellLink
void setClosestEtaTrkCellLink(const ElementLink< CaloCellContainer > &el, int itrk, int num)
Definition: Tau1P3PExtraDetails.h:239
Analysis
The namespace of all packages in PhysicsAnalysis/JetTagging.
Definition: BTaggingCnvAlg.h:20
Tau1P3PExtraDetails_p1
DEPRECATED - Do not use except for backwards compatibility Persistent Tau1P3PExtraDetails class.
Definition: Tau1P3PExtraDetails_p1.h:28
Analysis::Tau1P3PExtraDetails
DEPRECATED DO NOT USE - MIGRATE TO TauCommonDetails Extended details class containing information pro...
Definition: Tau1P3PExtraDetails.h:36
Tau1P3PExtraDetails_p1::m_sumPTTracks
float m_sumPTTracks
Definition: Tau1P3PExtraDetails_p1.h:40
Tau1P3PExtraDetailsCnv_p1::~Tau1P3PExtraDetailsCnv_p1
virtual ~Tau1P3PExtraDetailsCnv_p1()
Destructor.
Definition: Tau1P3PExtraDetailsCnv_p1.cxx:30
ElementLinkCnv_p2::resetForCnv
void resetForCnv(ElementLinkContNames_p2 &lookupTable)
Tau1P3PExtraDetails_p1::m_closestEtaTrkCell
std::vector< ElementLinkInt_p2 > m_closestEtaTrkCell
Definition: Tau1P3PExtraDetails_p1.h:35
Analysis::Tau1P3PExtraDetails::allocTracksAndSamplings
void allocTracksAndSamplings(unsigned tracks, unsigned samplings)
Allocate data structures for given number of tracks and samplings.
Definition: Tau1P3PExtraDetails.h:152
Tau1P3PExtraDetailsCnv_p1.h
Tau1P3PExtraDetails_p1::m_tracks
unsigned char m_tracks
Definition: Tau1P3PExtraDetails_p1.h:41
Tau1P3PExtraDetails_p1::m_phiTrackCaloSamp
std::vector< float > m_phiTrackCaloSamp
Definition: Tau1P3PExtraDetails_p1.h:39
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7
Tau1P3PExtraDetails_p1::m_etaTrackCaloSamp
std::vector< float > m_etaTrackCaloSamp
Definition: Tau1P3PExtraDetails_p1.h:38
checkFileSG.ind
list ind
Definition: checkFileSG.py:118
Analysis::Tau1P3PExtraDetails::setSumPTTracks
void setSumPTTracks(double sumPTTracks)
Definition: Tau1P3PExtraDetails.h:296