ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
}
IVP13DSystem.h
PRDCollHandle_TGC.h
PRDHandle_TGC.h
PRDSystemController.h
TgcPrepDataContainer.h
TgcPrepData.h
VP1JobConfigInfo.h
VP1SGContentsHelper.h
IVP13DSystem::deselectAll
virtual void deselectAll(SoCooperativeSelection *exception_sel=0)
Definition
IVP13DSystem.cxx:331
IVP1System
Definition
IVP1System.h:36
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition
MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h:51
Muon::TgcPrepData
Class to represent TGC measurements.
Definition
TgcPrepData.h:32
PRDCollHandleBase::PRDCollHandleBase
PRDCollHandleBase(PRDDetType::Type, PRDSysCommonData *, const QString &key)
Definition
PRDCollHandleBase.cxx:80
PRDCollHandleBase::getPrdHandles
std::vector< PRDHandleBase * > & getPrdHandles()
Definition
PRDCollHandleBase.cxx:507
PRDCollHandleBase::common
PRDSysCommonData * common() const
Definition
PRDCollHandleBase.h:49
PRDCollHandle_TGC::Imp
Definition
PRDCollHandle_TGC.cxx:23
PRDCollHandle_TGC::Imp::muondetmgr
const MuonGM::MuonDetectorManager * muondetmgr
Definition
PRDCollHandle_TGC.cxx:27
PRDCollHandle_TGC::Imp::idhelper
const TgcIdHelper * idhelper
Definition
PRDCollHandle_TGC.cxx:28
PRDCollHandle_TGC::Imp::attempted_detmgrload
bool attempted_detmgrload
Definition
PRDCollHandle_TGC.cxx:25
PRDCollHandle_TGC::~PRDCollHandle_TGC
virtual ~PRDCollHandle_TGC()
Definition
PRDCollHandle_TGC.cxx:41
PRDCollHandle_TGC::m_project
bool m_project
Definition
PRDCollHandle_TGC.h:38
PRDCollHandle_TGC::defaultColor
virtual QColor defaultColor() const override
Definition
PRDCollHandle_TGC.cxx:47
PRDCollHandle_TGC::m_d
Imp * m_d
Definition
PRDCollHandle_TGC.h:35
PRDCollHandle_TGC::setProjectionMode
void setProjectionMode(bool)
Definition
PRDCollHandle_TGC.cxx:67
PRDCollHandle_TGC::addPRD
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
Definition
PRDCollHandle_TGC.cxx:60
PRDCollHandle_TGC::PRDCollHandle_TGC
PRDCollHandle_TGC(PRDSysCommonData *, const QString &key)
Definition
PRDCollHandle_TGC.cxx:32
PRDCollHandle_TGC::availableCollections
static QStringList availableCollections(IVP1System *)
Definition
PRDCollHandle_TGC.cxx:17
PRDCollHandle_TGC::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
Definition
PRDCollHandle_TGC.cxx:53
PRDDetType
Definition
PRDDetTypes.h:10
PRDHandleBase
Definition
PRDHandleBase.h:35
PRDHandle_TGC
Definition
PRDHandle_TGC.h:12
PRDSysCommonData
Definition
PRDSysCommonData.h:35
PRDSysCommonData::system
IVP13DSystem * system() const
Definition
PRDSysCommonData.h:78
PRDSystemController
Definition
PRDSystemController.h:34
PRDSystemController::projectTGCHits
bool projectTGCHits() const
Definition
PRDSystemController.cxx:560
TgcIdHelper
Definition
TgcIdHelper.h:50
Trk::PrepRawData
Definition
PrepRawData.h:62
VP1JobConfigInfo::hasMuonGeometry
static bool hasMuonGeometry()
Definition
VP1JobConfigInfo.cxx:138
VP1SGContentsHelper
Definition
VP1SGContentsHelper.h:26
VP1SGContentsHelper::getKeys
QStringList getKeys() const
Definition
VP1SGContentsHelper.h:55
VP1StdCollection::largeChangesEnd
virtual void largeChangesEnd()
Definition
VP1StdCollection.cxx:239
VP1StdCollection::largeChangesBegin
virtual void largeChangesBegin()
Definition
VP1StdCollection.cxx:228
Muon::TgcPrepDataContainer
MuonPrepDataContainerT< TgcPrepData > TgcPrepDataContainer
Definition
MuonPrepDataContainer.h:96
TGC
Definition
TgcBase.h:6
Generated on
for ATLAS Offline Software by
1.17.0