ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalib::MuonCalibEvent Class Reference

Container class storing all entries of the CalibrationNtuple. More...

#include <MuonCalibEvent.h>

Inheritance diagram for MuonCalib::MuonCalibEvent:
Collaboration diagram for MuonCalib::MuonCalibEvent:

Public Types

using PatternPtr = std::shared_ptr<MuonCalibPattern>
typedef std::vector< PatternPtrMCPVec
 typedef to std::vector<MuonCalibPattern*>

Public Member Functions

 MuonCalibEvent ()=default
 Default constructor.
 MuonCalibEvent (const MuonCalibEvent &event)=default
 Copy constructor.
MuonCalibEventoperator= (const MuonCalibEvent &rhs)=default
 Assignment operator.
virtual ~MuonCalibEvent ()
 Destructor.
 MuonCalibEvent (MCPVec patvec)
 MuonCalibEvent (MCPVec patvec, std::shared_ptr< const MuonCalibRawHitCollection > RHColl)
 Constructor initializing its MuonCalibPatterns and raw hits.
 MuonCalibEvent (MCPVec patvec, std::shared_ptr< MuonCalibEventInfo > eventInfo, std::shared_ptr< const MuonCalibRawHitCollection > Coll)
 Constructor initializing its MuonCalibPattern, raw hits and event information.
MCPVecpattern ()
 Retrieving the MuonCalibPattern container.
const MCPVecpattern () const
int numberOfPatterns () const
 retrieve the number of MuonCalibPatterns in the event
int numberOfSegments () const
 retrieve the number of MuonCalibSegments in the event
int numberOfHits () const
 retrieve the number of CalibHits in the event (sum of all technologies).
const MuonCalibRawHitCollectionrawHitCollection () const
 retrieve pointer to MuonCalibRawHitCollection
const MuonCalibRawTriggerHitCollectionrawTriggerHitCollection () const
 retrieve the pointer to the MuonCalibTruthCollection.
const MuonCalibTruthCollectioncalibTruthCollection () const
 retrieve the MuonCalibEventInfo.
const MuonCalibEventInfoeventInfo () const
const RpcSectorLogicContainerrpcSectorLogicContainer () const
const MuonCalibTriggerTimeInfotriggerTimeInfo () const
void setMuonCalibTriggerTimeInfo (std::shared_ptr< const MuonCalibTriggerTimeInfo > triggerTimeInfo)
 set the MuonCalibTriggerTimeInfo
void setMuonCalibPatternVec (MuonCalibEvent::MCPVec mcpvec)
 set the MuonCalibPatternVec
void setMuonCalibRawHitCollection (std::shared_ptr< const MuonCalibRawHitCollection > RHColl)
 set the MuonCalibRawHitCollection.
void setMuonCalibRawTriggerHitCollection (std::shared_ptr< const MuonCalibRawTriggerHitCollection > THColl)
 set the MuonCalibRawTriggerHitCollection.
void setMuonCalibTruthCollection (std::shared_ptr< const MuonCalibTruthCollection > MCTColl)
 set the MuonCalibTruthCollection
void setMuonCalibEventInfo (std::shared_ptr< MuonCalibEventInfo > eventInfo)
 set the MuonCalibEventInfo
void setRpcSectorLogicContainer (std::shared_ptr< const RpcSectorLogicContainer > rpcSlContainer)
 set the RpcSectorLogicContainer

Private Member Functions

void copy (const MuonCalibEvent &other)

Private Attributes

MCPVec m_patternVec
 A set of MuonCalibPattern s owned by the MuonCalibEvent.
std::shared_ptr< MuonCalibEventInfom_eventInfo
 MuonCalibEventInfo of the MuonCalibEvent.
std::shared_ptr< const MuonCalibTriggerTimeInfom_triggerTimeInfo
std::shared_ptr< const MuonCalibRawHitCollectionm_rawColl
 raw hits of the MuonCalibEvent
std::shared_ptr< const MuonCalibRawTriggerHitCollectionm_rawTriggerColl
 raw hits of the MuonCalibEvent
std::shared_ptr< const MuonCalibTruthCollectionm_truthColl
 truth collection of the MuonCalibEvent
