ATLAS Offline Software
MuonCalibEvent.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //*********************************************************//
6 // Class to store MuonCalibPatterns in of the same event //
7 //*********************************************************//
8 
9 #ifndef MUONCALIBEVTBASE_MuonCalibEvent_h
10 #define MUONCALIBEVTBASE_MuonCalibEvent_h
11 
12 #include <iostream>
13 #include <string>
14 #include <vector>
15 
21 
22 namespace MuonCalib {
23 
24  class MuonCalibPattern;
25  class MuonCalibRawHitCollection;
26  class MuonCalibRawTriggerHitCollection;
27  class MuonCalibTruthCollection;
28 
49  public:
50  using PatternPtr = std::shared_ptr<MuonCalibPattern>;
51  typedef std::vector<PatternPtr> MCPVec;
52 
53  MuonCalibEvent() = default;
54  MuonCalibEvent(const MuonCalibEvent &event) = default;
55  MuonCalibEvent &operator=(const MuonCalibEvent &rhs) = default;
56  virtual ~MuonCalibEvent();
57 
58  MuonCalibEvent(MCPVec patvec); //<! Constructor initializing its MuonCalibPatterns.
60  MCPVec patvec,
61  std::shared_ptr<const MuonCalibRawHitCollection> RHColl);
62  MuonCalibEvent(MCPVec patvec, std::shared_ptr<MuonCalibEventInfo> eventInfo,
63  std::shared_ptr<const MuonCalibRawHitCollection>
64  Coll);
65 
67  MCPVec &pattern();
68  const MCPVec &pattern() const;
69 
70  int numberOfPatterns() const;
71  int numberOfSegments() const;
72  int numberOfHits() const;
80  const MuonCalibEventInfo &eventInfo() const;
83 
85  std::shared_ptr<const MuonCalibTriggerTimeInfo> triggerTimeInfo);
87  void setMuonCalibRawHitCollection(std::shared_ptr<const MuonCalibRawHitCollection> RHColl);
89  std::shared_ptr<const MuonCalibRawTriggerHitCollection> THColl);
90  void setMuonCalibTruthCollection(std::shared_ptr<const MuonCalibTruthCollection> MCTColl);
91  void setMuonCalibEventInfo(std::shared_ptr<MuonCalibEventInfo> eventInfo);
93  std::shared_ptr<const RpcSectorLogicContainer> rpcSlContainer);
94 
95  private:
96  void copy(const MuonCalibEvent &other);
97 
99  std::shared_ptr<MuonCalibEventInfo> m_eventInfo;
100  std::shared_ptr<const MuonCalibTriggerTimeInfo> m_triggerTimeInfo;
101  std::shared_ptr<const MuonCalibRawHitCollection> m_rawColl;
102  std::shared_ptr<const MuonCalibRawTriggerHitCollection> m_rawTriggerColl;
103  std::shared_ptr<const MuonCalibTruthCollection> m_truthColl;
104  std::shared_ptr<const RpcSectorLogicContainer> m_rpcSlLogicContainer;
105  };
106 
107 } // namespace MuonCalib
108 
109 #endif // MuonCalibEvent_h
MuonCalib::MuonCalibEvent::copy
void copy(const MuonCalibEvent &other)
MuonCalib::MuonCalibEvent::m_patternVec
MCPVec m_patternVec
A set of MuonCalibPattern s owned by the MuonCalibEvent.
Definition: MuonCalibEvent.h:98
MuonCalibEventInfo.h
MuonCalib::MuonCalibEvent::rawTriggerHitCollection
const MuonCalibRawTriggerHitCollection * rawTriggerHitCollection() const
retrieve the pointer to the MuonCalibTruthCollection.
Definition: MuonCalibEvent.cxx:32
RpcSectorLogicContainer.h
MuonCalib::MuonCalibEvent
Definition: MuonCalibEvent.h:48
MuonCalib::MuonCalibEvent::eventInfo
const MuonCalibEventInfo & eventInfo() const
Definition: MuonCalibEvent.cxx:34
MuonCalib::MuonCalibEvent::setRpcSectorLogicContainer
void setRpcSectorLogicContainer(std::shared_ptr< const RpcSectorLogicContainer > rpcSlContainer)
set the RpcSectorLogicContainer
Definition: MuonCalibEvent.cxx:39
MuonCalib::MuonCalibTruthCollection
Definition: MuonCalibTruthCollection.h:38
MuonCalib::MuonCalibEvent::setMuonCalibRawHitCollection
void setMuonCalibRawHitCollection(std::shared_ptr< const MuonCalibRawHitCollection > RHColl)
set the MuonCalibRawHitCollection.
Definition: MuonCalibEvent.cxx:72
MuonCalib::MuonCalibEvent::m_rawColl
std::shared_ptr< const MuonCalibRawHitCollection > m_rawColl
raw hits of the MuonCalibEvent
Definition: MuonCalibEvent.h:101
MuonCalib::MuonCalibEvent::m_eventInfo
std::shared_ptr< MuonCalibEventInfo > m_eventInfo
MuonCalibEventInfo of the MuonCalibEvent.
Definition: MuonCalibEvent.h:99
MuonCalib::MuonCalibEvent::setMuonCalibTruthCollection
void setMuonCalibTruthCollection(std::shared_ptr< const MuonCalibTruthCollection > MCTColl)
set the MuonCalibTruthCollection
Definition: MuonCalibEvent.cxx:69
MuonCalib::MuonCalibEvent::m_truthColl
std::shared_ptr< const MuonCalibTruthCollection > m_truthColl
truth collection of the MuonCalibEvent
Definition: MuonCalibEvent.h:103
MuonCalib::MuonCalibEvent::triggerTimeInfo
const MuonCalibTriggerTimeInfo * triggerTimeInfo() const
Definition: MuonCalibEvent.cxx:36
MuonCalib::MuonCalibEvent::MCPVec
std::vector< PatternPtr > MCPVec
typedef to std::vector<MuonCalibPattern*>
Definition: MuonCalibEvent.h:51
MuonCalib::MuonCalibRawTriggerHitCollection
Definition: MuonCalibRawTriggerHitCollection.h:27
MuonCalibTriggerTimeInfo.h
MuonCalib::MuonCalibEvent::numberOfHits
int numberOfHits() const
retrieve the number of CalibHits in the event (sum of all technologies).
Definition: MuonCalibEvent.cxx:52
MuonCalib::MuonCalibEvent::calibTruthCollection
const MuonCalibTruthCollection * calibTruthCollection() const
retrieve the MuonCalibEventInfo.
Definition: MuonCalibEvent.cxx:33
MuonCalibRawRpcTriggerHit.h
MuonCalib::MuonCalibEvent::MuonCalibEvent
MuonCalibEvent()=default
Default constructor.
MuonCalib::MuonCalibEvent::m_triggerTimeInfo
std::shared_ptr< const MuonCalibTriggerTimeInfo > m_triggerTimeInfo
Definition: MuonCalibEvent.h:100
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MuonCalib::MuonCalibEvent::setMuonCalibTriggerTimeInfo
void setMuonCalibTriggerTimeInfo(std::shared_ptr< const MuonCalibTriggerTimeInfo > triggerTimeInfo)
set the MuonCalibTriggerTimeInfo
Definition: MuonCalibEvent.cxx:66
MuonCalib::MuonCalibEvent::m_rawTriggerColl
std::shared_ptr< const MuonCalibRawTriggerHitCollection > m_rawTriggerColl
raw hits of the MuonCalibEvent
Definition: MuonCalibEvent.h:102
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
RpcSectorLogicContainer
Definition: RpcSectorLogicContainer.h:20
MuonCalib::MuonCalibEvent::operator=
MuonCalibEvent & operator=(const MuonCalibEvent &rhs)=default
Assignment operator.
MuonCalib::MuonCalibEvent::rawHitCollection
const MuonCalibRawHitCollection * rawHitCollection() const
retrieve pointer to MuonCalibRawHitCollection
Definition: MuonCalibEvent.cxx:31
MuonCalibRawRpcCoin.h
MuonCalib::MuonCalibEvent::rpcSectorLogicContainer
const RpcSectorLogicContainer * rpcSectorLogicContainer() const
Definition: MuonCalibEvent.cxx:35
MuonCalib::MuonCalibRawHitCollection
Definition: MuonCalibRawHitCollection.h:42
MuonCalib::MuonCalibEvent::numberOfSegments
int numberOfSegments() const
retrieve the number of MuonCalibSegments in the event
Definition: MuonCalibEvent.cxx:45
MuonCalib::MuonCalibEvent::~MuonCalibEvent
virtual ~MuonCalibEvent()
Destructor.
MuonCalib::MuonCalibEvent::MuonCalibEvent
MuonCalibEvent(const MuonCalibEvent &event)=default
Copy constructor.
MuonCalib::MuonCalibEvent::setMuonCalibPatternVec
void setMuonCalibPatternVec(MuonCalibEvent::MCPVec mcpvec)
set the MuonCalibPatternVec
Definition: MuonCalibEvent.cxx:78
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonCalibEventInfo
Definition: MuonCalibEventInfo.h:32
MuonCalib::MuonCalibEvent::setMuonCalibEventInfo
void setMuonCalibEventInfo(std::shared_ptr< MuonCalibEventInfo > eventInfo)
set the MuonCalibEventInfo
Definition: MuonCalibEvent.cxx:38
MuonCalib::MuonCalibEvent::setMuonCalibRawTriggerHitCollection
void setMuonCalibRawTriggerHitCollection(std::shared_ptr< const MuonCalibRawTriggerHitCollection > THColl)
set the MuonCalibRawTriggerHitCollection.
Definition: MuonCalibEvent.cxx:75
MuonCalib::MuonCalibEvent::m_rpcSlLogicContainer
std::shared_ptr< const RpcSectorLogicContainer > m_rpcSlLogicContainer
RpcSectorLogicContainer.
Definition: MuonCalibEvent.h:104
MuonCalib::MuonCalibEvent::numberOfPatterns
int numberOfPatterns() const
retrieve the number of MuonCalibPatterns in the event
Definition: MuonCalibEvent.cxx:43
MuonCalib::MuonCalibEvent::pattern
MCPVec & pattern()
Retrieving the MuonCalibPattern container.
Definition: MuonCalibEvent.cxx:28
MuonCalib::MuonCalibEvent::PatternPtr
std::shared_ptr< MuonCalibPattern > PatternPtr
Definition: MuonCalibEvent.h:50
MuonCalib::MuonCalibTriggerTimeInfo
Definition: MuonCalibTriggerTimeInfo.h:14