ATLAS Offline Software
Loading...
Searching...
No Matches
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
13public:
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()->getMaterialGeom()->getParent(); }
34
35
36// protected:
37// void visibleStateChanged(bool newstate);
38
39private:
41
42};
43
44inline bool PRDHandle_MDT::masked() const
45{
46 return m_driftcircle->status() == Muon::MdtStatusMasked;
47}
48
49inline int PRDHandle_MDT::ADC() const
50{
51 return m_driftcircle->adc();
52}
53
54inline bool PRDHandle_MDT::highLight() const
55{
56 PRDCollHandle_MDT* ch = static_cast<PRDCollHandle_MDT*>(collHandle());
57 return ( masked() && ch->highLightMasked() ) || ( ADC() <= ch->highLightADCBelow() );
58}
59
60#endif
Class to represent measurements from the Monitored Drift Tubes.
Definition MdtPrepData.h:33
PRDHandleBase(PRDCollHandleBase *)
PRDCollHandleBase * collHandle() const
const Muon::MdtPrepData * m_driftcircle
const Muon::MdtPrepData * driftCircle() const
void buildShapes(SoNode *&shape_simple, SoNode *&shape_detailed)
const Trk::PrepRawData * getPRD() const
int ADC() const
GeoPVConstLink parentMuonChamberPV() const
bool highLight() const
bool masked() const
PRDHandle_MDT(PRDCollHandle_MDT *, const Muon::MdtPrepData *)
virtual ~PRDHandle_MDT()
bool inMuonChamber() const
QString driftCircleStatus() const
QStringList clicked() const
bool transformUsesSurfacePositionOnly() const
@ MdtStatusMasked
A hit during a previous bunch crossing occured which rendered the tube dead for this bunch crossing.