std::shared_ptr< const RpcSectorLogicContainerm_rpcSlLogicContainer
 RpcSectorLogicContainer.

Detailed Description

Container class storing all entries of the CalibrationNtuple.

It contains the following:

  • MuonCalibEventInfo: run/event number, a tag holding information about type of reconstruction performed
  • MuonCalibTruthCollection: This truth collection is the CalibrationEDM version of a Truth Track and SDO's from the several technologies
  • MuonCalibRawHitCollection: CalibrationEDM hits collected from PrepRawData objects. These can be assigned to a segment (see the 'occupancy' variable).
  • MuonCalibPattern: Class to store the information belonging to a global pattern in the muon system. It contains all information needed to calibrate the different technologies in the muon system.

Definition at line 48 of file MuonCalibEvent.h.

Member Typedef Documentation

◆ MCPVec

typedef to std::vector<MuonCalibPattern*>

Definition at line 51 of file MuonCalibEvent.h.

◆ PatternPtr

Definition at line 50 of file MuonCalibEvent.h.

Constructor & Destructor Documentation

◆ MuonCalibEvent() [1/5]

MuonCalib::MuonCalibEvent::MuonCalibEvent ( )
default

Default constructor.

◆ MuonCalibEvent() [2/5]

MuonCalib::MuonCalibEvent::MuonCalibEvent ( const MuonCalibEvent & event)
default

Copy constructor.

◆ ~MuonCalibEvent()

MuonCalib::MuonCalibEvent::~MuonCalibEvent ( )
virtualdefault

Destructor.

◆ MuonCalibEvent() [3/5]

MuonCalib::MuonCalibEvent::MuonCalibEvent ( MuonCalibEvent::MCPVec patvec)

Definition at line 19 of file MuonCalibEvent.cxx.

19: m_patternVec{std::move(patvec)} {}
MCPVec m_patternVec
A set of MuonCalibPattern s owned by the MuonCalibEvent.

◆ MuonCalibEvent() [4/5]

MuonCalib::MuonCalibEvent::MuonCalibEvent ( MuonCalibEvent::MCPVec patvec,
std::shared_ptr< const MuonCalibRawHitCollection > RHColl )

Constructor initializing its MuonCalibPatterns and raw hits.

Definition at line 21 of file MuonCalibEvent.cxx.

21 :
22 m_patternVec{std::move(patvec)}, m_rawColl{std::move(Coll)} {}
std::shared_ptr< const MuonCalibRawHitCollection > m_rawColl
raw hits of the MuonCalibEvent

◆ MuonCalibEvent() [5/5]

MuonCalib::MuonCalibEvent::MuonCalibEvent ( MuonCalibEvent::MCPVec patvec,
std::shared_ptr< MuonCalibEventInfo > eventInfo,
std::shared_ptr< const MuonCalibRawHitCollection > Coll )

Constructor initializing its MuonCalibPattern, raw hits and event information.

Definition at line 24 of file MuonCalibEvent.cxx.

25 :
26 m_patternVec{std::move(patvec)}, m_eventInfo(std::move(eventInfo)), m_rawColl(std::move(Coll)) {}
std::shared_ptr< MuonCalibEventInfo > m_eventInfo
MuonCalibEventInfo of the MuonCalibEvent.
const MuonCalibEventInfo & eventInfo() const

Member Function Documentation

◆ calibTruthCollection()

const MuonCalibTruthCollection * MuonCalib::MuonCalibEvent::calibTruthCollection ( ) const

retrieve the MuonCalibEventInfo.

Definition at line 33 of file MuonCalibEvent.cxx.

33{ return m_truthColl.get(); }
std::shared_ptr< const MuonCalibTruthCollection > m_truthColl
truth collection of the MuonCalibEvent

◆ copy()

void MuonCalib::MuonCalibEvent::copy ( const MuonCalibEvent & other)
private

◆ eventInfo()

const MuonCalibEventInfo & MuonCalib::MuonCalibEvent::eventInfo ( ) const

Definition at line 34 of file MuonCalibEvent.cxx.

34{ return *m_eventInfo; }

◆ numberOfHits()

int MuonCalib::MuonCalibEvent::numberOfHits ( ) const

retrieve the number of CalibHits in the event (sum of all technologies).

