ATLAS Offline Software
graphics
VP1
VP1Systems
VP1PRDSystems
src
PRDCollHandle_TGC.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
VP1PRDSystems/PRDCollHandle_TGC.h
"
6
#include "
VP1Base/IVP13DSystem.h
"
7
#include "
VP1PRDSystems/PRDHandle_TGC.h
"
8
#include "
MuonPrepRawData/TgcPrepData.h
"
9
#include "
VP1PRDSystems/PRDSystemController.h
"
10
#include <QColor>
11
12
#include "
VP1Utils/VP1JobConfigInfo.h
"
13
#include "
VP1Utils/VP1SGContentsHelper.h
"
14
#include "
MuonPrepRawData/TgcPrepDataContainer.h
"
15
16
//____________________________________________________________________
17
QStringList
PRDCollHandle_TGC::availableCollections
(
IVP1System
*
sys
)
18
{
19
return
VP1JobConfigInfo::hasMuonGeometry
() ?
VP1SGContentsHelper
(
sys
).
getKeys
<
Muon::TgcPrepDataContainer
>() : QStringList();
20
}
21
22
//____________________________________________________________________
23
class
PRDCollHandle_TGC::Imp
{
24
public
:
25
bool
attempted_detmgrload
;
26
//We only load these on demand!
27
const
MuonGM::MuonDetectorManager
*
muondetmgr
;
28
const
TgcIdHelper
*
idhelper
;
29
};
30
31
//____________________________________________________________________
32
PRDCollHandle_TGC::PRDCollHandle_TGC
(
PRDSysCommonData
*
cd
,
const
QString&
key
)
33
:
PRDCollHandleBase
(
PRDDetType
::
TGC
,
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
//____________________________________________________________________
41
PRDCollHandle_TGC::~PRDCollHandle_TGC
()
42
{
43
delete
m_d
;
44
}
45
46
//____________________________________________________________________
47
QColor
PRDCollHandle_TGC::defaultColor
()
const
48
{
49
return
QColor::fromRgbF(0.42, 0.96, 0.16);
//bright green
50
}
51
52
//____________________________________________________________________
53
void
PRDCollHandle_TGC::setupSettingsFromControllerSpecific
(
PRDSystemController
*controller)
54
{
55
connect
(controller,SIGNAL(projectTGCHitsChanged(
bool
)),
this
,SLOT(
setProjectionMode
(
bool
)));
56
setProjectionMode
(controller->
projectTGCHits
());
57
}
58
59
//____________________________________________________________________
60
PRDHandleBase
*
PRDCollHandle_TGC::addPRD
(
const
Trk::PrepRawData
* prd )
61
{
62
assert(
dynamic_cast<
const
Muon::TgcPrepData
*
>
(prd));
63
return
new
PRDHandle_TGC
(
this
,
static_cast<
const
Muon::TgcPrepData
*
>
(prd));
64
}
65
66
//____________________________________________________________________
67
void
PRDCollHandle_TGC::setProjectionMode
(
bool
b
)
68
{
69
if
(
m_project
==
b
)
70
return
;
71
m_project
=
b
;
72
73
largeChangesBegin
();
74
std::vector<PRDHandleBase*>::iterator
it
(
getPrdHandles
().
begin
()),
itE
(
getPrdHandles
().
end
());
75
for
(;
it
!=
itE
;++
it
)
76
(*it)->update3DObjects();
77
largeChangesEnd
();
78
common
()->
system
()->
deselectAll
();
79
}
xAOD::iterator
JetConstituentVector::iterator iterator
Definition:
JetConstituentVector.cxx:68
Muon::MuonPrepDataContainer
Template for Muon PRD containers (which are basically collections of MuonPrepDataCollections).
Definition:
MuonPrepDataContainer.h:42
PRDCollHandle_TGC::m_project
bool m_project
Definition:
PRDCollHandle_TGC.h:38
PRDCollHandle_TGC::Imp
Definition:
PRDCollHandle_TGC.cxx:23
PRDCollHandle_TGC::Imp::muondetmgr
const MuonGM::MuonDetectorManager * muondetmgr
Definition:
PRDCollHandle_TGC.cxx:27
PRDCollHandle_TGC::defaultColor
virtual QColor defaultColor() const override
Definition:
PRDCollHandle_TGC.cxx:47
PRDCollHandle_TGC::Imp::attempted_detmgrload
bool attempted_detmgrload
Definition:
PRDCollHandle_TGC.cxx:25
PRDCollHandle_TGC::Imp::idhelper
const TgcIdHelper * idhelper
Definition:
PRDCollHandle_TGC.cxx:28
TgcIdHelper
Definition:
TgcIdHelper.h:50
PRDCollHandle_TGC::~PRDCollHandle_TGC
virtual ~PRDCollHandle_TGC()
Definition:
PRDCollHandle_TGC.cxx:41
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
VP1StdCollection::largeChangesBegin
virtual void largeChangesBegin()
Definition:
VP1StdCollection.cxx:228
PRDSysCommonData
Definition:
PRDSysCommonData.h:35
PRDCollHandle_TGC.h
TgcPrepData.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
PRDCollHandle_TGC::addPRD
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
Definition:
PRDCollHandle_TGC.cxx:60
VP1SGContentsHelper::getKeys
QStringList getKeys() const
Definition:
VP1SGContentsHelper.h:55
PRDCollHandleBase
Definition:
PRDCollHandleBase.h:25
IVP1System
Definition:
IVP1System.h:36
TGC
Definition:
TgcBase.h:6
TgcPrepDataContainer.h
IVP13DSystem.h
PRDCollHandle_TGC::availableCollections
static QStringList availableCollections(IVP1System *)
Definition:
PRDCollHandle_TGC.cxx:17
PRDDetType
Definition:
PRDDetTypes.h:10
PRDCollHandle_TGC::m_d
Imp * m_d
Definition:
PRDCollHandle_TGC.h:34
Trk::PrepRawData
Definition:
PrepRawData.h:62
PRDSystemController::projectTGCHits
bool projectTGCHits() const
Definition:
PRDSystemController.cxx:560
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
PRDSystemController.h
PRDHandle_TGC.h
PRDCollHandle_TGC::PRDCollHandle_TGC
PRDCollHandle_TGC(PRDSysCommonData *, const QString &key)
Definition:
PRDCollHandle_TGC.cxx:32
VP1SGContentsHelper
Definition:
VP1SGContentsHelper.h:26
PRDHandle_TGC
Definition:
PRDHandle_TGC.h:12
VP1StdCollection::largeChangesEnd
virtual void largeChangesEnd()
Definition:
VP1StdCollection.cxx:239
PRDCollHandle_TGC::setProjectionMode
void setProjectionMode(bool)
Definition:
PRDCollHandle_TGC.cxx:67
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
Muon::TgcPrepData
Class to represent TGC measurements.
Definition:
TgcPrepData.h:32
PRDCollHandle_TGC::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
Definition:
PRDCollHandle_TGC.cxx:53
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
IVP13DSystem::deselectAll
virtual void deselectAll(SoCooperativeSelection *exception_sel=0)
Definition:
IVP13DSystem.cxx:331
VP1SGContentsHelper.h
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Sun Dec 22 2024 21:16:39 for ATLAS Offline Software by
1.8.18