ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibTruthCollection.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
7#include <algorithm>
8
9namespace MuonCalib {
10
13 m_truthVec.clear();
14 m_mdtTruthVec.clear();
15 m_rpcTruthVec.clear();
16 m_cscTruthVec.clear();
17 m_tgcTruthVec.clear();
18
19 for (const TruthPtr& it : other.m_truthVec) { m_truthVec.emplace_back(new MuonCalibTruth(*it)); }
20 for (const TruthMdtPtr& mdt_it : other.m_mdtTruthVec) { m_mdtTruthVec.emplace_back(new MuonCalibMdtTruthHit(*mdt_it)); }
21 for (const TruthRpcPtr& rpc_it : other.m_rpcTruthVec) { m_rpcTruthVec.emplace_back(new MuonCalibRpcTruthHit(*rpc_it)); }
22 for (const TruthCscPtr& csc_it : other.m_cscTruthVec) { m_cscTruthVec.emplace_back(new MuonCalibCscTruthHit(*csc_it)); }
23 for (const TruthTgcPtr& tgc_it : other.m_tgcTruthVec) { m_tgcTruthVec.emplace_back(new MuonCalibTgcTruthHit(*tgc_it)); }
24 }
25
28
32
36
40
44
46 if (this != &rhs) { copy(rhs); }
47 return (*this);
48 }
50
52 if (truth) m_truthVec.emplace_back(truth);
53 }
55 if (truth) m_mdtTruthVec.emplace_back(truth);
56 }
57
59 if (truth) m_rpcTruthVec.emplace_back(truth);
60 }
61
63 if (truth) m_tgcTruthVec.emplace_back(truth);
64 }
65
67 if (truth) m_cscTruthVec.emplace_back(truth);
68 }
70 if (truth) m_truthVec.emplace_back(truth);
71 }
73 if (truth) m_mdtTruthVec.emplace_back(truth);
74 }
75
77 if (truth) m_rpcTruthVec.emplace_back(truth);
78 }
79
81 if (truth) m_tgcTruthVec.emplace_back(truth);
82 }
83
85 if (truth) m_cscTruthVec.emplace_back(truth);
86 }
87
88} // namespace MuonCalib
Class with truth information of a RPC hit, containing:
Class with truth information of a MDT hit, containing:
Class with truth information of a RPC hit, containing:
Class with truth information of a RPC hit, containing:
std::vector< TruthPtr > TruthVec
typedef of the iterator to the set of MuonCalibTruth s
int numberOfTruth() const
retrieve the number of MuonCalibTruth s in the collection
void addTruth(MuonCalibTruth *truth)
add a MuonCalibMdtTruthHit to the collection
TgcTruthVec m_tgcTruthVec
set of MuonCalibTgcTruthHit s
std::vector< TruthRpcPtr > RpcTruthVec
typedef of the iterator to the set of MuonCalibRpcTruthHit* s
MdtTruthVec & MdtContainer()
Retrieve a reference to the full Mdt container.
void copy(const MuonCalibTruthCollection &other)
std::shared_ptr< const MuonCalibCscTruthHit > TruthCscPtr
typedef of set of MuonCalibCscTruthHit* s
TruthVec m_truthVec
set of MuonCalibTruth s
std::shared_ptr< const MuonCalibTruth > TruthPtr
typedef of a set of MuonCalibTruth* s
std::vector< TruthMdtPtr > MdtTruthVec
typedef of the iterator to the set of MuonCalibMdtTruthHit* s
TruthVec & TruthContainer()
Retrieve a reference to the full truth container.
std::shared_ptr< const MuonCalibTgcTruthHit > TruthTgcPtr
typedef of set of MuonCalibTgcTruthHit* s
RpcTruthVec & RpcContainer()
Retrieve a refernece to the full Rpc container.
MdtTruthVec m_mdtTruthVec
set of MuonCalibMdtTruthHit s
MuonCalibTruthCollection & operator=(const MuonCalibTruthCollection &rhs)
assignment operator
TgcTruthVec & TgcContainer()
Retrieve a referece to the full Tgc container.
std::shared_ptr< const MuonCalibRpcTruthHit > TruthRpcPtr
typedef of set of MuonCalibRpcTruthHit* s
CscTruthVec & CscContainer()
Retrieve a reference to the full Csc container.
CscTruthVec m_cscTruthVec
set of MuonCalibCscTruthHit s
MuonCalibTruthCollection()=default
Default constructor.
std::shared_ptr< const MuonCalibMdtTruthHit > TruthMdtPtr
typedef of set of MuonCalibMdtTruthHit* s
RpcTruthVec m_rpcTruthVec
set of MuonCalibRpcTruthHit s
Calib-EDM version of TrackRecord, given at the MuonSpectrometer entrance.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.