ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
VP1
VP1Systems
VP1PRDSystems
src
PRDCollHandle_CSC.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_CSC.h
"
6
#include "
VP1Base/IVP13DSystem.h
"
7
#include "
VP1PRDSystems/PRDHandle_CSC.h
"
8
#include "
MuonPrepRawData/CscPrepData.h
"
9
#include "
VP1PRDSystems/PRDSystemController.h
"
10
#include "
VP1Utils/VP1DetInfo.h
"
11
#include <QColor>
12
13
#include "
VP1Utils/VP1JobConfigInfo.h
"
14
#include "
VP1Utils/VP1SGContentsHelper.h
"
15
#include "
MuonPrepRawData/CscPrepDataContainer.h
"
16
17
//____________________________________________________________________
18
QStringList
PRDCollHandle_CSC::availableCollections
(
IVP1System
*sys)
19
{
20
return
VP1JobConfigInfo::hasMuonGeometry
() ?
VP1SGContentsHelper
(sys).
getKeys
<
Muon::CscPrepDataContainer
>() : QStringList();
21
}
22
23
//____________________________________________________________________
24
class
PRDCollHandle_CSC::Imp
{
25
public
:
26
bool
attempted_detmgrload
;
27
//We only load these on demand!
28
const
MuonGM::MuonDetectorManager
*
muondetmgr
;
29
const
CscIdHelper
*
idhelper
;
30
};
31
32
//____________________________________________________________________
33
PRDCollHandle_CSC::PRDCollHandle_CSC
(
PRDSysCommonData
* cd,
const
QString& key)
34
:
PRDCollHandleBase
(
PRDDetType
::
CSC
,cd,key),
m_d
(new
Imp
),
m_project
(false)
35
{
36
m_d
->muondetmgr = 0;
37
m_d
->idhelper = 0;
38
m_d
->attempted_detmgrload =
false
;
39
}
40
41
//____________________________________________________________________
42
PRDCollHandle_CSC::~PRDCollHandle_CSC
()
43
{
44
delete
m_d
;
45
}
46
47
//____________________________________________________________________
48
QColor
PRDCollHandle_CSC::defaultColor
()
const
49
{
50
return
QColor::fromRgbF( 0.1, 0.5, 1.0);
//blue
51
52
}
53
54
//____________________________________________________________________
55
void
PRDCollHandle_CSC::setupSettingsFromControllerSpecific
(
PRDSystemController
*controller)
56
{
57
connect(controller,SIGNAL(projectCSCHitsChanged(
bool
)),
this
,SLOT(
setProjectionMode
(
bool
)));
58
setProjectionMode
(controller->
projectCSCHits
());
59
}
60
61
//____________________________________________________________________
62
PRDHandleBase
*
PRDCollHandle_CSC::addPRD
(
const
Trk::PrepRawData
* prd )
63
{
64
assert(
dynamic_cast<
const
Muon::CscPrepData
*
>
(prd));
65
return
new
PRDHandle_CSC
(
this
,
static_cast<
const
Muon::CscPrepData
*
>
(prd));
66
}
67
68
//____________________________________________________________________
69
void
PRDCollHandle_CSC::setProjectionMode
(
bool
b )
70
{
71
if
(
m_project
==b)
72
return
;
73
m_project
=b;
74
75
largeChangesBegin
();
76
std::vector<PRDHandleBase*>::iterator it(
getPrdHandles
().begin()),itE(
getPrdHandles
().end());
77
for
(;it!=itE;++it)
78
(*it)->update3DObjects();
79
largeChangesEnd
();
80
common
()->
system
()->
deselectAll
();
81
}
CscPrepDataContainer.h
CscPrepData.h
IVP13DSystem.h
PRDCollHandle_CSC.h
PRDHandle_CSC.h
PRDSystemController.h
CSC
@ CSC
Definition
RegSelEnums.h:34
VP1DetInfo.h
VP1JobConfigInfo.h
VP1SGContentsHelper.h
CscIdHelper
Definition
CscIdHelper.h:52
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::CscPrepData
Class representing clusters from the CSC.
Definition
CscPrepData.h:39
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_CSC::Imp
Definition
PRDCollHandle_CSC.cxx:24
PRDCollHandle_CSC::Imp::idhelper
const CscIdHelper * idhelper
Definition
PRDCollHandle_CSC.cxx:29
PRDCollHandle_CSC::Imp::muondetmgr
const MuonGM::MuonDetectorManager * muondetmgr
Definition
PRDCollHandle_CSC.cxx:28
PRDCollHandle_CSC::Imp::attempted_detmgrload
bool attempted_detmgrload
Definition
PRDCollHandle_CSC.cxx:26
PRDCollHandle_CSC::PRDCollHandle_CSC
PRDCollHandle_CSC(PRDSysCommonData *, const QString &key)
Definition
PRDCollHandle_CSC.cxx:33
PRDCollHandle_CSC::~PRDCollHandle_CSC
virtual ~PRDCollHandle_CSC()
Definition
PRDCollHandle_CSC.cxx:42
PRDCollHandle_CSC::setProjectionMode
void setProjectionMode(bool)
Definition
PRDCollHandle_CSC.cxx:69
PRDCollHandle_CSC::m_project
bool m_project
Definition
PRDCollHandle_CSC.h:39
PRDCollHandle_CSC::defaultColor
virtual QColor defaultColor() const override
Definition
PRDCollHandle_CSC.cxx:48
PRDCollHandle_CSC::availableCollections
static QStringList availableCollections(IVP1System *)
Definition
PRDCollHandle_CSC.cxx:18
PRDCollHandle_CSC::m_d
Imp * m_d
Definition
PRDCollHandle_CSC.h:36
PRDCollHandle_CSC::addPRD
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
Definition
PRDCollHandle_CSC.cxx:62
PRDCollHandle_CSC::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
Definition
PRDCollHandle_CSC.cxx:55
PRDDetType
Definition
PRDDetTypes.h:10
PRDHandleBase
Definition
PRDHandleBase.h:35
PRDHandle_CSC
Definition
PRDHandle_CSC.h:13
PRDSysCommonData
Definition
PRDSysCommonData.h:35
PRDSysCommonData::system
IVP13DSystem * system() const
Definition
PRDSysCommonData.h:78
PRDSystemController
Definition
PRDSystemController.h:34
PRDSystemController::projectCSCHits
bool projectCSCHits() const
Definition
PRDSystemController.cxx:559
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::CscPrepDataContainer
MuonPrepDataContainerT< CscPrepData > CscPrepDataContainer
Definition
MuonPrepDataContainer.h:97
Generated on
for ATLAS Offline Software by
1.17.0