retrieve pointer to MuonCalibRawHitCollection

Definition at line 52 of file MuonCalibEvent.cxx.

52 {
53 int hits = 0;
54 for (const PatternPtr &pat : pattern()) {
55 hits += pat->nmdtHits() % 1000;
56 hits += (pat->nmdtHits() - (pat->nmdtHits() % 1000)) / 1000;
57 hits += pat->nrpcHits() % 1000;
58 hits += (pat->nrpcHits() - (pat->nrpcHits() % 1000)) / 1000;
59 hits += pat->ntgcHits() % 1000;
60 hits += (pat->ntgcHits() - (pat->ntgcHits() % 1000)) / 1000;
61 hits += pat->ncscHits() % 1000;
62 hits += (pat->ncscHits() - (pat->ncscHits() % 1000)) / 1000;
63 }
64 return hits;
65 }
MCPVec & pattern()
Retrieving the MuonCalibPattern container.
std::shared_ptr< MuonCalibPattern > PatternPtr

◆ numberOfPatterns()

int MuonCalib::MuonCalibEvent::numberOfPatterns ( ) const

retrieve the number of MuonCalibPatterns in the event

Definition at line 43 of file MuonCalibEvent.cxx.

43{ return m_patternVec.size(); }

◆ numberOfSegments()

int MuonCalib::MuonCalibEvent::numberOfSegments ( ) const

retrieve the number of MuonCalibSegments in the event

Definition at line 45 of file MuonCalibEvent.cxx.

45 {
46 int segs = 0;
47 for (const PatternPtr &pat : pattern()) segs += pat->muonSegments();
48
49 return segs;
50 }

◆ operator=()

MuonCalibEvent & MuonCalib::MuonCalibEvent::operator= ( const MuonCalibEvent & rhs)
default

Assignment operator.

◆ pattern() [1/2]

MuonCalibEvent::MCPVec & MuonCalib::MuonCalibEvent::pattern ( )

Retrieving the MuonCalibPattern container.

Definition at line 28 of file MuonCalibEvent.cxx.

28{ return m_patternVec; }

◆ pattern() [2/2]

const MuonCalibEvent::MCPVec & MuonCalib::MuonCalibEvent::pattern ( ) const

Definition at line 29 of file MuonCalibEvent.cxx.

29{ return m_patternVec; }

◆ rawHitCollection()

const MuonCalibRawHitCollection * MuonCalib::MuonCalibEvent::rawHitCollection ( ) const

retrieve pointer to MuonCalibRawHitCollection

Definition at line 31 of file MuonCalibEvent.cxx.

31{ return m_rawColl.get(); }

◆ rawTriggerHitCollection()

const MuonCalibRawTriggerHitCollection * MuonCalib::MuonCalibEvent::rawTriggerHitCollection ( ) const

retrieve the pointer to the MuonCalibTruthCollection.

Definition at line 32 of file MuonCalibEvent.cxx.

32{ return m_rawTriggerColl.get(); }
std::shared_ptr< const MuonCalibRawTriggerHitCollection > m_rawTriggerColl
raw hits of the MuonCalibEvent

◆ rpcSectorLogicContainer()

const RpcSectorLogicContainer * MuonCalib::MuonCalibEvent::rpcSectorLogicContainer ( ) const

Definition at line 35 of file MuonCalibEvent.cxx.

35{ return m_rpcSlLogicContainer.get(); }
std::shared_ptr< const RpcSectorLogicContainer > m_rpcSlLogicContainer
RpcSectorLogicContainer.

◆ setMuonCalibEventInfo()

void MuonCalib::MuonCalibEvent::setMuonCalibEventInfo ( std::shared_ptr< MuonCalibEventInfo > eventInfo)

set the MuonCalibEventInfo

Definition at line 38 of file MuonCalibEvent.cxx.

38{ m_eventInfo = std::move(eventInfo); }

◆ setMuonCalibPatternVec()

void MuonCalib::MuonCalibEvent::setMuonCalibPatternVec ( MuonCalibEvent::MCPVec mcpvec)

set the MuonCalibPatternVec

Definition at line 78 of file MuonCalibEvent.cxx.

78{ m_patternVec = std::move(mcpvec); }

◆ setMuonCalibRawHitCollection()

