ATLAS Offline Software
MuonCalibRawTgcHit.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: Zdenko van Kesteren //
8 // Date : 21st june 2006 //
9 //*********************************************************//
10 
11 #ifndef MuonCalibRawTgcHit_h
12 #define MuonCalibRawTgcHit_h
13 
16 
17 namespace MuonCalib {
29  public:
30  MuonCalibRawTgcHit() = default;
31  MuonCalibRawTgcHit(const MuonCalibRawTgcHit& hit) = default;
33 
34  ~MuonCalibRawTgcHit() = default;
35 
36  enum BunchCrossingTag { Previous = 1, Current = 2, Next = 3 };
37 
38  struct defineParams {
39  MuonFixedId id{0};
40  Amg::Vector3D global_pos{0., 0., 0.};
41  int occupancy{0};
42  int station{0};
43  int eta{0};
44  int phi{0};
45  int gasGap{0};
46  int isStrip{0};
47  int channel{0};
48  int bcTag{0};
49 
50  float width{0};
51  float shortWidth{0};
52  float longWidth{0};
53  float length{0};
54  };
55 
56  MuonCalibRawTgcHit(const defineParams& pars);
57 
58  std::ostream& dump(std::ostream& stream) const;
59 
60  const MuonFixedId& identify() const;
61  const Amg::Vector3D& globalPosition() const;
62  int occupancy() const;
63  int station() const;
64  int eta() const;
65  int phi() const;
66  int gasGap() const;
67  int isStrip() const;
68  int channel() const;
69  int bcTag() const;
70 
71  float width() const;
72  float shortWidth() const;
73  float longWidth() const;
74  float length() const;
75 
76  void setId(MuonFixedId Id);
77  void setGlobalPosition(const Amg::Vector3D& glob);
78  void setOccupancy(int occ);
79  void setStation(int station);
80  void setEta(int eta);
81  void setPhi(int phi);
82  void setGasGap(int gasGap);
83  void setIsStrip(int isStrip);
84  void setChannel(int channel);
85  void setBcTag(int bcTag);
86 
87  void setWidth(float width);
88  void setShortWidth(float shortWidth);
89  void setLongWidth(float longWidth);
90  void setLength(float length);
91 
92  private:
94  };
95 
96 } // namespace MuonCalib
97 
98 std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawTgcHit& rawHit);
99 
100 #endif // MuonCalibRawTgcHit_h
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
MuonCalib::MuonCalibRawTgcHit::setLongWidth
void setLongWidth(float longWidth)
sets the strip width
Definition: MuonCalibRawTgcHit.cxx:40
MuonCalib::MuonCalibRawTgcHit::defineParams::station
int station
Definition: MuonCalibRawTgcHit.h:42
MuonCalib::MuonCalibRawTgcHit::phi
int phi() const
Definition: MuonCalibRawTgcHit.cxx:16
MuonCalib::MuonCalibRawTgcHit::setStation
void setStation(int station)
Definition: MuonCalibRawTgcHit.cxx:30
MuonCalib::MuonCalibRawTgcHit::Previous
@ Previous
Definition: MuonCalibRawTgcHit.h:36
MuonCalib::MuonCalibRawTgcHit::setPhi
void setPhi(int phi)
Definition: MuonCalibRawTgcHit.cxx:32
MuonCalib::MuonCalibRawTgcHit::MuonCalibRawTgcHit
MuonCalibRawTgcHit(const MuonCalibRawTgcHit &hit)=default
copy constructor
MuonCalib::MuonCalibRawTgcHit::defineParams::shortWidth
float shortWidth
Definition: MuonCalibRawTgcHit.h:51
MuonCalib::MuonCalibRawTgcHit::defineParams::length
float length
strip length
Definition: MuonCalibRawTgcHit.h:53
MuonCalib::MuonCalibRawTgcHit::eta
int eta() const
Definition: MuonCalibRawTgcHit.cxx:15
MuonCalib::MuonCalibRawTgcHit::setChannel
void setChannel(int channel)
Definition: MuonCalibRawTgcHit.cxx:35
MuonCalib::MuonCalibRawTgcHit::width
float width() const
Definition: MuonCalibRawTgcHit.cxx:22
MuonCalib::MuonCalibRawTgcHit::defineParams::longWidth
float longWidth
strip width
Definition: MuonCalibRawTgcHit.h:52
MuonCalib::MuonCalibRawTgcHit::setOccupancy
void setOccupancy(int occ)
sets the occupancy
Definition: MuonCalibRawTgcHit.cxx:29
MuonCalib::MuonCalibRawTgcHit::isStrip
int isStrip() const
Definition: MuonCalibRawTgcHit.cxx:18
MuonCalib::MuonCalibRawTgcHit::setLength
void setLength(float length)
sets the strip length
Definition: MuonCalibRawTgcHit.cxx:41
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
MuonCalib::MuonCalibRawTgcHit::defineParams::gasGap
int gasGap
Definition: MuonCalibRawTgcHit.h:45
MuonCalib::MuonCalibRawTgcHit::occupancy
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawTgcHit.cxx:13
GeoPrimitives.h
MuonCalib::MuonCalibRawTgcHit::defineParams::occupancy
int occupancy
occupancy (-1 == not assigned to any segment)
Definition: MuonCalibRawTgcHit.h:41
MuonCalib::MuonCalibRawTgcHit::defineParams::phi
int phi
Definition: MuonCalibRawTgcHit.h:44
MuonCalib::MuonCalibRawTgcHit::setWidth
void setWidth(float width)
Definition: MuonCalibRawTgcHit.cxx:38
MuonCalib::MuonCalibRawTgcHit::setIsStrip
void setIsStrip(int isStrip)
Definition: MuonCalibRawTgcHit.cxx:34
MuonCalib::MuonCalibRawTgcHit::setGlobalPosition
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
Definition: MuonCalibRawTgcHit.cxx:28
MuonCalib::MuonCalibRawTgcHit::identify
const MuonFixedId & identify() const
retrieve the MuonFixedId
Definition: MuonCalibRawTgcHit.cxx:11
MuonCalib::MuonCalibRawTgcHit::defineParams::eta
int eta
Definition: MuonCalibRawTgcHit.h:43
MuonCalib
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
Definition: CscCalcPed.cxx:22
MuonCalib::MuonCalibRawTgcHit::gasGap
int gasGap() const
Definition: MuonCalibRawTgcHit.cxx:17
MuonCalib::MuonCalibRawTgcHit::longWidth
float longWidth() const
Definition: MuonCalibRawTgcHit.cxx:24
MuonCalib::MuonCalibRawTgcHit::globalPosition
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
Definition: MuonCalibRawTgcHit.cxx:12
MuonCalib::MuonCalibRawTgcHit::m_pars
defineParams m_pars
Definition: MuonCalibRawTgcHit.h:93
MuonCalib::MuonCalibRawTgcHit::defineParams
Definition: MuonCalibRawTgcHit.h:38
MuonCalib::MuonCalibRawTgcHit::setGasGap
void setGasGap(int gasGap)
Definition: MuonCalibRawTgcHit.cxx:33
MuonCalib::MuonCalibRawTgcHit
Definition: MuonCalibRawTgcHit.h:28
MuonCalib::MuonCalibRawTgcHit::station
int station() const
Definition: MuonCalibRawTgcHit.cxx:14
MuonCalib::MuonCalibRawTgcHit::setId
void setId(MuonFixedId Id)
sets the MuonFixedId
Definition: MuonCalibRawTgcHit.cxx:27
MuonCalib::MuonCalibRawTgcHit::length
float length() const
retrieve the strip length
Definition: MuonCalibRawTgcHit.cxx:25
MuonCalib::MuonCalibRawTgcHit::channel
int channel() const
Definition: MuonCalibRawTgcHit.cxx:19
MuonCalib::MuonFixedId
Definition: MuonFixedId.h:50
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
MuonCalib::MuonCalibRawTgcHit::Current
@ Current
Definition: MuonCalibRawTgcHit.h:36
MuonCalib::MuonCalibRawTgcHit::setBcTag
void setBcTag(int bcTag)
Definition: MuonCalibRawTgcHit.cxx:36
MuonCalib::MuonCalibRawTgcHit::~MuonCalibRawTgcHit
~MuonCalibRawTgcHit()=default
destructor
MuonCalib::MuonCalibRawTgcHit::MuonCalibRawTgcHit
MuonCalibRawTgcHit()=default
default constructor
MuonCalib::MuonCalibRawTgcHit::defineParams::global_pos
Amg::Vector3D global_pos
position of the hit in global coordinates
Definition: MuonCalibRawTgcHit.h:40
MuonCalib::MuonCalibRawTgcHit::setEta
void setEta(int eta)
Definition: MuonCalibRawTgcHit.cxx:31
operator<<
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcHit &rawHit)
Definition: MuonCalibRawTgcHit.cxx:65
MuonCalib::MuonCalibRawTgcHit::BunchCrossingTag
BunchCrossingTag
Definition: MuonCalibRawTgcHit.h:36
MuonCalib::MuonCalibRawTgcHit::bcTag
int bcTag() const
Definition: MuonCalibRawTgcHit.cxx:20
MuonCalib::MuonCalibRawTgcHit::defineParams::isStrip
int isStrip
Definition: MuonCalibRawTgcHit.h:46
MuonCalib::MuonCalibRawTgcHit::dump
std::ostream & dump(std::ostream &stream) const
dump to be used for operator<<() to dump the MuonCalibRawTgcHit
Definition: MuonCalibRawTgcHit.cxx:43
MuonCalib::MuonCalibRawTgcHit::defineParams::width
float width
Definition: MuonCalibRawTgcHit.h:50
MuonCalib::MuonCalibRawTgcHit::defineParams::channel
int channel
Definition: MuonCalibRawTgcHit.h:47
MuonCalib::MuonCalibRawTgcHit::operator=
MuonCalibRawTgcHit & operator=(const MuonCalibRawTgcHit &rhs)=default
assingment operator
MuonCalib::MuonCalibRawTgcHit::defineParams::bcTag
int bcTag
Definition: MuonCalibRawTgcHit.h:48
MuonCalib::MuonCalibRawTgcHit::Next
@ Next
Definition: MuonCalibRawTgcHit.h:36
MuonCalib::MuonCalibRawTgcHit::shortWidth
float shortWidth() const
Definition: MuonCalibRawTgcHit.cxx:23
MuonFixedId.h
MuonCalib::MuonCalibRawTgcHit::setShortWidth
void setShortWidth(float shortWidth)
Definition: MuonCalibRawTgcHit.cxx:39