ATLAS Offline Software
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
}
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
PRDHandle_CSC.h
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_CSC::Imp
Definition:
PRDCollHandle_CSC.cxx:24
PRDCollHandle_CSC::addPRD
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
Definition:
PRDCollHandle_CSC.cxx:62
VP1StdCollection::largeChangesBegin
virtual void largeChangesBegin()
Definition:
VP1StdCollection.cxx:228
PRDSysCommonData
Definition:
PRDSysCommonData.h:35
PRDCollHandle_CSC::Imp::attempted_detmgrload
bool attempted_detmgrload
Definition:
PRDCollHandle_CSC.cxx:26
PRDCollHandle_CSC::m_project
bool m_project
Definition:
PRDCollHandle_CSC.h:39
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
VP1DetInfo.h
PRDCollHandleBase
Definition:
PRDCollHandleBase.h:25
PRDCollHandle_CSC::availableCollections
static QStringList availableCollections(IVP1System *)
Definition:
PRDCollHandle_CSC.cxx:18
PRDCollHandle_CSC::~PRDCollHandle_CSC
virtual ~PRDCollHandle_CSC()
Definition:
PRDCollHandle_CSC.cxx:42
IVP1System
Definition:
IVP1System.h:36
CscPrepData.h
PRDSystemController::projectCSCHits
bool projectCSCHits() const
Definition:
PRDSystemController.cxx:559
PRDCollHandle_CSC::m_d
Imp * m_d
Definition:
PRDCollHandle_CSC.h:35
Muon::CscPrepData
Class representing clusters from the CSC.
Definition:
CscPrepData.h:39
PRDHandle_CSC
Definition:
PRDHandle_CSC.h:13
IVP13DSystem.h
PRDCollHandle_CSC::PRDCollHandle_CSC
PRDCollHandle_CSC(PRDSysCommonData *, const QString &key)
Definition:
PRDCollHandle_CSC.cxx:33
PRDCollHandle_CSC.h
PRDCollHandle_CSC::Imp::muondetmgr
const MuonGM::MuonDetectorManager * muondetmgr
Definition:
PRDCollHandle_CSC.cxx:28
PRDDetType
Definition:
PRDDetTypes.h:10
PRDCollHandle_CSC::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
Definition:
PRDCollHandle_CSC.cxx:55
Trk::PrepRawData
Definition:
PrepRawData.h:62
CscPrepDataContainer.h
PRDCollHandle_CSC::defaultColor
virtual QColor defaultColor() const override
Definition:
PRDCollHandle_CSC.cxx:48
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
PRDSystemController.h
VP1SGContentsHelper
Definition:
VP1SGContentsHelper.h:26
VP1StdCollection::largeChangesEnd
virtual void largeChangesEnd()
Definition:
VP1StdCollection.cxx:239
PRDCollHandle_CSC::setProjectionMode
void setProjectionMode(bool)
Definition:
PRDCollHandle_CSC.cxx:69
CscIdHelper
Definition:
CscIdHelper.h:52
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_CSC::Imp::idhelper
const CscIdHelper * idhelper
Definition:
PRDCollHandle_CSC.cxx:29
calibdata.cd
cd
Definition:
calibdata.py:51
VP1JobConfigInfo.h
PRDHandleBase
Definition:
PRDHandleBase.h:35
CSC
@ CSC
Definition:
RegSelEnums.h:34
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 Thu Nov 7 2024 21:24:07 for ATLAS Offline Software by
1.8.18