ATLAS Offline Software
Loading...
Searching...
No Matches
PRDCollHandle_sTGC.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
10#include <QColor>
11
15
16//____________________________________________________________________
21
22//____________________________________________________________________
24public:
26 //We only load these on demand!
29};
30
31//____________________________________________________________________
33 : PRDCollHandleBase(PRDDetType::sTGC,cd,key), m_d(new Imp), m_project(false)
34{
35 m_d->muondetmgr = 0;
36 m_d->idhelper = 0;
37 m_d->attempted_detmgrload = false;
38}
39
40//____________________________________________________________________
45
46//____________________________________________________________________
48{
49 return QColor::fromRgbF(0.42, 0.96, 0.16);//bright green
50}
51
52//____________________________________________________________________
54{
55 connect(controller,SIGNAL(project_TGCHitsChanged(bool)),this,SLOT(setProjectionMode(bool)));
56 setProjectionMode(controller->projectTGCHits());
57}
58
59//____________________________________________________________________
61{
62 assert(dynamic_cast<const Muon::sTgcPrepData*>(prd));
63 return new PRDHandle_sTGC(this,static_cast<const Muon::sTgcPrepData*>(prd));
64}
65
66//____________________________________________________________________
68{
69 if (m_project==b)
70 return;
71 m_project=b;
72
74 std::vector<PRDHandleBase*>::iterator it(getPrdHandles().begin()),itE(getPrdHandles().end());
75 for (;it!=itE;++it)
76 (*it)->update3DObjects();
79}
virtual void deselectAll(SoCooperativeSelection *exception_sel=0)
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Class to represent sTgc measurements.
PRDCollHandleBase(PRDDetType::Type, PRDSysCommonData *, const QString &key)
std::vector< PRDHandleBase * > & getPrdHandles()
PRDSysCommonData * common() const
const sTgcIdHelper * idhelper
const MuonGM::MuonDetectorManager * muondetmgr
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
static QStringList availableCollections(IVP1System *)
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
PRDCollHandle_sTGC(PRDSysCommonData *, const QString &key)
virtual QColor defaultColor() const override
IVP13DSystem * system() const
static bool hasMuonGeometry()
QStringList getKeys() const
virtual void largeChangesEnd()
virtual void largeChangesBegin()
MuonPrepDataContainerT< sTgcPrepData > sTgcPrepDataContainer