L1Trigger
L1TMuonOverlapPhase1
src
MuonStubsInput.cc
Go to the documentation of this file.
1
/*
2
* MuonStubsInput.cc
3
*
4
* Created on: Jan 31, 2019
5
* Author: Karol Bunkowski kbunkow@cern.ch
6
*/
7
8
#include "
L1Trigger/L1TMuonOverlapPhase1/interface/MuonStubsInput.h
"
9
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
10
11
MuonStubsInput::MuonStubsInput
(
const
ProcConfigurationBase
*
config
)
12
:
config
(
config
), muonStubsInLayers(
config
->
nLayers
()) {}
13
14
std::ostream&
operator<<
(std::ostream&
out
,
const
MuonStubsInput
& stubsInput) {
15
out
<<
"MuonStubsInput: "
<< std::endl;
16
for
(
auto
& layerStubs : stubsInput.
getMuonStubs
()) {
17
for
(
auto
& stub : layerStubs) {
18
out
<< (*stub) << std::endl;
19
}
20
}
21
return
out
;
22
}
23
24
//gives stub phiHw or phiBHw - depending which layer is requested
25
//assumes that the banidg layer
26
int
MuonStubsInput::getPhiHw
(
unsigned
int
iLayer,
unsigned
int
iInput)
const
{
27
if
(
config
->isBendingLayer(iLayer)) {
28
if
(iInput >=
muonStubsInLayers
[iLayer - 1].
size
())
29
return
MuonStub::EMTPY_PHI
;
30
return
muonStubsInLayers
[iLayer - 1][iInput]->phiBHw;
31
}
else
{
32
if
(iInput >=
muonStubsInLayers
[iLayer].
size
())
33
return
MuonStub::EMTPY_PHI
;
34
return
muonStubsInLayers
[iLayer][iInput]->phiHw;
35
}
36
}
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
MuonStubsInput
Definition:
MuonStubsInput.h:15
MessageLogger.h
ProcConfigurationBase
Definition:
ProcConfigurationBase.h:12
operator<<
std::ostream & operator<<(std::ostream &out, const MuonStubsInput &stubsInput)
Definition:
MuonStubsInput.cc:14
config
Definition:
config.py:1
MuonTCMETValueMapProducer_cff.nLayers
nLayers
Definition:
MuonTCMETValueMapProducer_cff.py:38
MuonStubsInput::getMuonStubs
virtual MuonStubPtrs2D & getMuonStubs()
Definition:
MuonStubsInput.h:25
MuonStubsInput::getPhiHw
virtual int getPhiHw(unsigned int iLayer, unsigned int iInput) const
Definition:
MuonStubsInput.cc:26
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
MuonStubsInput.h
MuonStubsInput::MuonStubsInput
MuonStubsInput(const ProcConfigurationBase *config)
Definition:
MuonStubsInput.cc:11
MuonStub::EMTPY_PHI
static const int EMTPY_PHI
Definition:
MuonStub.h:43
MuonStubsInput::muonStubsInLayers
MuonStubPtrs2D muonStubsInLayers
Definition:
MuonStubsInput.h:39
Generated for CMSSW Reference Manual by
1.8.14