ATLAS Offline Software
Loading...
Searching...
No Matches
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
22namespace MuonCalib {
23
24 class MuonCalibPattern;
28
47
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::MuonCalibEventInfo: a class which stores the following information of an event:
void setMuonCalibTruthCollection(std::shared_ptr< const MuonCalibTruthCollection > MCTColl)
set the MuonCalibTruthCollection
MuonCalibEvent(const MuonCalibEvent &event)=default
Copy constructor.
const MuonCalibTruthCollection * calibTruthCollection() const
retrieve the MuonCalibEventInfo.
void setMuonCalibTriggerTimeInfo(std::shared_ptr< const MuonCalibTriggerTimeInfo > triggerTimeInfo)
set the MuonCalibTriggerTimeInfo
std::shared_ptr< const RpcSectorLogicContainer > m_rpcSlLogicContainer
RpcSectorLogicContainer.
const MuonCalibTriggerTimeInfo * triggerTimeInfo() const
std::shared_ptr< const MuonCalibRawTriggerHitCollection > m_rawTriggerColl
raw hits of the MuonCalibEvent
virtual ~MuonCalibEvent()
Destructor.
void copy(const MuonCalibEvent &other)
void setMuonCalibRawHitCollection(std::shared_ptr< const MuonCalibRawHitCollection > RHColl)
set the MuonCalibRawHitCollection.
const MuonCalibRawHitCollection * rawHitCollection() const
retrieve pointer to MuonCalibRawHitCollection
MuonCalibEvent & operator=(const MuonCalibEvent &rhs)=default
Assignment operator.
std::shared_ptr< MuonCalibEventInfo > m_eventInfo
MuonCalibEventInfo of the MuonCalibEvent.
int numberOfPatterns() const
retrieve the number of MuonCalibPatterns in the event
void setMuonCalibEventInfo(std::shared_ptr< MuonCalibEventInfo > eventInfo)
set the MuonCalibEventInfo
MCPVec m_patternVec
A set of MuonCalibPattern s owned by the MuonCalibEvent.
std::shared_ptr< const MuonCalibTriggerTimeInfo > m_triggerTimeInfo
int numberOfHits() const
retrieve the number of CalibHits in the event (sum of all technologies).
void setMuonCalibPatternVec(MuonCalibEvent::MCPVec mcpvec)
set the MuonCalibPatternVec
void setMuonCalibRawTriggerHitCollection(std::shared_ptr< const MuonCalibRawTriggerHitCollection > THColl)
set the MuonCalibRawTriggerHitCollection.
const RpcSectorLogicContainer * rpcSectorLogicContainer() const
const MuonCalibEventInfo & eventInfo() const
MuonCalibEvent()=default
Default constructor.
int numberOfSegments() const
retrieve the number of MuonCalibSegments in the event
std::vector< PatternPtr > MCPVec
typedef to std::vector<MuonCalibPattern*>
std::shared_ptr< const MuonCalibRawHitCollection > m_rawColl
raw hits of the MuonCalibEvent
void setRpcSectorLogicContainer(std::shared_ptr< const RpcSectorLogicContainer > rpcSlContainer)
set the RpcSectorLogicContainer
MCPVec & pattern()
Retrieving the MuonCalibPattern container.
std::shared_ptr< MuonCalibPattern > PatternPtr
const MuonCalibRawTriggerHitCollection * rawTriggerHitCollection() const
retrieve the pointer to the MuonCalibTruthCollection.
std::shared_ptr< const MuonCalibTruthCollection > m_truthColl
truth collection of the MuonCalibEvent
Class to store the information belonging to a global pattern in the muon system.
A MuonCalibRawHitcollections is a container class within the Calibration EDM holding the MuonCalibXxx...
MuonCalibTruthCollection is a Calibration EDM container class containing the following truth classes:
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.