ATLAS Offline Software
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 
6 #include "VP1Base/IVP13DSystem.h"
10 #include <QColor>
11 
15 
16 //____________________________________________________________________
18 {
20 }
21 
22 //____________________________________________________________________
24 public:
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 //____________________________________________________________________
42 {
43  delete m_d;
44 }
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 
75  for (;it!=itE;++it)
76  (*it)->update3DObjects();
78  common()->system()->deselectAll();
79 }
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
PRDCollHandle_sTGC::Imp::muondetmgr
const MuonGM::MuonDetectorManager * muondetmgr
Definition: PRDCollHandle_sTGC.cxx:27
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition: MuonPrepDataContainer.h:42
PRDCollHandle_sTGC::Imp::idhelper
const sTgcIdHelper * idhelper
Definition: PRDCollHandle_sTGC.cxx:28
PRDSystemController
Definition: PRDSystemController.h:34
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
skel.it
it
Definition: skel.GENtoEVGEN.py:396
PRDCollHandleBase::common
PRDSysCommonData * common() const
Definition: PRDCollHandleBase.h:49
PRDCollHandle_sTGC::Imp::attempted_detmgrload
bool attempted_detmgrload
Definition: PRDCollHandle_sTGC.cxx:25
VP1StdCollection::largeChangesBegin
virtual void largeChangesBegin()
Definition: VP1StdCollection.cxx:228
PRDCollHandle_sTGC::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
Definition: PRDCollHandle_sTGC.cxx:53
PRDSysCommonData
Definition: PRDSysCommonData.h:35
PRDHandle_sTGC.h
sTgcPrepDataContainer.h
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
TruthTest.itE
itE
Definition: TruthTest.py:25
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
VP1SGContentsHelper::getKeys
QStringList getKeys() const
Definition: VP1SGContentsHelper.h:55
PRDCollHandle_sTGC::PRDCollHandle_sTGC
PRDCollHandle_sTGC(PRDSysCommonData *, const QString &key)
Definition: PRDCollHandle_sTGC.cxx:32
PRDCollHandle_sTGC::addPRD
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
Definition: PRDCollHandle_sTGC.cxx:60
sTgcPrepData.h
PRDCollHandleBase
Definition: PRDCollHandleBase.h:25
IVP1System
Definition: IVP1System.h:36
PRDCollHandle_sTGC::m_d
Imp * m_d
Definition: PRDCollHandle_sTGC.h:34
PRDCollHandle_sTGC::availableCollections
static QStringList availableCollections(IVP1System *)
Definition: PRDCollHandle_sTGC.cxx:17
IVP13DSystem.h
PRDCollHandle_sTGC::setProjectionMode
void setProjectionMode(bool)
Definition: PRDCollHandle_sTGC.cxx:67
PRDDetType
Definition: PRDDetTypes.h:10
Trk::PrepRawData
Definition: PrepRawData.h:62
PRDSystemController::projectTGCHits
bool projectTGCHits() const
Definition: PRDSystemController.cxx:560
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
PRDSystemController.h
sTgcIdHelper
Definition: sTgcIdHelper.h:55
VP1SGContentsHelper
Definition: VP1SGContentsHelper.h:26
VP1StdCollection::largeChangesEnd
virtual void largeChangesEnd()
Definition: VP1StdCollection.cxx:239
PRDCollHandle_sTGC::~PRDCollHandle_sTGC
virtual ~PRDCollHandle_sTGC()
Definition: PRDCollHandle_sTGC.cxx:41
PRDCollHandle_sTGC::Imp
Definition: PRDCollHandle_sTGC.cxx:23
PRDCollHandle_sTGC::m_project
bool m_project
Definition: PRDCollHandle_sTGC.h:38
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:50
PRDSysCommonData::system
IVP13DSystem * system() const
Definition: PRDSysCommonData.h:78
PRDCollHandle_sTGC::defaultColor
virtual QColor defaultColor() const override
Definition: PRDCollHandle_sTGC.cxx:47
calibdata.cd
cd
Definition: calibdata.py:51
VP1JobConfigInfo.h
PRDHandleBase
Definition: PRDHandleBase.h:35
VP1JobConfigInfo::hasMuonGeometry
static bool hasMuonGeometry()
Definition: VP1JobConfigInfo.cxx:134
PRDCollHandleBase::getPrdHandles
std::vector< PRDHandleBase * > & getPrdHandles()
Definition: PRDCollHandleBase.cxx:507
Muon::sTgcPrepData
Class to represent sTgc measurements.
Definition: sTgcPrepData.h:20
PRDCollHandle_sTGC.h
IVP13DSystem::deselectAll
virtual void deselectAll(SoCooperativeSelection *exception_sel=0)
Definition: IVP13DSystem.cxx:331
PRDHandle_sTGC
Definition: PRDHandle_sTGC.h:12
VP1SGContentsHelper.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37