ATLAS Offline Software
PRDHandle_MDT.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 #ifndef PRDHANDLE_MDT_H
6 #define PRDHANDLE_MDT_H
7 
11 
12 class PRDHandle_MDT : public PRDHandleBase {
13 public:
14 
16  virtual ~PRDHandle_MDT() {};
17 
18  void buildShapes(SoNode*&shape_simple, SoNode*&shape_detailed);
19  int regionIndex();
20  QStringList clicked() const;
21 
22  inline bool highLight() const;
23 
24  bool transformUsesSurfacePositionOnly() const { return true; }
25  const Muon::MdtPrepData * driftCircle() const { return m_driftcircle; }
26  const Trk::PrepRawData * getPRD() const { return m_driftcircle; }
27 
28  inline bool masked() const;
29  QString driftCircleStatus() const;
30  inline int ADC() const;
31 
32  bool inMuonChamber() const { return true; }
33  GeoPVConstLink parentMuonChamberPV() const { return m_driftcircle->detectorElement()->parentStationPV(); }
34 
35 
36 // protected:
37 // void visibleStateChanged(bool newstate);
38 
39 private:
41 
42 };
43 
44 inline bool PRDHandle_MDT::masked() const
45 {
47 }
48 
49 inline int PRDHandle_MDT::ADC() const
50 {
51  return m_driftcircle->adc();
52 }
53 
54 inline bool PRDHandle_MDT::highLight() const
55 {
57  return ( masked() && ch->highLightMasked() ) || ( ADC() <= ch->highLightADCBelow() );
58 }
59 
60 #endif
PRDHandle_MDT::driftCircleStatus
QString driftCircleStatus() const
Definition: PRDHandle_MDT.cxx:107
PRDHandle_MDT::inMuonChamber
bool inMuonChamber() const
Definition: PRDHandle_MDT.h:32
PRDHandle_MDT::m_driftcircle
const Muon::MdtPrepData * m_driftcircle
Definition: PRDHandle_MDT.h:40
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
PRDHandle_MDT::~PRDHandle_MDT
virtual ~PRDHandle_MDT()
Definition: PRDHandle_MDT.h:16
PRDHandle_MDT::PRDHandle_MDT
PRDHandle_MDT(PRDCollHandle_MDT *, const Muon::MdtPrepData *)
Definition: PRDHandle_MDT.cxx:19
PRDHandle_MDT::driftCircle
const Muon::MdtPrepData * driftCircle() const
Definition: PRDHandle_MDT.h:25
PRDHandleBase::collHandle
PRDCollHandleBase * collHandle() const
Definition: PRDHandleBase.cxx:228
PRDHandle_MDT::parentMuonChamberPV
GeoPVConstLink parentMuonChamberPV() const
Definition: PRDHandle_MDT.h:33
PRDHandle_MDT::clicked
QStringList clicked() const
Definition: PRDHandle_MDT.cxx:80
PRDCollHandle_MDT.h
MdtPrepData.h
PRDHandle_MDT::ADC
int ADC() const
Definition: PRDHandle_MDT.h:49
Muon::MdtPrepData::adc
int adc() const
Returns the ADC (typically range is 0 to 250)
Definition: MdtPrepData.h:146
Muon::MdtStatusMasked
@ MdtStatusMasked
A hit during a previous bunch crossing occured which rendered the tube dead for this bunch crossing.
Definition: MdtDriftCircleStatus.h:31
PRDHandle_MDT::regionIndex
int regionIndex()
Definition: PRDHandle_MDT.cxx:72
PRDHandle_MDT
Definition: PRDHandle_MDT.h:12
PRDCollHandle_MDT
Definition: PRDCollHandle_MDT.h:11
Trk::PrepRawData
Definition: PrepRawData.h:62
Muon::MdtPrepData
Class to represent measurements from the Monitored Drift Tubes.
Definition: MdtPrepData.h:33
PRDHandle_MDT::highLight
bool highLight() const
Definition: PRDHandle_MDT.h:54
PRDHandle_MDT::transformUsesSurfacePositionOnly
bool transformUsesSurfacePositionOnly() const
Definition: PRDHandle_MDT.h:24
PRDHandle_MDT::buildShapes
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
Definition: PRDHandle_MDT.cxx:25
PRDHandle_MDT::getPRD
const Trk::PrepRawData * getPRD() const
Definition: PRDHandle_MDT.h:26
PRDHandleBase
Definition: PRDHandleBase.h:35
Muon::MdtPrepData::status
MdtDriftCircleStatus status() const
Returns the status of the measurement.
Definition: MdtPrepData.h:147
PRDHandle_MDT::masked
bool masked() const
Definition: PRDHandle_MDT.h:44
Muon::MdtPrepData::detectorElement
virtual const MuonGM::MdtReadoutElement * detectorElement() const override
Returns the detector element corresponding to this PRD.
Definition: MdtPrepData.h:141
MuonGM::MuonReadoutElement::parentStationPV
PVConstLink parentStationPV() const
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonReadoutElement.cxx:100
PRDHandleBase.h