ATLAS Offline Software
MuonCalibEvent_E.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
8 
9 namespace MuonCalib {
11 
13 
15  m_phiPats.clear();
16  m_tracks.clear();
17  m_ctp.clear();
18  m_mctpi.clear();
19  m_rpcsl.clear();
20  m_rpcco.clear();
21  m_rpctr.clear();
22  m_mbts.clear();
23  m_l1calo.clear();
24 
25  for (const MuonCalibTrkPtr& phi : event.phiPat()) { m_phiPats.emplace_back(new MuonCalibTrack_E(*phi)); }
26  for (const MuonCalibTrkPtr& trk : event.tracks()) { m_tracks.emplace_back(new MuonCalibTrack_E(*trk)); }
27  for (const TrigInfoPtr& ctpi : event.ctp()) { m_ctp.emplace_back(new MuonCalibTriggerInfo(*ctpi)); }
28  for (const MuCTPiPtr& mit : event.MUCTPI()) { m_mctpi.emplace_back(new MuonCalibMUCTPI(*mit)); }
29  for (const RpcSectorLogicPtr& logic : event.RpcSL()) { m_rpcsl.emplace_back(new MuonCalibRpcSectorLogic(*logic)); }
30  for (const RpcCoinPtr& coin : event.RpcCoin()) { m_rpcco.emplace_back(new MuonCalibRawRpcCoin(*coin)); }
31  for (const RpcTrigHitPtr& trig_hit : event.rawRpcTrig()) { m_rpctr.emplace_back(new MuonCalibRawRpcTriggerHit(*trig_hit)); }
32  for (const CaloHitPtr& calo_hit : event.MBTS()) { m_mbts.emplace_back(new MuonCalibCaloHit(*calo_hit)); }
33  for (const CaloHitPtr& calo_hit : event.L1Calo()) { m_l1calo.emplace_back(new MuonCalibCaloHit(*calo_hit)); }
34  }
35 
37  if (this != &event) { copy(event); }
38  return (*this);
39  }
45 
49 
53 
56 
59 
62 
67 
68  unsigned int MuonCalibEvent_E::nrPhiPat() const { return m_phiPats.size(); }
69  unsigned int MuonCalibEvent_E::nrTracks() const { return m_tracks.size(); }
70  unsigned int MuonCalibEvent_E::nrCtp() const { return m_ctp.size(); }
71  unsigned int MuonCalibEvent_E::nrMUCTPI() const { return m_mctpi.size(); }
72  unsigned int MuonCalibEvent_E::nrRpcSL() const { return m_rpcsl.size(); }
73  unsigned int MuonCalibEvent_E::nrRpcCoin() const { return m_rpcco.size(); }
74  unsigned int MuonCalibEvent_E::nrRawRpcTrigHit() const { return m_rpctr.size(); }
75  unsigned int MuonCalibEvent_E::nrMBTS() const { return m_mbts.size(); }
76  unsigned int MuonCalibEvent_E::nrL1Calo() const { return m_l1calo.size(); }
77 
79  if (pat) { m_phiPats.emplace_back(pat); }
80  }
81 
83  if (trk) { m_tracks.emplace_back(trk); }
84  }
85 
87  if (trig) { m_ctp.emplace_back(trig); }
88  }
89 
91  if (mctpi) { m_mctpi.emplace_back(mctpi); }
92  }
93 
95  if (rpcsl) { m_rpcsl.emplace_back(rpcsl); }
96  }
97 
99  if (rpcco) { m_rpcco.emplace_back(rpcco); }
100  }
101 
103  if (rpctr) { m_rpctr.emplace_back(rpctr); }
104  }
105 
107  if (hit) { m_mbts.emplace_back(hit); }
108  }
109 
111  if (hit) { m_l1calo.emplace_back(hit); }
112  }
113 
115  if (pat) { m_phiPats.emplace_back(pat); }
116  }
117 
119  if (trk) { m_tracks.emplace_back(trk); }
120  }
121 
123  if (trig) { m_ctp.emplace_back(trig); }
124  }
125 
127  if (mctpi) { m_mctpi.emplace_back(mctpi); }
128  }
129 
131  if (rpcsl) { m_rpcsl.emplace_back(rpcsl); }
132  }
133 
135  if (rpcco) { m_rpcco.emplace_back(rpcco); }
136  }
137 
139  if (rpctr) { m_rpctr.emplace_back(rpctr); }
140  }
141 
143  if (hit) { m_mbts.emplace_back(hit); }
144  }
145 
147  if (hit) { m_l1calo.emplace_back(hit); }
148  }
149 
150 } // namespace MuonCalib
MuonCalib::MuonCalibEvent_E::m_mbts
MBTSVec m_mbts
set of MBTS Calo Hits in MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:144
MuonCalib::MuonCalibEvent_E::MuonCalibTrkPtr
std::shared_ptr< const MuonCalibTrack_E > MuonCalibTrkPtr
Definition: MuonCalibEvent_E.h:37
MuonCalib::MuonCalibEvent_E::MuCTPiPtr
std::shared_ptr< const MuonCalibMUCTPI > MuCTPiPtr
Definition: MuonCalibEvent_E.h:38
MuonCalib::MuonCalibEvent
Definition: MuonCalibEvent.h:48
MuonCalib::MuonCalibEvent_E::RpcTrigHitPtr
std::shared_ptr< const MuonCalibRawRpcTriggerHit > RpcTrigHitPtr
Definition: MuonCalibEvent_E.h:42
MuonCalib::MuonCalibEvent_E::L1Calo
const L1CaloVec & L1Calo() const
Definition: MuonCalibEvent_E.cxx:65
MuonCalib::MuonCalibEvent_E::tracks
const TrackVec & tracks() const
Accesses the tracks of the event directly.
Definition: MuonCalibEvent_E.cxx:43
MuonCalib::MuonCalibEvent_E::m_rpcsl
RpcSLVec m_rpcsl
set of RpcSL objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:141
MuonCalib::MuonCalibEvent_E::operator=
MuonCalibEvent_E & operator=(const MuonCalibEvent_E &right)
assign operator
Definition: MuonCalibEvent_E.cxx:36
MuonCalib::MuonCalibEvent_E::nrRawRpcTrigHit
unsigned int nrRawRpcTrigHit() const
returns number of RpcCoinVec objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:74
MuonCalib::MuonCalibEvent_E::nrL1Calo
unsigned int nrL1Calo() const
returns number of L1Calo towers in MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:76
MuonCalib::MuonCalibEvent_E::addTrack
void addTrack(MuonCalibTrack_E *track)
Adds a Track to TrackVec.
Definition: MuonCalibEvent_E.cxx:118
MuonCalib::MuonCalibEvent_E::PhiPatVec
std::vector< MuonCalibTrkPtr > PhiPatVec
typedef for a set of MuonCalibTrack_E s describing Tracks
Definition: MuonCalibEvent_E.h:46
MuonCalib::MuonCalibEvent_E::addL1Calo
void addL1Calo(MuonCalibCaloHit *hit)
Adds a L1Calo hit/tower to L1CaloVec.
Definition: MuonCalibEvent_E.cxx:146
MuonCalib::MuonCalibEvent_E::addRpcSL
void addRpcSL(MuonCalibRpcSectorLogic *rpcsl)
Adds an RpcSectorLogic obj to RpcSLVec.
Definition: MuonCalibEvent_E.cxx:130
MuonCalib::MuonCalibEvent_E::MBTSVec
std::vector< CaloHitPtr > MBTSVec
typedef for a set of MuonCalibCalo Hits for L1Calo
Definition: MuonCalibEvent_E.h:64
MuonCalib::MuonCalibEvent_E::RpcSectorLogicPtr
std::shared_ptr< const MuonCalibRpcSectorLogic > RpcSectorLogicPtr
Definition: MuonCalibEvent_E.h:40
MuonCalib::MuonCalibEvent_E::CtpVec
std::vector< TrigInfoPtr > CtpVec
typedef for a set of MUCTPI entries
Definition: MuonCalibEvent_E.h:52
MuonCalib::MuonCalibEvent_E::addPattern
void addPattern(MuonCalibTrack_E *pat)
Adds a PhiPattern to PhiPatVec.
Definition: MuonCalibEvent_E.cxx:114
MuonCalib::MuonCalibEvent_E::MBTS
const MBTSVec & MBTS() const
Definition: MuonCalibEvent_E.cxx:63
MuonCalib::MuonCalibRpcSectorLogic
Simplified class designed to store information from RpcSectorLogic.
Definition: MuonCalibRpcSectorLogic.h:16
MuonCalib::MuonCalibMUCTPI
Simplified class designed to store information from MuCTPi processor.
Definition: MuonCalibMUCTPI.h:16
MuonCalib::MuonCalibEvent_E::TrackVec
std::vector< MuonCalibTrkPtr > TrackVec
typedef for a set of TriggerInfo bits
Definition: MuonCalibEvent_E.h:49
MuonCalib::MuonCalibEvent_E::nrRpcSL
unsigned int nrRpcSL() const
returns number of RpcSectorLogic objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:72
MuonCalib::MuonCalibEvent_E::nrTracks
unsigned int nrTracks() const
returns number of Tracks of the MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:69
MuonCalib::MuonCalibCaloHit
Simplified class designed to store information of a MBTS hit.
Definition: MuonCalibCaloHit.h:20
MuonCalib::MuonCalibTrack_E
Definition: MuonCalibTrack_E.h:24
MuonCalib::MuonCalibEvent_E::addMUCTPI
void addMUCTPI(MuonCalibMUCTPI *mctp)
Adds a MUCTPI obj to MUCTPIVec.
Definition: MuonCalibEvent_E.cxx:126
MuonCalib::MuonCalibEvent_E::m_rpcco
RpcCoinVec m_rpcco
set of RpcCoin objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:142
MuonCalib::MuonCalibEvent_E::MUCTPIVec
std::vector< MuCTPiPtr > MUCTPIVec
typedef for a set of MuonCalibRpcSectorLogic entries
Definition: MuonCalibEvent_E.h:55
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MuonCalib::MuonCalibEvent_E::m_mctpi
MUCTPIVec m_mctpi
set of MUCTPI objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:140
MuonCalibEvent_E.h
MuonCalib::MuonCalibEvent_E::nrCtp
unsigned int nrCtp() const
returns number of CTP hits /bits in MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:70
MuonCalib::MuonCalibEvent_E::nrMUCTPI
unsigned int nrMUCTPI() const
returns number of MUCTPI objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:71
MuonCalib::MuonCalibEvent_E::addRpcCoin
void addRpcCoin(MuonCalibRawRpcCoin *rpcco)
Adds an RpcCoin obj to RpcCoinVec.
Definition: MuonCalibEvent_E.cxx:134
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibEvent_E::addCtp
void addCtp(MuonCalibTriggerInfo *trig)
Adds a TriggerInfo to CtpVec.
Definition: MuonCalibEvent_E.cxx:122
MuonCalib::MuonCalibEvent_E::MuonCalibEvent_E
MuonCalibEvent_E()=default
default constructor
MuonCalib::MuonCalibEvent_E::ctp
const CtpVec & ctp() const
Access to the Ctp triggerinfo hits / bits.
Definition: MuonCalibEvent_E.cxx:47
MuonCalib::MuonCalibEvent_E::rawRpcTrig
const RawRpcTrigVec & rawRpcTrig() const
Definition: MuonCalibEvent_E.cxx:60
MuonCalib::MuonCalibEvent_E::CaloHitPtr
std::shared_ptr< const MuonCalibCaloHit > CaloHitPtr
typedef for a set of MuonCalibTrack_E s describing PhiPatterns
Definition: MuonCalibEvent_E.h:45
MuonCalib::MuonCalibEvent_E::RpcSL
const RpcSLVec & RpcSL() const
Definition: MuonCalibEvent_E.cxx:54
MuonCalib::MuonCalibEvent_E::m_l1calo
L1CaloVec m_l1calo
set of L1Calo Hits/towers in MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:145
dso-stats.pat
pat
Definition: dso-stats.py:39
MuonCalib::MuonCalibTriggerInfo
Simplified class designed to store information of a trigger.
Definition: MuonCalibTriggerInfo.h:74
MuonCalib::MuonCalibEvent_E::copy
void copy(const MuonCalibEvent_E &other)
Definition: MuonCalibEvent_E.cxx:14
MuonCalib::MuonCalibRawRpcCoin
Definition: MuonCalibRawRpcCoin.h:20
MuonCalib::MuonCalibEvent_E::RpcCoin
const RpcCoinVec & RpcCoin() const
Definition: MuonCalibEvent_E.cxx:58
MuonCalib::MuonCalibEvent_E::nrMBTS
unsigned int nrMBTS() const
returns number of MBTS hits in MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:75
MuonCalib::MuonCalibEvent_E::nrPhiPat
unsigned int nrPhiPat() const
returns number of PhiPatterns of the MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:68
MuonCalib::MuonCalibEvent_E::L1CaloVec
std::vector< CaloHitPtr > L1CaloVec
Definition: MuonCalibEvent_E.h:66
MuonCalib::MuonCalibEvent_E::m_tracks
TrackVec m_tracks
set of Tracks belonging to the MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:138
MuonCalib::MuonCalibEvent_E::m_rpctr
RawRpcTrigVec m_rpctr
set of RawRpcTrig objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:143
MuonCalib::MuonCalibEvent_E::MUCTPI
const MUCTPIVec & MUCTPI() const
Definition: MuonCalibEvent_E.cxx:51
MuonCalib::MuonCalibEvent_E::addMBTS
void addMBTS(MuonCalibCaloHit *hit)
Adds a MBTS hit to MBTSVec.
Definition: MuonCalibEvent_E.cxx:142
MuonCalib::MuonCalibEvent_E::RawRpcTrigVec
std::vector< RpcTrigHitPtr > RawRpcTrigVec
typedef for a set of MuonCalibCalo Hits for the MBTS
Definition: MuonCalibEvent_E.h:62
MuonCalib::MuonCalibEvent_E::phiPat
const PhiPatVec & phiPat() const
Accesses the Phi ptterns of the event directly.
Definition: MuonCalibEvent_E.cxx:40
MuonCalib::MuonCalibEvent_E::m_ctp
CtpVec m_ctp
set of CTP trigger bits in MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:139
MuonCalib::MuonCalibEvent_E::TrigInfoPtr
std::shared_ptr< const MuonCalibTriggerInfo > TrigInfoPtr
Definition: MuonCalibEvent_E.h:39
MuonCalib::MuonCalibEvent_E::nrRpcCoin
unsigned int nrRpcCoin() const
returns number of RpcCoinVec objects in MuonCalibEvent_E
Definition: MuonCalibEvent_E.cxx:73
MuonCalib::MuonCalibEvent_E::RpcCoinVec
std::vector< RpcCoinPtr > RpcCoinVec
typedef for a set of MuonCalibRawRpcTriggerHit entries
Definition: MuonCalibEvent_E.h:60
MuonCalib::MuonCalibEvent_E::m_phiPats
PhiPatVec m_phiPats
set of PhiPatterns belonging to the MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:137
MuonCalib::MuonCalibEvent_E::addRawRpcTrigHit
void addRawRpcTrigHit(MuonCalibRawRpcTriggerHit *rpctr)
Adds an RpcCoin obj to RpcCoinVec.
Definition: MuonCalibEvent_E.cxx:138
MuonCalib::MuonCalibEvent_E::RpcSLVec
std::vector< RpcSectorLogicPtr > RpcSLVec
typedef for a set of MuonCalibRpcCoin entries
Definition: MuonCalibEvent_E.h:57
MuonCalib::MuonCalibEvent_E
Definition: MuonCalibEvent_E.h:35
MuonCalib::MuonCalibEvent_E::RpcCoinPtr
std::shared_ptr< const MuonCalibRawRpcCoin > RpcCoinPtr
Definition: MuonCalibEvent_E.h:41
MuonCalibEvent.h
MuonCalib::MuonCalibRawRpcTriggerHit
Definition: MuonCalibRawRpcTriggerHit.h:23