ATLAS Offline Software
Loading...
Searching...
No Matches
MuonCalibTruthCollection.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5//*********************************************************//
6// Class to store MuonCalibTruth classes in //
7//*********************************************************//
8
9#ifndef MuonCalibTruthCollection_h
10#define MuonCalibTruthCollection_h
11
12#include <iostream>
13#include <memory>
14#include <vector>
15
17#include "GaudiKernel/MsgStream.h"
23
24namespace MuonCalib {
25
37
39 public:
40 using TruthPtr = std::shared_ptr<const MuonCalibTruth>;
42 using TruthVec = std::vector<TruthPtr>;
44
45 using TruthMdtPtr = std::shared_ptr<const MuonCalibMdtTruthHit>;
47 using MdtTruthVec = std::vector<TruthMdtPtr>;
49
50 using TruthRpcPtr = std::shared_ptr<const MuonCalibRpcTruthHit>;
52 using RpcTruthVec = std::vector<TruthRpcPtr>;
54 using TruthTgcPtr = std::shared_ptr<const MuonCalibTgcTruthHit>;
56 using TgcTruthVec = std::vector<TruthTgcPtr>;
57
58 using TruthCscPtr = std::shared_ptr<const MuonCalibCscTruthHit>;
60 using CscTruthVec = std::vector<TruthCscPtr>;
61
64 m_truthVec(std::move(truthVec)){};
67
69
70 int numberOfTruth() const;
71
73 void addTruth(MuonCalibTruth* truth);
75 void addTruth(MuonCalibMdtTruthHit* mdtTruth);
77 void addTruth(MuonCalibRpcTruthHit* rpcTruth);
79 void addTruth(MuonCalibTgcTruthHit* tgcTruth);
81 void addTruth(MuonCalibCscTruthHit* cscTruth);
82
85 void addTruth(const TruthPtr& truth);
87 void addTruth(const TruthMdtPtr& mdtTruth);
89 void addTruth(const TruthRpcPtr& rpcTruth);
91 void addTruth(const TruthTgcPtr& tgcTruth);
93 void addTruth(const TruthCscPtr& cscTruth);
94
97 const TruthVec& TruthContainer() const;
98
101 const MdtTruthVec& MdtContainer() const;
102
105 const RpcTruthVec& RpcContainer() const;
106
109 const CscTruthVec& CscContainer() const;
110
113 const TgcTruthVec& TgcContainer() const;
114
115 private:
121 void copy(const MuonCalibTruthCollection& other);
122 };
123
124} // end namespace MuonCalib
125
126#endif
Class with truth information of a RPC hit, containing:
Class with truth information of a MDT hit, containing:
Class with truth information of a RPC hit, containing:
Class with truth information of a RPC hit, containing:
std::vector< TruthPtr > TruthVec
typedef of the iterator to the set of MuonCalibTruth s
int numberOfTruth() const
retrieve the number of MuonCalibTruth s in the collection
void addTruth(MuonCalibTruth *truth)
add a MuonCalibMdtTruthHit to the collection
TgcTruthVec m_tgcTruthVec
set of MuonCalibTgcTruthHit s
std::vector< TruthRpcPtr > RpcTruthVec
typedef of the iterator to the set of MuonCalibRpcTruthHit* s
MdtTruthVec & MdtContainer()
Retrieve a reference to the full Mdt container.
void copy(const MuonCalibTruthCollection &other)
std::shared_ptr< const MuonCalibCscTruthHit > TruthCscPtr
typedef of set of MuonCalibCscTruthHit* s
TruthVec m_truthVec
set of MuonCalibTruth s
std::shared_ptr< const MuonCalibTruth > TruthPtr
typedef of a set of MuonCalibTruth* s
std::vector< TruthMdtPtr > MdtTruthVec
typedef of the iterator to the set of MuonCalibMdtTruthHit* s
TruthVec & TruthContainer()
Retrieve a reference to the full truth container.
std::shared_ptr< const MuonCalibTgcTruthHit > TruthTgcPtr
typedef of set of MuonCalibTgcTruthHit* s
RpcTruthVec & RpcContainer()
Retrieve a refernece to the full Rpc container.
MdtTruthVec m_mdtTruthVec
set of MuonCalibMdtTruthHit s
MuonCalibTruthCollection & operator=(const MuonCalibTruthCollection &rhs)
assignment operator
TgcTruthVec & TgcContainer()
Retrieve a referece to the full Tgc container.
std::shared_ptr< const MuonCalibRpcTruthHit > TruthRpcPtr
typedef of set of MuonCalibRpcTruthHit* s
CscTruthVec & CscContainer()
Retrieve a reference to the full Csc container.
CscTruthVec m_cscTruthVec
set of MuonCalibCscTruthHit s
MuonCalibTruthCollection()=default
Default constructor.
std::shared_ptr< const MuonCalibMdtTruthHit > TruthMdtPtr
typedef of set of MuonCalibMdtTruthHit* s
RpcTruthVec m_rpcTruthVec
set of MuonCalibRpcTruthHit s
~MuonCalibTruthCollection()=default
constructor initializing the set of MuonCalibTruth s
Calib-EDM version of TrackRecord, given at the MuonSpectrometer entrance.
singleton-like access to IMessageSvc via open function and helper
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
STL namespace.