ATLAS Offline Software
graphics
VP1
VP1Systems
VP1PRDSystems
src
PRDCollHandle_CSC_Strip.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_Strip.h
"
6
#include "
VP1Base/IVP13DSystem.h
"
7
#include "
VP1PRDSystems/PRDHandle_CSC_Strip.h
"
8
#include "
MuonPrepRawData/CscStripPrepData.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/CscStripPrepDataContainer.h
"
16
17
//____________________________________________________________________
18
QStringList
PRDCollHandle_CSC_Strip::availableCollections
(
IVP1System
*
sys
)
19
{
20
return
VP1JobConfigInfo::hasMuonGeometry
() ?
VP1SGContentsHelper
(
sys
).
getKeys
<
Muon::CscStripPrepDataContainer
>() : QStringList();
21
}
22
23
//____________________________________________________________________
24
class
PRDCollHandle_CSC_Strip::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_Strip::PRDCollHandle_CSC_Strip
(
PRDSysCommonData
*
cd
,
const
QString&
key
)
34
:
PRDCollHandleBase
(
PRDDetType
::CSCstrip,
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_Strip::~PRDCollHandle_CSC_Strip
()
43
{
44
delete
m_d
;
45
}
46
47
//____________________________________________________________________
48
QColor
PRDCollHandle_CSC_Strip::defaultColor
()
const
49
{
50
return
QColor::fromRgbF( 0.1, 0.5, 1.0);
//blue
51
52
}
53
54
//____________________________________________________________________
55
void
PRDCollHandle_CSC_Strip::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_Strip::addPRD
(
const
Trk::PrepRawData
* prd )
63
{
64
assert(
dynamic_cast<
const
Muon::CscStripPrepData
*
>
(prd));
65
return
new
PRDHandle_CSC_Strip
(
this
,
static_cast<
const
Muon::CscStripPrepData
*
>
(prd));
66
}
67
68
//____________________________________________________________________
69
void
PRDCollHandle_CSC_Strip::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
CscStripPrepDataContainer.h
PRDCollHandle_CSC_Strip::~PRDCollHandle_CSC_Strip
virtual ~PRDCollHandle_CSC_Strip()
Definition:
PRDCollHandle_CSC_Strip.cxx:42
PRDCollHandle_CSC_Strip::Imp
Definition:
PRDCollHandle_CSC_Strip.cxx:24
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
CscStripPrepData.h
PRDCollHandle_CSC_Strip::Imp::attempted_detmgrload
bool attempted_detmgrload
Definition:
PRDCollHandle_CSC_Strip.cxx:26
VP1StdCollection::largeChangesBegin
virtual void largeChangesBegin()
Definition:
VP1StdCollection.cxx:228
PRDSysCommonData
Definition:
PRDSysCommonData.h:35
PRDCollHandle_CSC_Strip::setProjectionMode
void setProjectionMode(bool)
Definition:
PRDCollHandle_CSC_Strip.cxx:69
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
PRDCollHandle_CSC_Strip::availableCollections
static QStringList availableCollections(IVP1System *)
Definition:
PRDCollHandle_CSC_Strip.cxx:18
Muon::CscStripPrepData
Class representing the raw data of one CSC strip (for clusters look at Muon::CscPrepData).
Definition:
CscStripPrepData.h:40
PRDCollHandleBase
Definition:
PRDCollHandleBase.h:25
IVP1System
Definition:
IVP1System.h:36
PRDCollHandle_CSC_Strip::Imp::muondetmgr
const MuonGM::MuonDetectorManager * muondetmgr
Definition:
PRDCollHandle_CSC_Strip.cxx:28
PRDSystemController::projectCSCHits
bool projectCSCHits() const
Definition:
PRDSystemController.cxx:559
PRDHandle_CSC_Strip
Definition:
PRDHandle_CSC_Strip.h:13
PRDCollHandle_CSC_Strip::m_d
Imp * m_d
Definition:
PRDCollHandle_CSC_Strip.h:35
IVP13DSystem.h
PRDDetType
Definition:
PRDDetTypes.h:10
Trk::PrepRawData
Definition:
PrepRawData.h:62
PRDHandle_CSC_Strip.h
plotBeamSpotMon.b
b
Definition:
plotBeamSpotMon.py:77
PRDSystemController.h
PRDCollHandle_CSC_Strip::Imp::idhelper
const CscIdHelper * idhelper
Definition:
PRDCollHandle_CSC_Strip.cxx:29
VP1SGContentsHelper
Definition:
VP1SGContentsHelper.h:26
VP1StdCollection::largeChangesEnd
virtual void largeChangesEnd()
Definition:
VP1StdCollection.cxx:239
PRDCollHandle_CSC_Strip::addPRD
virtual PRDHandleBase * addPRD(const Trk::PrepRawData *) override
Definition:
PRDCollHandle_CSC_Strip.cxx:62
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_Strip::PRDCollHandle_CSC_Strip
PRDCollHandle_CSC_Strip(PRDSysCommonData *, const QString &key)
Definition:
PRDCollHandle_CSC_Strip.cxx:33
calibdata.cd
cd
Definition:
calibdata.py:51
VP1JobConfigInfo.h
PRDHandleBase
Definition:
PRDHandleBase.h:35
PRDCollHandle_CSC_Strip.h
PRDCollHandle_CSC_Strip::m_project
bool m_project
Definition:
PRDCollHandle_CSC_Strip.h:39
PRDCollHandle_CSC_Strip::setupSettingsFromControllerSpecific
virtual void setupSettingsFromControllerSpecific(PRDSystemController *) override
Definition:
PRDCollHandle_CSC_Strip.cxx:55
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
PRDCollHandle_CSC_Strip::defaultColor
virtual QColor defaultColor() const override
Definition:
PRDCollHandle_CSC_Strip.cxx:48
mapkey::key
key
Definition:
TElectronEfficiencyCorrectionTool.cxx:37
Generated on Sun Dec 22 2024 21:16:38 for ATLAS Offline Software by
1.8.18