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

#include <MuonCalibTruthCollection.h>

Collaboration diagram for MuonCalib::MuonCalibTruthCollection:

Public Types

using TruthPtr = std::shared_ptr< const MuonCalibTruth >
 typedef of a set of MuonCalibTruth* s More...
 
using TruthVec = std::vector< TruthPtr >
 typedef of the iterator to the set of MuonCalibTruth s More...
 
using TruthMdtPtr = std::shared_ptr< const MuonCalibMdtTruthHit >
 typedef of set of MuonCalibMdtTruthHit* s More...
 
using MdtTruthVec = std::vector< TruthMdtPtr >
 typedef of the iterator to the set of MuonCalibMdtTruthHit* s More...
 
using TruthRpcPtr = std::shared_ptr< const MuonCalibRpcTruthHit >
 typedef of set of MuonCalibRpcTruthHit* s More...
 
using RpcTruthVec = std::vector< TruthRpcPtr >
 typedef of the iterator to the set of MuonCalibRpcTruthHit* s More...
 
using TruthTgcPtr = std::shared_ptr< const MuonCalibTgcTruthHit >
 typedef of set of MuonCalibTgcTruthHit* s More...
 
using TgcTruthVec = std::vector< TruthTgcPtr >
 
using TruthCscPtr = std::shared_ptr< const MuonCalibCscTruthHit >
 typedef of set of MuonCalibCscTruthHit* s More...
 
using CscTruthVec = std::vector< TruthCscPtr >
 

Public Member Functions

 MuonCalibTruthCollection ()=default
 Default constructor. More...
 
 MuonCalibTruthCollection (TruthVec truthVec)
 
 ~MuonCalibTruthCollection ()=default
 constructor initializing the set of MuonCalibTruth s More...
 
 MuonCalibTruthCollection (const MuonCalibTruthCollection &truthCollection)
 copyconstructor More...
 
MuonCalibTruthCollectionoperator= (const MuonCalibTruthCollection &rhs)
 assignment operator More...
 
int numberOfTruth () const
 retrieve the number of MuonCalibTruth s in the collection More...
 
void addTruth (MuonCalibTruth *truth)
 add a MuonCalibMdtTruthHit to the collection More...
 
void addTruth (MuonCalibMdtTruthHit *mdtTruth)
 add a MuonCalibRpcTruthHit to the collection More...
 
void addTruth (MuonCalibRpcTruthHit *rpcTruth)
 add a MuonCalibTgcTruthHit to the collection More...
 
void addTruth (MuonCalibTgcTruthHit *tgcTruth)
 add a MuonCalibCscTruthHit to the collection More...
 
void addTruth (MuonCalibCscTruthHit *cscTruth)
 
void addTruth (const TruthPtr &truth)
 -> Smart pointer version add a MuonCalibTruth to the collection More...
 
void addTruth (const TruthMdtPtr &mdtTruth)
 add a MuonCalibRpcTruthHit to the collection More...
 
void addTruth (const TruthRpcPtr &rpcTruth)
 add a MuonCalibTgcTruthHit to the collection More...
 
void addTruth (const TruthTgcPtr &tgcTruth)
 add a MuonCalibCscTruthHit to the collection More...
 
void addTruth (const TruthCscPtr &cscTruth)
 
TruthVecTruthContainer ()
 Retrieve a reference to the full truth container. More...
 
const TruthVecTruthContainer () const
 
MdtTruthVecMdtContainer ()
 Retrieve a reference to the full Mdt container. More...
 
const MdtTruthVecMdtContainer () const
 
RpcTruthVecRpcContainer ()
 Retrieve a refernece to the full Rpc container. More...
 
const RpcTruthVecRpcContainer () const
 
CscTruthVecCscContainer ()
 Retrieve a reference to the full Csc container. More...
 
const CscTruthVecCscContainer () const
 
TgcTruthVecTgcContainer ()
 Retrieve a referece to the full Tgc container. More...
 
const TgcTruthVecTgcContainer () const
 

Private Member Functions

void copy (const MuonCalibTruthCollection &other)
 

Private Attributes

TruthVec m_truthVec
 set of MuonCalibTruth s More...
 
MdtTruthVec m_mdtTruthVec
 set of MuonCalibMdtTruthHit s More...
 
RpcTruthVec m_rpcTruthVec
 set of MuonCalibRpcTruthHit s More...
 
TgcTruthVec m_tgcTruthVec
 set of MuonCalibTgcTruthHit s More...
 
CscTruthVec m_cscTruthVec
 set of MuonCalibCscTruthHit s More...
 

Detailed Description

MuonCalibTruthCollection is a Calibration EDM container class containing the following truth classes:

Definition at line 38 of file MuonCalibTruthCollection.h.

