ATLAS Offline Software
MuonCalibTruthCollection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //*********************************************************//
6 // Class to store MuonCalibTruth classes in //
7 //*********************************************************//
8 
9 #ifndef MuonCalibTruthCollection_h
10 #define MuonCalibTruthCollection_h
11 
12 #include <iostream>
13 #include <memory>
14 #include <vector>
15 
17 #include "GaudiKernel/MsgStream.h"
23 
24 namespace MuonCalib {
25 
39  public:
40  using TruthPtr = std::shared_ptr<const MuonCalibTruth>;
42  using TruthVec = std::vector<TruthPtr>;
44 
45  using TruthMdtPtr = std::shared_ptr<const MuonCalibMdtTruthHit>;
47  using MdtTruthVec = std::vector<TruthMdtPtr>;
49 
50  using TruthRpcPtr = std::shared_ptr<const MuonCalibRpcTruthHit>;
52  using RpcTruthVec = std::vector<TruthRpcPtr>;
54  using TruthTgcPtr = std::shared_ptr<const MuonCalibTgcTruthHit>;
56  using TgcTruthVec = std::vector<TruthTgcPtr>;
57 
58  using TruthCscPtr = std::shared_ptr<const MuonCalibCscTruthHit>;
60  using CscTruthVec = std::vector<TruthCscPtr>;
61 
64  m_truthVec(std::move(truthVec)){};
66  MuonCalibTruthCollection(const MuonCalibTruthCollection& truthCollection);
67 
69 
70  int numberOfTruth() const;
71 
73  void addTruth(MuonCalibTruth* truth);
75  void addTruth(MuonCalibMdtTruthHit* mdtTruth);
77  void addTruth(MuonCalibRpcTruthHit* rpcTruth);
79  void addTruth(MuonCalibTgcTruthHit* tgcTruth);
81  void addTruth(MuonCalibCscTruthHit* cscTruth);
82 
85  void addTruth(const TruthPtr& truth);
87  void addTruth(const TruthMdtPtr& mdtTruth);
89  void addTruth(const TruthRpcPtr& rpcTruth);
91  void addTruth(const TruthTgcPtr& tgcTruth);
93  void addTruth(const TruthCscPtr& cscTruth);
94 
97  const TruthVec& TruthContainer() const;
98 
101  const MdtTruthVec& MdtContainer() const;
102 
105  const RpcTruthVec& RpcContainer() const;
106 
109  const CscTruthVec& CscContainer() const;
110 
113  const TgcTruthVec& TgcContainer() const;
114 
115  private:
121  void copy(const MuonCalibTruthCollection& other);
122  };
123 
124 } // end namespace MuonCalib
125 
126 #endif
MuonCalib::MuonCalibTruthCollection::m_truthVec
TruthVec m_truthVec
set of MuonCalibTruth s
Definition: MuonCalibTruthCollection.h:116
MuonCalibCscTruthHit.h
getMessageSvc.h
singleton-like access to IMessageSvc via open function and helper
MuonCalib::MuonCalibTruthCollection::TruthContainer
TruthVec & TruthContainer()
Retrieve a reference to the full truth container.
Definition: MuonCalibTruthCollection.cxx:26
MuonCalib::MuonCalibTruthCollection
Definition: MuonCalibTruthCollection.h:38
MuonCalib::MuonCalibTruthCollection::numberOfTruth
int numberOfTruth() const
retrieve the number of MuonCalibTruth s in the collection
Definition: MuonCalibTruthCollection.cxx:49
MuonCalib::MuonCalibTruthCollection::TgcContainer
TgcTruthVec & TgcContainer()
Retrieve a referece to the full Tgc container.
Definition: MuonCalibTruthCollection.cxx:42
MuonCalib::MuonCalibTruthCollection::TruthRpcPtr
std::shared_ptr< const MuonCalibRpcTruthHit > TruthRpcPtr
typedef of set of MuonCalibRpcTruthHit* s
Definition: MuonCalibTruthCollection.h:51
MuonCalib::MuonCalibTruthCollection::MdtContainer
MdtTruthVec & MdtContainer()
Retrieve a reference to the full Mdt container.
Definition: MuonCalibTruthCollection.cxx:30
MuonCalib::MuonCalibTruthCollection::m_cscTruthVec
CscTruthVec m_cscTruthVec
set of MuonCalibCscTruthHit s
Definition: MuonCalibTruthCollection.h:120
MuonCalib::MuonCalibTruthCollection::~MuonCalibTruthCollection
~MuonCalibTruthCollection()=default
constructor initializing the set of MuonCalibTruth s
MuonCalib::MuonCalibTruthCollection::TgcTruthVec
std::vector< TruthTgcPtr > TgcTruthVec
Definition: MuonCalibTruthCollection.h:56
MuonCalibMdtTruthHit.h
MuonCalib::MuonCalibTruthCollection::TruthVec
std::vector< TruthPtr > TruthVec
typedef of the iterator to the set of MuonCalibTruth s
Definition: MuonCalibTruthCollection.h:43
MuonCalib::MuonCalibTruthCollection::copy
void copy(const MuonCalibTruthCollection &other)
Definition: MuonCalibTruthCollection.cxx:12
MuonCalib::MuonCalibRpcTruthHit
Definition: MuonCalibRpcTruthHit.h:24
MuonCalib::MuonCalibTruthCollection::TruthTgcPtr
std::shared_ptr< const MuonCalibTgcTruthHit > TruthTgcPtr
typedef of set of MuonCalibTgcTruthHit* s
Definition: MuonCalibTruthCollection.h:55
MuonCalib::MuonCalibTruthCollection::RpcTruthVec
std::vector< TruthRpcPtr > RpcTruthVec
typedef of the iterator to the set of MuonCalibRpcTruthHit* s
Definition: MuonCalibTruthCollection.h:53
MuonCalib::MuonCalibTgcTruthHit
Definition: MuonCalibTgcTruthHit.h:24
MuonCalib::MuonCalibTruthCollection::operator=
MuonCalibTruthCollection & operator=(const MuonCalibTruthCollection &rhs)
assignment operator
Definition: MuonCalibTruthCollection.cxx:45
MuonCalibRpcTruthHit.h
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibTruthCollection::TruthCscPtr
std::shared_ptr< const MuonCalibCscTruthHit > TruthCscPtr
typedef of set of MuonCalibCscTruthHit* s
Definition: MuonCalibTruthCollection.h:59
MuonCalib::MuonCalibTruthCollection::RpcContainer
RpcTruthVec & RpcContainer()
Retrieve a refernece to the full Rpc container.
Definition: MuonCalibTruthCollection.cxx:34
MuonCalib::MuonCalibTruthCollection::CscTruthVec
std::vector< TruthCscPtr > CscTruthVec
Definition: MuonCalibTruthCollection.h:60
MuonCalib::MuonCalibTruthCollection::m_rpcTruthVec
RpcTruthVec m_rpcTruthVec
set of MuonCalibRpcTruthHit s
Definition: MuonCalibTruthCollection.h:118
MuonCalib::MuonCalibMdtTruthHit
Definition: MuonCalibMdtTruthHit.h:21
MuonCalib::MuonCalibTruthCollection::addTruth
void addTruth(MuonCalibTruth *truth)
add a MuonCalibMdtTruthHit to the collection
Definition: MuonCalibTruthCollection.cxx:51
MuonCalibTruth.h
MuonCalib::MuonCalibTruthCollection::CscContainer
CscTruthVec & CscContainer()
Retrieve a reference to the full Csc container.
Definition: MuonCalibTruthCollection.cxx:38
MuonCalib::MuonCalibTruthCollection::TruthMdtPtr
std::shared_ptr< const MuonCalibMdtTruthHit > TruthMdtPtr
typedef of set of MuonCalibMdtTruthHit* s
Definition: MuonCalibTruthCollection.h:46
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonCalibTruthCollection::MuonCalibTruthCollection
MuonCalibTruthCollection(TruthVec truthVec)
Definition: MuonCalibTruthCollection.h:63
MuonCalib::MuonCalibTruthCollection::TruthPtr
std::shared_ptr< const MuonCalibTruth > TruthPtr
typedef of a set of MuonCalibTruth* s
Definition: MuonCalibTruthCollection.h:41
MuonCalib::MuonCalibTruth
Definition: MuonCalibTruth.h:24
MuonCalib::MuonCalibTruthCollection::MdtTruthVec
std::vector< TruthMdtPtr > MdtTruthVec
typedef of the iterator to the set of MuonCalibMdtTruthHit* s
Definition: MuonCalibTruthCollection.h:48
MuonCalib::MuonCalibTruthCollection::MuonCalibTruthCollection
MuonCalibTruthCollection()=default
Default constructor.
MuonCalib::MuonCalibTruthCollection::m_mdtTruthVec
MdtTruthVec m_mdtTruthVec
set of MuonCalibMdtTruthHit s
Definition: MuonCalibTruthCollection.h:117
MuonCalib::MuonCalibCscTruthHit
Definition: MuonCalibCscTruthHit.h:24
MuonCalibTgcTruthHit.h
MuonCalib::MuonCalibTruthCollection::m_tgcTruthVec
TgcTruthVec m_tgcTruthVec
set of MuonCalibTgcTruthHit s
Definition: MuonCalibTruthCollection.h:119