ATLAS Offline Software
MuonCalibRawHitCollection.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 #ifndef MuonCalibEventBase_MuonCalibRawHitCollection_h
6 #define MuonCalibEventBase_MuonCalibRawHitCollection_h
7 
8 #include <iostream>
9 #include <memory>
10 #include <vector>
11 
16 
17 namespace MuonCalib {
18 
19  class MuonCalibRawTgcCoin;
20 
43  public:
45  using MdtCalibRawHitPtr = std::shared_ptr<MuonCalibRawMdtHit>;
47  using MuonCalibRawMdtHitVec = std::vector<MdtCalibRawHitPtr>;
48 
50  using RpcCalibRawHitPtr = std::shared_ptr<const MuonCalibRawRpcHit>;
52  using MuonCalibRawRpcHitVec = std::vector<RpcCalibRawHitPtr>;
53 
54  using TgcCalibRawHitPtr = std::shared_ptr<const MuonCalibRawTgcHit>;
56  using MuonCalibRawTgcHitVec = std::vector<TgcCalibRawHitPtr>;
57 
58  using TgcCoinRawPtr = std::shared_ptr<const MuonCalibRawTgcCoin>;
60  using MuonCalibRawTgcCoinVec = std::vector<TgcCoinRawPtr>;
61 
62  using CscCalibRawHitPtr = std::shared_ptr<const MuonCalibRawCscHit>;
64  using MuonCalibRawCscHitVec = std::vector<CscCalibRawHitPtr>;
65 
66  MuonCalibRawHitCollection() = default; //<! default constructor
70 
73  MuonCalibRawTgcHitVec rawTgcHitVec, MuonCalibRawTgcCoinVec rawTgcCoinVec,
74  MuonCalibRawCscHitVec rawCscHitVec);
75 
77  // Mdt containers
78  const MuonCalibRawMdtHitVec& MdtContainer() const;
80 
81  const MuonCalibRawRpcHitVec& RpcContainer() const;
83 
84  const MuonCalibRawTgcHitVec& TgcContainer() const;
86 
87  const MuonCalibRawCscHitVec& CscContainer() const;
89 
92 
94  int numberOfMuonCalibRawMdtHits() const;
96  int numberOfMuonCalibRawRpcHits() const;
98  int numberOfMuonCalibRawTgcHits() const;
100  int numberOfMuonCalibRawTgcCoins() const;
102  int numberOfMuonCalibRawCscHits() const;
103 
106  void addMuonCalibRawHit(const MdtCalibRawHitPtr& rawHit);
107 
110  void addMuonCalibRawHit(const RpcCalibRawHitPtr& rawHit);
111 
114  void addMuonCalibRawHit(const TgcCalibRawHitPtr& rawHit);
115 
118  void addMuonCalibRawHit(const TgcCoinRawPtr& rawHit);
119 
122  void addMuonCalibRawHit(const CscCalibRawHitPtr& rawHit);
123 
124  private:
125  void copy(const MuonCalibRawHitCollection& other);
126 
132  };
133 
134 } // namespace MuonCalib
135 
136 #endif
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawTgcHitVec
std::vector< TgcCalibRawHitPtr > MuonCalibRawTgcHitVec
Definition: MuonCalibRawHitCollection.h:56
MuonCalib::MuonCalibRawHitCollection::MdtContainer
const MuonCalibRawMdtHitVec & MdtContainer() const
Retrieve references to the container themselves.
Definition: MuonCalibRawHitCollection.cxx:27
MuonCalib::MuonCalibRawHitCollection::m_rawTgcHitVec
MuonCalibRawTgcHitVec m_rawTgcHitVec
set of MuonCalibRawTgcHit s
Definition: MuonCalibRawHitCollection.h:129
MuonCalib::MuonCalibRawHitCollection::MdtCalibRawHitPtr
std::shared_ptr< MuonCalibRawMdtHit > MdtCalibRawHitPtr
typedef of a set of MuonCalibRawMdtHit s
Definition: MuonCalibRawHitCollection.h:46
MuonCalibRawCscHit.h
MuonCalib::MuonCalibRawHitCollection::CscCalibRawHitPtr
std::shared_ptr< const MuonCalibRawCscHit > CscCalibRawHitPtr
typedef of a set of MuonCalibRawCscHit s
Definition: MuonCalibRawHitCollection.h:63
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawMdtHitVec
std::vector< MdtCalibRawHitPtr > MuonCalibRawMdtHitVec
typedef of the smart pointer owning the CaliorationRawRpcHit
Definition: MuonCalibRawHitCollection.h:49
MuonCalib::MuonCalibRawCscHit
Definition: MuonCalibRawCscHit.h:29
MuonCalib::MuonCalibRawHitCollection::~MuonCalibRawHitCollection
~MuonCalibRawHitCollection()=default
destructor
MuonCalib::MuonCalibRawHitCollection::RpcCalibRawHitPtr
std::shared_ptr< const MuonCalibRawRpcHit > RpcCalibRawHitPtr
typedef of a set of MuonCalibRawRpcHit s
Definition: MuonCalibRawHitCollection.h:51
MuonCalib::MuonCalibRawHitCollection::m_rawMdtHitVec
MuonCalibRawMdtHitVec m_rawMdtHitVec
set of MuonCalibRawMdtHit s
Definition: MuonCalibRawHitCollection.h:127
MuonCalib::MuonCalibRawMdtHit
Definition: MuonCalibRawMdtHit.h:22
MuonCalib::MuonCalibRawHitCollection::operator=
MuonCalibRawHitCollection & operator=(const MuonCalibRawHitCollection &rhs)
assignment operator
Definition: MuonCalibRawHitCollection.cxx:57
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawCscHits
int numberOfMuonCalibRawCscHits() const
add a MuonCalibRawMdtHit to the collection
Definition: MuonCalibRawHitCollection.cxx:65
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawTgcCoins
int numberOfMuonCalibRawTgcCoins() const
retrieve the number of MuonCalibRawCscHits in the collection
Definition: MuonCalibRawHitCollection.cxx:64
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawRpcHitVec
std::vector< RpcCalibRawHitPtr > MuonCalibRawRpcHitVec
Definition: MuonCalibRawHitCollection.h:52
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawCscHitVec
std::vector< CscCalibRawHitPtr > MuonCalibRawCscHitVec
Definition: MuonCalibRawHitCollection.h:64
MuonCalib::MuonCalibRawHitCollection::copy
void copy(const MuonCalibRawHitCollection &other)
Definition: MuonCalibRawHitCollection.cxx:42
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawRpcHits
int numberOfMuonCalibRawRpcHits() const
retrieve the number of MuonCalibRawTgcHits in the collection
Definition: MuonCalibRawHitCollection.cxx:62
MuonCalib::MuonCalibRawHitCollection::m_rawRpcHitVec
MuonCalibRawRpcHitVec m_rawRpcHitVec
set of MuonCalibRawRpcHit s
Definition: MuonCalibRawHitCollection.h:128
MuonCalib::MuonCalibRawHitCollection::m_rawTgcCoinVec
MuonCalibRawTgcCoinVec m_rawTgcCoinVec
set of MuonCalibRawTgcCoin s
Definition: MuonCalibRawHitCollection.h:130
MuonCalib::MuonCalibRawTgcHit
Definition: MuonCalibRawTgcHit.h:28
MuonCalib::MuonCalibRawRpcHit
Definition: MuonCalibRawRpcHit.h:27
MuonCalib::MuonCalibRawHitCollection::m_rawCscHitVec
MuonCalibRawCscHitVec m_rawCscHitVec
set of MuonCalibRawCscHit s
Definition: MuonCalibRawHitCollection.h:131
MuonCalib::MuonCalibRawHitCollection
Definition: MuonCalibRawHitCollection.h:42
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawTgcCoinVec
std::vector< TgcCoinRawPtr > MuonCalibRawTgcCoinVec
Definition: MuonCalibRawHitCollection.h:60
MuonCalib::MuonCalibRawHitCollection::TgcCoinRawPtr
std::shared_ptr< const MuonCalibRawTgcCoin > TgcCoinRawPtr
typedef of a set of MuonCalibRawTgcHit s
Definition: MuonCalibRawHitCollection.h:59
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawMdtHits
int numberOfMuonCalibRawMdtHits() const
retrieve the number of MuonCalibRawRpcHits in the collection
Definition: MuonCalibRawHitCollection.cxx:61
MuonCalib::MuonCalibRawHitCollection::CscContainer
const MuonCalibRawCscHitVec & CscContainer() const
Definition: MuonCalibRawHitCollection.cxx:36
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonCalibRawHitCollection::TgcCoinContainer
const MuonCalibRawTgcCoinVec & TgcCoinContainer() const
Definition: MuonCalibRawHitCollection.cxx:39
MuonCalibRawTgcHit.h
MuonCalib::MuonCalibRawHitCollection::TgcContainer
const MuonCalibRawTgcHitVec & TgcContainer() const
Definition: MuonCalibRawHitCollection.cxx:33
MuonCalibRawRpcHit.h
MuonCalibRawMdtHit.h
MuonCalib::MuonCalibRawHitCollection::RpcContainer
const MuonCalibRawRpcHitVec & RpcContainer() const
Definition: MuonCalibRawHitCollection.cxx:30
MuonCalib::MuonCalibRawTgcCoin
Definition: MuonCalibRawTgcCoin.h:28
MuonCalib::MuonCalibRawHitCollection::MuonCalibRawHitCollection
MuonCalibRawHitCollection()=default
MuonCalib::MuonCalibRawHitCollection::TgcCalibRawHitPtr
std::shared_ptr< const MuonCalibRawTgcHit > TgcCalibRawHitPtr
typedef of a set of MuonCalibRawTgcHit s
Definition: MuonCalibRawHitCollection.h:55
MuonCalib::MuonCalibRawHitCollection::addMuonCalibRawHit
void addMuonCalibRawHit(MuonCalibRawMdtHit *rawHit)
Definition: MuonCalibRawHitCollection.cxx:67
MuonCalib::MuonCalibRawHitCollection::numberOfMuonCalibRawTgcHits
int numberOfMuonCalibRawTgcHits() const
retrieve the number of MuonCalibRawTgcHits in the collection
Definition: MuonCalibRawHitCollection.cxx:63