ATLAS Offline Software
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MuonCalib::MuonCalibEvent Class Reference

#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*> More...
 

Public Member Functions

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

Private Member Functions

void copy (const MuonCalibEvent &other)
 

Private Attributes

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

Detailed Description

Container class storing all entries of the CalibrationNtuple. It contains the following:

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 20 of file MuonCalibEvent.cxx.

20 : m_patternVec{std::move(patvec)} {}

◆ 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 22 of file MuonCalibEvent.cxx.

22  :
23  m_patternVec{std::move(patvec)}, m_rawColl{std::move(Coll)} {}

◆ 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 25 of file MuonCalibEvent.cxx.

26  :
27  m_patternVec{std::move(patvec)}, m_eventInfo(std::move(eventInfo)), m_rawColl(std::move(Coll)) {}

Member Function Documentation

◆ calibTruthCollection()

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

retrieve the MuonCalibEventInfo.

Definition at line 34 of file MuonCalibEvent.cxx.

34 { return m_truthColl.get(); }

◆ copy()

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

◆ eventInfo()

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

Definition at line 35 of file MuonCalibEvent.cxx.

35 { 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 53 of file MuonCalibEvent.cxx.

53  {
54  int hits = 0;
55  for (const PatternPtr &pat : pattern()) {
56  hits += pat->nmdtHits() % 1000;
57  hits += (pat->nmdtHits() - (pat->nmdtHits() % 1000)) / 1000;
58  hits += pat->nrpcHits() % 1000;
59  hits += (pat->nrpcHits() - (pat->nrpcHits() % 1000)) / 1000;
60  hits += pat->ntgcHits() % 1000;
61  hits += (pat->ntgcHits() - (pat->ntgcHits() % 1000)) / 1000;
62  hits += pat->ncscHits() % 1000;
63  hits += (pat->ncscHits() - (pat->ncscHits() % 1000)) / 1000;
64  }
65  return hits;
66  }

◆ numberOfPatterns()

int MuonCalib::MuonCalibEvent::numberOfPatterns ( ) const

retrieve the number of MuonCalibPatterns in the event

Definition at line 44 of file MuonCalibEvent.cxx.

44 { return m_patternVec.size(); }

◆ numberOfSegments()

int MuonCalib::MuonCalibEvent::numberOfSegments ( ) const

retrieve the number of MuonCalibSegments in the event

Definition at line 46 of file MuonCalibEvent.cxx.

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

◆ 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 29 of file MuonCalibEvent.cxx.

29 { return m_patternVec; }

◆ pattern() [2/2]

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

Definition at line 30 of file MuonCalibEvent.cxx.

30 { return m_patternVec; }

◆ rawHitCollection()

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

retrieve pointer to MuonCalibRawHitCollection

Definition at line 32 of file MuonCalibEvent.cxx.

32 { return m_rawColl.get(); }

◆ rawTriggerHitCollection()

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

retrieve the pointer to the MuonCalibTruthCollection.

Definition at line 33 of file MuonCalibEvent.cxx.

33 { return m_rawTriggerColl.get(); }

◆ rpcSectorLogicContainer()

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

Definition at line 36 of file MuonCalibEvent.cxx.

36 { return m_rpcSlLogicContainer.get(); }

◆ setMuonCalibEventInfo()

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

set the MuonCalibEventInfo

Definition at line 39 of file MuonCalibEvent.cxx.

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

◆ setMuonCalibPatternVec()

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

set the MuonCalibPatternVec

Definition at line 79 of file MuonCalibEvent.cxx.

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

◆ setMuonCalibRawHitCollection()

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

set the MuonCalibRawHitCollection.

Definition at line 73 of file MuonCalibEvent.cxx.

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

◆ setMuonCalibRawTriggerHitCollection()

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

set the MuonCalibRawTriggerHitCollection.

Definition at line 76 of file MuonCalibEvent.cxx.

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

◆ setMuonCalibTriggerTimeInfo()

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

set the MuonCalibTriggerTimeInfo

Definition at line 67 of file MuonCalibEvent.cxx.

67  {
69  }

◆ setMuonCalibTruthCollection()

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

set the MuonCalibTruthCollection

Definition at line 70 of file MuonCalibEvent.cxx.

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

◆ setRpcSectorLogicContainer()

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

set the RpcSectorLogicContainer

Definition at line 40 of file MuonCalibEvent.cxx.

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

◆ triggerTimeInfo()

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

Definition at line 37 of file MuonCalibEvent.cxx.

37 { 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:
MuonCalib::MuonCalibEvent::m_patternVec
MCPVec m_patternVec
A set of MuonCalibPattern s owned by the MuonCalibEvent.
Definition: MuonCalibEvent.h:98
MuonCalib::MuonCalibEvent::eventInfo
const MuonCalibEventInfo & eventInfo() const
Definition: MuonCalibEvent.cxx:35
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::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:37
MuonCalib::MuonCalibEvent::m_triggerTimeInfo
std::shared_ptr< const MuonCalibTriggerTimeInfo > m_triggerTimeInfo
Definition: MuonCalibEvent.h:100
MuonCalib::MuonCalibEvent::m_rawTriggerColl
std::shared_ptr< const MuonCalibRawTriggerHitCollection > m_rawTriggerColl
raw hits of the MuonCalibEvent
Definition: MuonCalibEvent.h:102
LArG4ShowerLibProcessing.hits
hits
Definition: LArG4ShowerLibProcessing.py:136
dso-stats.pat
pat
Definition: dso-stats.py:39
MuonCalib::MuonCalibEvent::m_rpcSlLogicContainer
std::shared_ptr< const RpcSectorLogicContainer > m_rpcSlLogicContainer
RpcSectorLogicContainer.
Definition: MuonCalibEvent.h:104
MuonCalib::MuonCalibEvent::pattern
MCPVec & pattern()
Retrieving the MuonCalibPattern container.
Definition: MuonCalibEvent.cxx:29
MuonCalib::MuonCalibEvent::PatternPtr
std::shared_ptr< MuonCalibPattern > PatternPtr
Definition: MuonCalibEvent.h:50