ATLAS Offline Software
MuonCalibRawTgcCoin.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 raw Tgc information in //
7 // Author: Takashi Kubota //
8 // Date : 31st July 2008 //
9 //*********************************************************//
10 
11 #ifndef MuonCalibRawTgcCoin_h
12 #define MuonCalibRawTgcCoin_h
13 
16 
17 namespace MuonCalib {
29  public:
30  MuonCalibRawTgcCoin() = default;
31 
32  MuonCalibRawTgcCoin(const MuonCalibRawTgcCoin& coin) = default;
34  ~MuonCalibRawTgcCoin() = default;
35 
36  MuonCalibRawTgcCoin(const MuonFixedId& id, const Amg::Vector3D& gPosIn, const Amg::Vector3D& gPosOut, const int type, const int eta,
37  const int phi, const int sector, const int isForward, const int isStrip, const int trackletId,
38  const int trackletIdStrip, const int bcTag, const float widthIn, const float widthOut, const float widthR,
39  const float widthPhi, const int delta, const int roi, const int pt, const int sub, const int isPositiveDeltaR);
40 
41  std::ostream& dump(std::ostream& stream) const;
42 
43  const MuonFixedId& identify() const;
44  const Amg::Vector3D& gPosIn() const;
45  const Amg::Vector3D& gPosOut() const;
46  int type() const;
47  int eta() const;
48  int phi() const;
49  int sector() const;
50  int isForward() const;
51  int isStrip() const;
52  int trackletId() const;
53  int trackletIdStrip() const;
54  int bcTag() const;
55  float widthR() const;
56  float widthIn() const;
57  float widthOut() const;
58  float widthPhi() const;
59  int delta() const;
60  int roi() const;
61  int pt() const;
62  int sub() const;
63  int isPositiveDeltaR() const;
64 
65  void setId(MuonFixedId Id);
68  void setType(int type);
69  void setEta(int eta);
70  void setPhi(int phi);
71  void setSector(int sector);
72  void setIsForward(int isForward);
73  void setIsStrip(int isStrip);
74  void setTrackletId(int trackletId);
76  void setBcTag(int bcTag);
77  void setWidthIn(float widthIn);
78  void setWidthOut(float widthOut);
79  void setWidthR(float widthR);
80  void setWidthPhi(float widthPhi);
81  void setDelta(int delta);
82  void setRoi(int roi);
83  void setPt(int pt);
84  void setSub(int sub);
86 
87  private:
89  Amg::Vector3D m_gPosIn{0., 0., 0.};
90  Amg::Vector3D m_gPosOut{0., 0., 0.};
91  int m_type{0};
92  int m_eta{0};
93  int m_phi{0};
94  int m_sector{0};
95  int m_isForward{0};
96  int m_isStrip{0};
97  int m_trackletId{0};
99  int m_bcTag{0};
100  float m_widthIn{0};
101  float m_widthOut{0};
102  float m_widthR{0};
103  float m_widthPhi{0};
104 
105  int m_delta{0};
106  int m_roi{0};
107  int m_pt{0};
108 
109  int m_sub{0};
111  };
112 
113 } // namespace MuonCalib
114 
115 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawTgcCoin& rawCoin);
116 
117 #endif // MuonCalibRawTgcCoin_h
MuonCalib::MuonCalibRawTgcCoin::setTrackletIdStrip
void setTrackletIdStrip(int trackletIdStrip)
Definition: MuonCalibRawTgcCoin.cxx:43
MuonCalib::MuonCalibRawTgcCoin::setIsForward
void setIsForward(int isForward)
Definition: MuonCalibRawTgcCoin.cxx:40
MuonCalib::MuonCalibRawTgcCoin::m_delta
int m_delta
Definition: MuonCalibRawTgcCoin.h:105
MuonCalib::MuonCalibRawTgcCoin::MuonCalibRawTgcCoin
MuonCalibRawTgcCoin()=default
default constructor
MuonCalib::MuonCalibRawTgcCoin::setType
void setType(int type)
Definition: MuonCalibRawTgcCoin.cxx:36
MuonCalib::MuonCalibRawTgcCoin::setIsPositiveDeltaR
void setIsPositiveDeltaR(int isPositiveDeltaR)
Definition: MuonCalibRawTgcCoin.cxx:53
MuonCalib::MuonCalibRawTgcCoin::setPhi
void setPhi(int phi)
Definition: MuonCalibRawTgcCoin.cxx:38
MuonCalib::MuonCalibRawTgcCoin::setTrackletId
void setTrackletId(int trackletId)
Definition: MuonCalibRawTgcCoin.cxx:42
MuonCalib::MuonCalibRawTgcCoin::m_eta
int m_eta
Definition: MuonCalibRawTgcCoin.h:92
MuonCalib::MuonCalibRawTgcCoin::m_widthOut
float m_widthOut
Definition: MuonCalibRawTgcCoin.h:101
MuonCalib::MuonCalibRawTgcCoin::m_widthR
float m_widthR
Definition: MuonCalibRawTgcCoin.h:102
MuonCalib::MuonCalibRawTgcCoin::isStrip
int isStrip() const
Definition: MuonCalibRawTgcCoin.cxx:19
MuonCalib::MuonCalibRawTgcCoin::widthOut
float widthOut() const
Definition: MuonCalibRawTgcCoin.cxx:24
MuonCalib::MuonCalibRawTgcCoin::m_widthIn
float m_widthIn
Definition: MuonCalibRawTgcCoin.h:100
MuonCalib::MuonCalibRawTgcCoin::m_gPosIn
Amg::Vector3D m_gPosIn
Definition: MuonCalibRawTgcCoin.h:89
MuonCalib::MuonCalibRawTgcCoin::setGlobalPositionIn
void setGlobalPositionIn(const Amg::Vector3D &gPosIn)
sets the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:34
MuonCalib::MuonCalibRawTgcCoin::isPositiveDeltaR
int isPositiveDeltaR() const
Definition: MuonCalibRawTgcCoin.cxx:31
MuonCalib::MuonCalibRawTgcCoin::m_id
MuonFixedId m_id
identifier of the raw coin, (is a MuonFixedId, not an Identifier)
Definition: MuonCalibRawTgcCoin.h:88
MuonCalib::MuonCalibRawTgcCoin::eta
int eta() const
Definition: MuonCalibRawTgcCoin.cxx:15
MuonCalib::MuonCalibRawTgcCoin::setWidthR
void setWidthR(float widthR)
Definition: MuonCalibRawTgcCoin.cxx:47
MuonCalib::MuonCalibRawTgcCoin::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawTgcCoin
Definition: MuonCalibRawTgcCoin.cxx:83
MuonCalib::MuonCalibRawTgcCoin::m_trackletIdStrip
int m_trackletIdStrip
Definition: MuonCalibRawTgcCoin.h:98
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRawTgcCoin::gPosOut
const Amg::Vector3D & gPosOut() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:13
MuonCalib::MuonCalibRawTgcCoin::setWidthOut
void setWidthOut(float widthOut)
Definition: MuonCalibRawTgcCoin.cxx:46
MuonCalib::MuonCalibRawTgcCoin::m_sub
int m_sub
Definition: MuonCalibRawTgcCoin.h:109
GeoPrimitives.h
MuonCalib::MuonCalibRawTgcCoin::sub
int sub() const
Definition: MuonCalibRawTgcCoin.cxx:30
MuonCalib::MuonCalibRawTgcCoin::setWidthPhi
void setWidthPhi(float widthPhi)
Definition: MuonCalibRawTgcCoin.cxx:48
MuonCalib::MuonCalibRawTgcCoin::~MuonCalibRawTgcCoin
~MuonCalibRawTgcCoin()=default
destructor
MuonCalib::MuonCalibRawTgcCoin::m_roi
int m_roi
Definition: MuonCalibRawTgcCoin.h:106
MuonCalib::MuonCalibRawTgcCoin::operator=
MuonCalibRawTgcCoin & operator=(const MuonCalibRawTgcCoin &rhs)=default
assingment operator
MuonCalib::MuonCalibRawTgcCoin::isForward
int isForward() const
Definition: MuonCalibRawTgcCoin.cxx:18
MuonCalib::MuonCalibRawTgcCoin::trackletIdStrip
int trackletIdStrip() const
Definition: MuonCalibRawTgcCoin.cxx:21
MuonCalib::MuonCalibRawTgcCoin::setRoi
void setRoi(int roi)
Definition: MuonCalibRawTgcCoin.cxx:50
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawTgcCoin::gPosIn
const Amg::Vector3D & gPosIn() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:12
MuonCalib::MuonCalibRawTgcCoin::trackletId
int trackletId() const
Definition: MuonCalibRawTgcCoin.cxx:20
MuonCalib::MuonCalibRawTgcCoin::type
int type() const
Definition: MuonCalibRawTgcCoin.cxx:14
MuonCalib::MuonCalibRawTgcCoin::setBcTag
void setBcTag(int bcTag)
Definition: MuonCalibRawTgcCoin.cxx:44
MuonCalib::MuonCalibRawTgcCoin::m_isPositiveDeltaR
int m_isPositiveDeltaR
Definition: MuonCalibRawTgcCoin.h:110
MuonCalib::MuonCalibRawTgcCoin::pt
int pt() const
Definition: MuonCalibRawTgcCoin.cxx:29
MuonCalib::MuonCalibRawTgcCoin::setSector
void setSector(int sector)
Definition: MuonCalibRawTgcCoin.cxx:39
MuonCalib::MuonCalibRawTgcCoin::roi
int roi() const
Definition: MuonCalibRawTgcCoin.cxx:28
MuonCalib::MuonCalibRawTgcCoin::MuonCalibRawTgcCoin
MuonCalibRawTgcCoin(const MuonCalibRawTgcCoin &coin)=default
copy constructor
MuonCalib::MuonCalibRawTgcCoin::phi
int phi() const
Definition: MuonCalibRawTgcCoin.cxx:16
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
MuonCalib::MuonCalibRawTgcCoin::m_sector
int m_sector
Definition: MuonCalibRawTgcCoin.h:94
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibRawTgcCoin::sector
int sector() const
Definition: MuonCalibRawTgcCoin.cxx:17
MuonCalib::MuonCalibRawTgcCoin::m_gPosOut
Amg::Vector3D m_gPosOut
Definition: MuonCalibRawTgcCoin.h:90
MuonCalib::MuonCalibRawTgcCoin::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRawTgcCoin.cxx:11
MuonCalib::MuonCalibRawTgcCoin::m_pt
int m_pt
Definition: MuonCalibRawTgcCoin.h:107
MuonCalib::MuonCalibRawTgcCoin::setSub
void setSub(int sub)
Definition: MuonCalibRawTgcCoin.cxx:52
MuonCalib::MuonCalibRawTgcCoin::setDelta
void setDelta(int delta)
Definition: MuonCalibRawTgcCoin.cxx:49
MuonCalib::MuonCalibRawTgcCoin::widthPhi
float widthPhi() const
Definition: MuonCalibRawTgcCoin.cxx:26
MuonCalib::MuonCalibRawTgcCoin::setPt
void setPt(int pt)
Definition: MuonCalibRawTgcCoin.cxx:51
MuonCalib::MuonCalibRawTgcCoin::m_widthPhi
float m_widthPhi
Definition: MuonCalibRawTgcCoin.h:103
MuonCalib::MuonCalibRawTgcCoin::bcTag
int bcTag() const
Definition: MuonCalibRawTgcCoin.cxx:22
MuonCalib::MuonCalibRawTgcCoin::m_type
int m_type
Definition: MuonCalibRawTgcCoin.h:91
MuonCalib::MuonCalibRawTgcCoin::setWidthIn
void setWidthIn(float widthIn)
Definition: MuonCalibRawTgcCoin.cxx:45
MuonCalib::MuonCalibRawTgcCoin::widthIn
float widthIn() const
Definition: MuonCalibRawTgcCoin.cxx:23
MuonCalib::MuonCalibRawTgcCoin::m_phi
int m_phi
Definition: MuonCalibRawTgcCoin.h:93
MuonCalib::MuonCalibRawTgcCoin
Definition: MuonCalibRawTgcCoin.h:28
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcCoin &rawCoin)
Definition: MuonCalibRawTgcCoin.cxx:110
MuonCalib::MuonCalibRawTgcCoin::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition: MuonCalibRawTgcCoin.cxx:33
MuonCalib::MuonCalibRawTgcCoin::widthR
float widthR() const
Definition: MuonCalibRawTgcCoin.cxx:25
MuonCalib::MuonCalibRawTgcCoin::setIsStrip
void setIsStrip(int isStrip)
Definition: MuonCalibRawTgcCoin.cxx:41
MuonCalib::MuonCalibRawTgcCoin::m_isForward
int m_isForward
Definition: MuonCalibRawTgcCoin.h:95
MuonCalib::MuonCalibRawTgcCoin::setEta
void setEta(int eta)
Definition: MuonCalibRawTgcCoin.cxx:37
MuonFixedId.h
MuonCalib::MuonCalibRawTgcCoin::m_trackletId
int m_trackletId
Definition: MuonCalibRawTgcCoin.h:97
MuonCalib::MuonCalibRawTgcCoin::m_bcTag
int m_bcTag
Definition: MuonCalibRawTgcCoin.h:99
MuonCalib::MuonCalibRawTgcCoin::m_isStrip
int m_isStrip
Definition: MuonCalibRawTgcCoin.h:96
MuonCalib::MuonCalibRawTgcCoin::delta
int delta() const
Definition: MuonCalibRawTgcCoin.cxx:27
MuonCalib::MuonCalibRawTgcCoin::setGlobalPositionOut
void setGlobalPositionOut(const Amg::Vector3D &gPosOut)
sets the position expressed in global coordinates
Definition: MuonCalibRawTgcCoin.cxx:35