ATLAS Offline Software
Loading...
Searching...
No Matches
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
9namespace 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
Scalar phi() const
phi method
Simplified class designed to store information of a MBTS hit.
unsigned int nrMBTS() const
returns number of MBTS hits in MuonCalibEvent_E
void addRpcCoin(MuonCalibRawRpcCoin *rpcco)
Adds an RpcCoin obj to RpcCoinVec.
std::vector< RpcCoinPtr > RpcCoinVec
typedef for a set of MuonCalibRawRpcTriggerHit entries
void addCtp(MuonCalibTriggerInfo *trig)
Adds a TriggerInfo to CtpVec.
const L1CaloVec & L1Calo() const
TrackVec m_tracks
set of Tracks belonging to the MuonCalibEvent_E
void addMBTS(MuonCalibCaloHit *hit)
Adds a MBTS hit to MBTSVec.
unsigned int nrL1Calo() const
returns number of L1Calo towers in MuonCalibEvent_E
const RpcSLVec & RpcSL() const
std::shared_ptr< const MuonCalibRpcSectorLogic > RpcSectorLogicPtr
const RawRpcTrigVec & rawRpcTrig() const
void addMUCTPI(MuonCalibMUCTPI *mctp)
Adds a MUCTPI obj to MUCTPIVec.
void addRpcSL(MuonCalibRpcSectorLogic *rpcsl)
Adds an RpcSectorLogic obj to RpcSLVec.
RpcCoinVec m_rpcco
set of RpcCoin objects in MuonCalibEvent_E
unsigned int nrRpcCoin() const
returns number of RpcCoinVec objects in MuonCalibEvent_E
void copy(const MuonCalibEvent_E &other)
std::vector< RpcTrigHitPtr > RawRpcTrigVec
typedef for a set of MuonCalibCalo Hits for the MBTS
unsigned int nrCtp() const
returns number of CTP hits /bits in MuonCalibEvent_E
unsigned int nrTracks() const
returns number of Tracks of the MuonCalibEvent_E
const MBTSVec & MBTS() const
std::shared_ptr< const MuonCalibCaloHit > CaloHitPtr
typedef for a set of MuonCalibTrack_E s describing PhiPatterns
MuonCalibEvent_E & operator=(const MuonCalibEvent_E &right)
assign operator
void addRawRpcTrigHit(MuonCalibRawRpcTriggerHit *rpctr)
Adds an RpcCoin obj to RpcCoinVec.
unsigned int nrRpcSL() const
returns number of RpcSectorLogic objects in MuonCalibEvent_E
MUCTPIVec m_mctpi
set of MUCTPI objects in MuonCalibEvent_E
L1CaloVec m_l1calo
set of L1Calo Hits/towers in MuonCalibEvent_E
std::shared_ptr< const MuonCalibRawRpcTriggerHit > RpcTrigHitPtr
std::vector< MuCTPiPtr > MUCTPIVec
typedef for a set of MuonCalibRpcSectorLogic entries
RpcSLVec m_rpcsl
set of RpcSL objects in MuonCalibEvent_E
unsigned int nrRawRpcTrigHit() const
returns number of RpcCoinVec objects in MuonCalibEvent_E
MBTSVec m_mbts
set of MBTS Calo Hits in MuonCalibEvent_E
MuonCalibEvent_E()=default
default constructor
std::shared_ptr< const MuonCalibRawRpcCoin > RpcCoinPtr
std::vector< MuonCalibTrkPtr > TrackVec
typedef for a set of TriggerInfo bits
std::shared_ptr< const MuonCalibTrack_E > MuonCalibTrkPtr
void addTrack(MuonCalibTrack_E *track)
Adds a Track to TrackVec.
const TrackVec & tracks() const
Accesses the tracks of the event directly.
RawRpcTrigVec m_rpctr
set of RawRpcTrig objects in MuonCalibEvent_E
unsigned int nrMUCTPI() const
returns number of MUCTPI objects in MuonCalibEvent_E
std::shared_ptr< const MuonCalibTriggerInfo > TrigInfoPtr
void addPattern(MuonCalibTrack_E *pat)
Adds a PhiPattern to PhiPatVec.
std::vector< MuonCalibTrkPtr > PhiPatVec
typedef for a set of MuonCalibTrack_E s describing Tracks
std::vector< CaloHitPtr > MBTSVec
typedef for a set of MuonCalibCalo Hits for L1Calo
const PhiPatVec & phiPat() const
Accesses the Phi ptterns of the event directly.
const RpcCoinVec & RpcCoin() const
const CtpVec & ctp() const
Access to the Ctp triggerinfo hits / bits.
std::vector< TrigInfoPtr > CtpVec
typedef for a set of MUCTPI entries
std::vector< CaloHitPtr > L1CaloVec
void addL1Calo(MuonCalibCaloHit *hit)
Adds a L1Calo hit/tower to L1CaloVec.
std::vector< RpcSectorLogicPtr > RpcSLVec
typedef for a set of MuonCalibRpcCoin entries
PhiPatVec m_phiPats
set of PhiPatterns belonging to the MuonCalibEvent_E
CtpVec m_ctp
set of CTP trigger bits in MuonCalibEvent_E
const MUCTPIVec & MUCTPI() const
std::shared_ptr< const MuonCalibMUCTPI > MuCTPiPtr
unsigned int nrPhiPat() const
returns number of PhiPatterns of the MuonCalibEvent_E
MuonCalibEvent()=default
Default constructor.
Simplified class designed to store information from MuCTPi processor.
Calib-EDM version of RpcCoinData class.
Calib-EDM version of RpcRawData class.
Simplified class designed to store information from RpcSectorLogic.
Simplified class designed to store information of a Track.
Simplified class designed to store information of a trigger.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.