ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace MuonCalib {
27
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 {
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
98std::ostream& operator<<(std::ostream& stream, const MuonCalib::MuonCalibRawTgcHit& rawHit);
99
100#endif // MuonCalibRawTgcHit_h
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
double length(const pvec &v)
std::ostream & operator<<(std::ostream &stream, const MuonCalib::MuonCalibRawTgcHit &rawHit)
const double width
unsigned bcTag(unsigned bcBitMap)
Calib-EDM version of TgcPrepData class, containing uncalibrated information.
MuonCalibRawTgcHit(const MuonCalibRawTgcHit &hit)=default
copy constructor
MuonCalibRawTgcHit()=default
default constructor
void setLongWidth(float longWidth)
sets the strip width
void setLength(float length)
sets the strip length
void setGlobalPosition(const Amg::Vector3D &glob)
sets the position expressed in global coordinates
const Amg::Vector3D & globalPosition() const
retrieve the position expressed in global coordinates
int occupancy() const
retrieve the occupancy (-1 == not assigned to any segment)
void setShortWidth(float shortWidth)
MuonCalibRawTgcHit & operator=(const MuonCalibRawTgcHit &rhs)=default
assingment operator
float length() const
retrieve the strip length
const MuonFixedId & identify() const
retrieve the MuonFixedId
void setId(MuonFixedId Id)
sets the MuonFixedId
void setOccupancy(int occ)
sets the occupancy
~MuonCalibRawTgcHit()=default
destructor
Implements fixed identifiers not dependent upon Athena Identifier for internal use in the calibration...
Definition MuonFixedId.h:50
Eigen::Matrix< double, 3, 1 > Vector3D
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
-event-from-file
int occupancy
occupancy (-1 == not assigned to any segment)
Amg::Vector3D global_pos
position of the hit in global coordinates