Member Typedef Documentation

◆ CscTruthVec

Definition at line 60 of file MuonCalibTruthCollection.h.

◆ MdtTruthVec

typedef of the iterator to the set of MuonCalibMdtTruthHit* s

Definition at line 47 of file MuonCalibTruthCollection.h.

◆ RpcTruthVec

typedef of the iterator to the set of MuonCalibRpcTruthHit* s

Definition at line 52 of file MuonCalibTruthCollection.h.

◆ TgcTruthVec

Definition at line 56 of file MuonCalibTruthCollection.h.

◆ TruthCscPtr

typedef of set of MuonCalibCscTruthHit* s

Definition at line 58 of file MuonCalibTruthCollection.h.

◆ TruthMdtPtr

typedef of set of MuonCalibMdtTruthHit* s

Definition at line 45 of file MuonCalibTruthCollection.h.

◆ TruthPtr

typedef of a set of MuonCalibTruth* s

Definition at line 40 of file MuonCalibTruthCollection.h.

◆ TruthRpcPtr

typedef of set of MuonCalibRpcTruthHit* s

Definition at line 50 of file MuonCalibTruthCollection.h.

◆ TruthTgcPtr

typedef of set of MuonCalibTgcTruthHit* s

Definition at line 54 of file MuonCalibTruthCollection.h.

◆ TruthVec

typedef of the iterator to the set of MuonCalibTruth s

Definition at line 42 of file MuonCalibTruthCollection.h.

Constructor & Destructor Documentation

◆ MuonCalibTruthCollection() [1/3]

MuonCalib::MuonCalibTruthCollection::MuonCalibTruthCollection ( )
default

Default constructor.

◆ MuonCalibTruthCollection() [2/3]

MuonCalib::MuonCalibTruthCollection::MuonCalibTruthCollection ( TruthVec  truthVec)
inline

Definition at line 63 of file MuonCalibTruthCollection.h.

63  :
64  m_truthVec(std::move(truthVec)){};

◆ ~MuonCalibTruthCollection()

MuonCalib::MuonCalibTruthCollection::~MuonCalibTruthCollection ( )
default

constructor initializing the set of MuonCalibTruth s

destructor

◆ MuonCalibTruthCollection() [3/3]

MuonCalib::MuonCalibTruthCollection::MuonCalibTruthCollection ( const MuonCalibTruthCollection truthCollection)

copyconstructor

Definition at line 11 of file MuonCalibTruthCollection.cxx.

11 { copy(other); }

Member Function Documentation