void MuonCalib::MuonCalibEvent::setMuonCalibRawHitCollection ( std::shared_ptr< const MuonCalibRawHitCollection > RHColl)

set the MuonCalibRawHitCollection.

Definition at line 72 of file MuonCalibEvent.cxx.

72 {
73 m_rawColl = std::move(RHColl);
74 }

◆ setMuonCalibRawTriggerHitCollection()

void MuonCalib::MuonCalibEvent::setMuonCalibRawTriggerHitCollection ( std::shared_ptr< const MuonCalibRawTriggerHitCollection > THColl)

set the MuonCalibRawTriggerHitCollection.

Definition at line 75 of file MuonCalibEvent.cxx.

75 {
76 m_rawTriggerColl = std::move(THColl);
77 }

◆ setMuonCalibTriggerTimeInfo()

void MuonCalib::MuonCalibEvent::setMuonCalibTriggerTimeInfo ( std::shared_ptr< const MuonCalibTriggerTimeInfo > triggerTimeInfo)

set the MuonCalibTriggerTimeInfo

Definition at line 66 of file MuonCalibEvent.cxx.

66 {
68 }
const MuonCalibTriggerTimeInfo * triggerTimeInfo() const
std::shared_ptr< const MuonCalibTriggerTimeInfo > m_triggerTimeInfo

◆ setMuonCalibTruthCollection()

void MuonCalib::MuonCalibEvent::setMuonCalibTruthCollection ( std::shared_ptr< const MuonCalibTruthCollection > MCTColl)

set the MuonCalibTruthCollection

Definition at line 69 of file MuonCalibEvent.cxx.

69 {
70 m_truthColl = std::move(MCTColl);
71 }

◆ setRpcSectorLogicContainer()

void MuonCalib::MuonCalibEvent::setRpcSectorLogicContainer ( std::shared_ptr< const RpcSectorLogicContainer > rpcSlContainer)

set the RpcSectorLogicContainer

Definition at line 39 of file MuonCalibEvent.cxx.

39 {
40 m_rpcSlLogicContainer = std::move(rpcSlContainer);
41 }

◆ triggerTimeInfo()

const MuonCalibTriggerTimeInfo * MuonCalib::MuonCalibEvent::triggerTimeInfo ( ) const

Definition at line 36 of file MuonCalibEvent.cxx.

36{ return m_triggerTimeInfo.get(); }

Member Data Documentation

◆ m_eventInfo

std::shared_ptr<MuonCalibEventInfo> MuonCalib::MuonCalibEvent::m_eventInfo
private

MuonCalibEventInfo of the MuonCalibEvent.

Definition at line 99 of file MuonCalibEvent.h.

◆ m_patternVec

MCPVec MuonCalib::MuonCalibEvent::m_patternVec
private

A set of MuonCalibPattern s owned by the MuonCalibEvent.

Definition at line 98 of file MuonCalibEvent.h.

◆ m_rawColl

std::shared_ptr<const MuonCalibRawHitCollection> MuonCalib::MuonCalibEvent::m_rawColl
private

raw hits of the MuonCalibEvent

Definition at line 101 of file MuonCalibEvent.h.

◆ m_rawTriggerColl

std::shared_ptr<const MuonCalibRawTriggerHitCollection> MuonCalib::MuonCalibEvent::m_rawTriggerColl
private

raw hits of the MuonCalibEvent

Definition at line 102 of file MuonCalibEvent.h.

◆ m_rpcSlLogicContainer

std::shared_ptr<const RpcSectorLogicContainer> MuonCalib::MuonCalibEvent::m_rpcSlLogicContainer
private

RpcSectorLogicContainer.

Definition at line 104 of file MuonCalibEvent.h.

◆ m_triggerTimeInfo

std::shared_ptr<const MuonCalibTriggerTimeInfo> MuonCalib::MuonCalibEvent::m_triggerTimeInfo
private

Definition at line 100 of file MuonCalibEvent.h.

◆ m_truthColl

std::shared_ptr<const MuonCalibTruthCollection> MuonCalib::MuonCalibEvent::m_truthColl
private

truth collection of the MuonCalibEvent

Definition at line 103 of file MuonCalibEvent.h.


The documentation for this class was generated from the following files: