ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
VP1
VP1Systems
VP1PRDSystems
src
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
5
#include "
VP1PRDSystems/PRDCollHandle_sTGC.h
"
6
#include "
VP1Base/IVP13DSystem.h
"
7
#include "
VP1PRDSystems/PRDHandle_sTGC.h
"
8
#include "
MuonPrepRawData/sTgcPrepData.h
"
9
#include "
VP1PRDSystems/PRDSystemController.h
"
10
#include <QColor>
11
12
#include "
VP1Utils/VP1JobConfigInfo.h
"
13
#include "
VP1Utils/VP1SGContentsHelper.h
"
14
#include "
MuonPrepRawData/sTgcPrepDataContainer.h
"
15
16
//____________________________________________________________________
17
QStringList
PRDCollHandle_sTGC::availableCollections
(
IVP1System
*sys)
18
{
19
return
VP1JobConfigInfo::hasMuonGeometry
() ?
VP1SGContentsHelper
(sys).
getKeys
<
Muon::sTgcPrepDataContainer
>() : QStringList();
20
}
21
22
//____________________________________________________________________
23
class
PRDCollHandle_sTGC::Imp
{
24
public
:
25
bool
attempted_detmgrload
;
26
//We only load these on demand!
27
const
MuonGM::MuonDetectorManager
*
muondetmgr
;
28
const
sTgcIdHelper
*
idhelper
;
29
};
30
31
//____________________________________________________________________
32
PRDCollHandle_sTGC::PRDCollHandle_sTGC
(
PRDSysCommonData
* cd,
const
QString& key)
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
//____________________________________________________________________
41
PRDCollHandle_sTGC::~PRDCollHandle_sTGC
()
42
{
43
delete
m_d
;
44
}
45
46
//____________________________________________________________________
47
QColor
PRDCollHandle_sTGC::defaultColor
()
const
48
{
49
return
QColor::fromRgbF(0.42, 0.96, 0.16);
//bright green
50
}
51
52
//____________________________________________________________________
53
void
PRDCollHandle_sTGC::setupSettingsFromControllerSpecific
(
PRDSystemController
*controller)
54
{
55
connect(controller,SIGNAL(project_TGCHitsChanged(
bool
)),
this
,SLOT(
setProjectionMode
(
bool
)));
56
setProjectionMode
(controller->
projectTGCHits
());
57
}
58
59
//____________________________________________________________________
60
PRDHandleBase
*
PRDCollHandle_sTGC::addPRD
(
const
Trk::PrepRawData
* prd )
61
{
62
assert(
dynamic_cast<
const
Muon::sTgcPrepData
*
>
(prd));
63
return
new
PRDHandle_sTGC
(
this
,
static_cast<
const
Muon::sTgcPrepData
*
>
(prd));
64
}
65
66
//____________________________________________________________________
67
void
PRDCollHandle_sTGC::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_sTGC.h
PRDHandle_sTGC.h
PRDSystemController.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::sTgcPrepData
Class to represent sTgc measurements.
Definition
sTgcPrepData.h:20
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_sTGC::Imp
Definition
PRDCollHandle_sTGC.cxx:23
PRDCollHandle_sTGC::Imp::idhelper
const sTgcIdHelper * idhelper
Definition
PRDCollHandle_sTGC.cxx:28
PRDCollHandle_sTGC::Imp::muondetmgr
const MuonGM::MuonDetectorManager * muondetmgr
Definition
PRDCollHandle_sTGC.cxx:27
PRDCollHandle_sTGC::Imp::attempted_detmgrload
bool attempted_detmgrload
Definition
PRDCollHandle_sTGC.cxx:25
PRDCollHandle_sTGC::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
Definition
PRDCollHandle_sTGC.cxx:53
PRDCollHandle_sTGC::availableCollections
static QStringList availableCollections(IVP1System *)
Definition
PRDCollHandle_sTGC.cxx:17
PRDCollHandle_sTGC::m_project
bool m_project
Definition
PRDCollHandle_sTGC.h:38
PRDCollHandle_sTGC::addPRD
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
Definition
PRDCollHandle_sTGC.cxx:60
PRDCollHandle_sTGC::PRDCollHandle_sTGC
PRDCollHandle_sTGC(PRDSysCommonData *, const QString &key)
Definition
PRDCollHandle_sTGC.cxx:32
PRDCollHandle_sTGC::setProjectionMode
void setProjectionMode(bool)
Definition
PRDCollHandle_sTGC.cxx:67
PRDCollHandle_sTGC::~PRDCollHandle_sTGC
virtual ~PRDCollHandle_sTGC()
Definition
PRDCollHandle_sTGC.cxx:41
PRDCollHandle_sTGC::defaultColor
virtual QColor defaultColor() const override
Definition
PRDCollHandle_sTGC.cxx:47
PRDCollHandle_sTGC::m_d
Imp * m_d
Definition
PRDCollHandle_sTGC.h:35
PRDDetType
Definition
PRDDetTypes.h:10
PRDHandleBase
Definition
PRDHandleBase.h:35
PRDHandle_sTGC
Definition
PRDHandle_sTGC.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
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
sTgcIdHelper
Definition
sTgcIdHelper.h:55
Muon::sTgcPrepDataContainer
MuonPrepDataContainerT< sTgcPrepData > sTgcPrepDataContainer
Definition
MuonPrepDataContainer.h:100
sTgcPrepDataContainer.h
sTgcPrepData.h
Generated on
for ATLAS Offline Software by
1.17.0