◆ addTruth() [1/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( const TruthCscPtr cscTruth)

Definition at line 84 of file MuonCalibTruthCollection.cxx.

84  {
85  if (truth) m_cscTruthVec.emplace_back(truth);
86  }

◆ addTruth() [2/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( const TruthMdtPtr mdtTruth)

add a MuonCalibRpcTruthHit to the collection

Definition at line 72 of file MuonCalibTruthCollection.cxx.

72  {
73  if (truth) m_mdtTruthVec.emplace_back(truth);
74  }

◆ addTruth() [3/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( const TruthPtr truth)

-> Smart pointer version add a MuonCalibTruth to the collection

add a MuonCalibMdtTruthHit to the collection

Definition at line 69 of file MuonCalibTruthCollection.cxx.

69  {
70  if (truth) m_truthVec.emplace_back(truth);
71  }

◆ addTruth() [4/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( const TruthRpcPtr rpcTruth)

add a MuonCalibTgcTruthHit to the collection

Definition at line 76 of file MuonCalibTruthCollection.cxx.

76  {
77  if (truth) m_rpcTruthVec.emplace_back(truth);
78  }

◆ addTruth() [5/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( const TruthTgcPtr tgcTruth)

add a MuonCalibCscTruthHit to the collection

Definition at line 80 of file MuonCalibTruthCollection.cxx.

80  {
81  if (truth) m_tgcTruthVec.emplace_back(truth);
82  }

◆ addTruth() [6/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( MuonCalibCscTruthHit cscTruth)

Definition at line 66 of file MuonCalibTruthCollection.cxx.

66  {
67  if (truth) m_cscTruthVec.emplace_back(truth);
68  }

◆ addTruth() [7/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( MuonCalibMdtTruthHit mdtTruth)

add a MuonCalibRpcTruthHit to the collection

Definition at line 54 of file MuonCalibTruthCollection.cxx.

54  {
55  if (truth) m_mdtTruthVec.emplace_back(truth);
56  }

◆ addTruth() [8/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( MuonCalibRpcTruthHit rpcTruth)

add a MuonCalibTgcTruthHit to the collection

Definition at line 58 of file MuonCalibTruthCollection.cxx.

58  {
59  if (truth) m_rpcTruthVec.emplace_back(truth);
60  }

◆ addTruth() [9/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( MuonCalibTgcTruthHit tgcTruth)

add a MuonCalibCscTruthHit to the collection

Definition at line 62 of file MuonCalibTruthCollection.cxx.

62  {
63  if (truth) m_tgcTruthVec.emplace_back(truth);
64  }

◆ addTruth() [10/10]

void MuonCalib::MuonCalibTruthCollection::addTruth ( MuonCalibTruth truth)

add a MuonCalibMdtTruthHit to the collection

Definition at line 51 of file MuonCalibTruthCollection.cxx.

51  {
52  if (truth) m_truthVec.emplace_back(truth);
53  }

◆ copy()

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

Definition at line 12 of file MuonCalibTruthCollection.cxx.

12  {
13  m_truthVec.clear();
14  m_mdtTruthVec.clear();
15  m_rpcTruthVec.clear();
16  m_cscTruthVec.clear();
17  m_tgcTruthVec.clear();
18 
19  for (const TruthPtr& it : other.m_truthVec) { m_truthVec.emplace_back(new MuonCalibTruth(*it)); }
20  for (const TruthMdtPtr& mdt_it : other.m_mdtTruthVec) { m_mdtTruthVec.emplace_back(new MuonCalibMdtTruthHit(*mdt_it)); }
21  for (const TruthRpcPtr& rpc_it : other.m_rpcTruthVec) { m_rpcTruthVec.emplace_back(new MuonCalibRpcTruthHit(*rpc_it)); }
22  for (const TruthCscPtr& csc_it : other.m_cscTruthVec) { m_cscTruthVec.emplace_back(new MuonCalibCscTruthHit(*csc_it)); }
23  for (const TruthTgcPtr& tgc_it : other.m_tgcTruthVec) { m_tgcTruthVec.emplace_back(new MuonCalibTgcTruthHit(*tgc_it)); }
24  }

◆ CscContainer() [1/2]

MuonCalibTruthCollection::CscTruthVec & MuonCalib::MuonCalibTruthCollection::CscContainer ( )

Retrieve a reference to the full Csc container.

Definition at line 38 of file MuonCalibTruthCollection.cxx.

38 { return m_cscTruthVec; }

◆ CscContainer() [2/2]

const MuonCalibTruthCollection::CscTruthVec & MuonCalib::MuonCalibTruthCollection::CscContainer ( ) const

Definition at line 39 of file MuonCalibTruthCollection.cxx.

39 { return m_cscTruthVec; }

◆ MdtContainer() [1/2]

MuonCalibTruthCollection::MdtTruthVec & MuonCalib::MuonCalibTruthCollection::MdtContainer ( )

Retrieve a reference to the full Mdt container.

Definition at line 30 of file MuonCalibTruthCollection.cxx.

30 { return m_mdtTruthVec; }

◆ MdtContainer() [2/2]

const MuonCalibTruthCollection::MdtTruthVec & MuonCalib::MuonCalibTruthCollection::MdtContainer ( ) const

Definition at line 31 of file MuonCalibTruthCollection.cxx.

31 { return m_mdtTruthVec; }

◆ numberOfTruth()

int MuonCalib::MuonCalibTruthCollection::numberOfTruth ( ) const

retrieve the number of MuonCalibTruth s in the collection

add a MuonCalibTruth to the collection

Definition at line 49 of file MuonCalibTruthCollection.cxx.

49 { return m_truthVec.size(); }

◆ operator=()

MuonCalibTruthCollection & MuonCalib::MuonCalibTruthCollection::operator= ( const MuonCalibTruthCollection rhs)

assignment operator

Definition at line 45 of file MuonCalibTruthCollection.cxx.

45  {
46  if (this != &rhs) { copy(rhs); }
47  return (*this);
48  }

◆ RpcContainer() [1/2]

MuonCalibTruthCollection::RpcTruthVec & MuonCalib::MuonCalibTruthCollection::RpcContainer ( )

Retrieve a refernece to the full Rpc container.

Definition at line 34 of file MuonCalibTruthCollection.cxx.

34 { return m_rpcTruthVec; }

◆ RpcContainer() [2/2]

const MuonCalibTruthCollection::RpcTruthVec & MuonCalib::MuonCalibTruthCollection::RpcContainer ( ) const

Definition at line 35 of file MuonCalibTruthCollection.cxx.

35 { return m_rpcTruthVec; }

◆ TgcContainer() [1/2]

MuonCalibTruthCollection::TgcTruthVec & MuonCalib::MuonCalibTruthCollection::TgcContainer ( )

Retrieve a referece to the full Tgc container.

Definition at line 42 of file MuonCalibTruthCollection.cxx.

42 { return m_tgcTruthVec; }

◆ TgcContainer() [2/2]

const MuonCalibTruthCollection::TgcTruthVec & MuonCalib::MuonCalibTruthCollection::TgcContainer ( ) const

Definition at line 43 of file MuonCalibTruthCollection.cxx.

43 { return m_tgcTruthVec; }

◆ TruthContainer() [1/2]

MuonCalibTruthCollection::TruthVec & MuonCalib::MuonCalibTruthCollection::TruthContainer ( )

Retrieve a reference to the full truth container.

Definition at line 26 of file MuonCalibTruthCollection.cxx.

26 { return m_truthVec; }

◆ TruthContainer() [2/2]

const MuonCalibTruthCollection::TruthVec & MuonCalib::MuonCalibTruthCollection::TruthContainer ( ) const

Definition at line 27 of file MuonCalibTruthCollection.cxx.

27 { return m_truthVec; }

Member Data Documentation

◆ m_cscTruthVec

CscTruthVec MuonCalib::MuonCalibTruthCollection::m_cscTruthVec
private

set of MuonCalibCscTruthHit s

Definition at line 120 of file MuonCalibTruthCollection.h.

◆ m_mdtTruthVec

MdtTruthVec MuonCalib::MuonCalibTruthCollection::m_mdtTruthVec
private

set of MuonCalibMdtTruthHit s

Definition at line 117 of file MuonCalibTruthCollection.h.

◆ m_rpcTruthVec

RpcTruthVec MuonCalib::MuonCalibTruthCollection::m_rpcTruthVec
private

set of MuonCalibRpcTruthHit s

Definition at line 118 of file MuonCalibTruthCollection.h.

◆ m_tgcTruthVec

TgcTruthVec MuonCalib::MuonCalibTruthCollection::m_tgcTruthVec
private

set of MuonCalibTgcTruthHit s

Definition at line 119 of file MuonCalibTruthCollection.h.

◆ m_truthVec

TruthVec MuonCalib::MuonCalibTruthCollection::m_truthVec
private

set of MuonCalibTruth s

Definition at line 116 of file MuonCalibTruthCollection.h.


The documentation for this class was generated from the following files:
MuonCalib::MuonCalibTruthCollection::m_truthVec
TruthVec m_truthVec
set of MuonCalibTruth s
Definition: MuonCalibTruthCollection.h:116
MuonCalib::MuonCalibTruthCollection::TruthRpcPtr
std::shared_ptr< const MuonCalibRpcTruthHit > TruthRpcPtr
typedef of set of MuonCalibRpcTruthHit* s
Definition: MuonCalibTruthCollection.h:51
skel.it
it
Definition: skel.GENtoEVGEN.py:423
MuonCalib::MuonCalibTruthCollection::m_cscTruthVec
CscTruthVec m_cscTruthVec
set of MuonCalibCscTruthHit s
Definition: MuonCalibTruthCollection.h:120
MuonCalib::MuonCalibTruthCollection::copy
void copy(const MuonCalibTruthCollection &other)
Definition: MuonCalibTruthCollection.cxx:12
MuonCalib::MuonCalibTruthCollection::TruthTgcPtr
std::shared_ptr< const MuonCalibTgcTruthHit > TruthTgcPtr
typedef of set of MuonCalibTgcTruthHit* s
Definition: MuonCalibTruthCollection.h:55
MuonCalib::MuonCalibTruthCollection::TruthCscPtr
std::shared_ptr< const MuonCalibCscTruthHit > TruthCscPtr
typedef of set of MuonCalibCscTruthHit* s
Definition: MuonCalibTruthCollection.h:59
MuonCalib::MuonCalibTruthCollection::m_rpcTruthVec
RpcTruthVec m_rpcTruthVec
set of MuonCalibRpcTruthHit s
Definition: MuonCalibTruthCollection.h:118
MuonCalib::MuonCalibTruthCollection::TruthMdtPtr
std::shared_ptr< const MuonCalibMdtTruthHit > TruthMdtPtr
typedef of set of MuonCalibMdtTruthHit* s
Definition: MuonCalibTruthCollection.h:46
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::MuonCalibTruthCollection::TruthPtr
std::shared_ptr< const MuonCalibTruth > TruthPtr
typedef of a set of MuonCalibTruth* s
Definition: MuonCalibTruthCollection.h:41
MuonCalib::MuonCalibTruthCollection::m_mdtTruthVec
MdtTruthVec m_mdtTruthVec
set of MuonCalibMdtTruthHit s
Definition: MuonCalibTruthCollection.h:117
MuonCalib::MuonCalibTruthCollection::m_tgcTruthVec
TgcTruthVec m_tgcTruthVec
set of MuonCalibTgcTruthHit s
Definition: MuonCalibTruthCollection.h:119