CondFormats
CSCObjects
src
CSCCrateMap.cc
Go to the documentation of this file.
1
#include <
CondFormats/CSCObjects/interface/CSCCrateMap.h
>
2
3
CSCCrateMap::CSCCrateMap
() {}
4
5
CSCCrateMap::~CSCCrateMap
() {}
6
7
const
CSCMapItem::MapItem
&
CSCCrateMap::item
(
int
key
)
const
{
return
(
crate_map
.find(
key
))->
second
; }
8
9
CSCDetId
CSCCrateMap::detId
(
int
vme,
int
dmb,
int
cfeb,
int
layer)
const
{
10
int
cscid = dmb;
11
if
(dmb >= 6)
12
--cscid;
13
int
key
= vme * 10 + cscid;
14
const
CSCMapItem::MapItem
& mitem = this->
item
(key);
15
int
ie = mitem.
endcap
;
16
int
is = mitem.
station
;
17
int
ir = mitem.
ring
;
18
int
ic = mitem.
chamber
;
19
20
// Now sort out ME1a from ME11-combined
21
// cfeb =0-3 for ME1b, cfeb=4 for ME1a (pre-LS1) cfeb=4-6 for ME1a (post-LS1)
22
if
(is == 1 && ir == 1 && cfeb >= 4 && cfeb <= 6) {
23
// This is ME1a region
24
ir = 4;
// reset from 1 to 4 which flags ME1a
25
}
26
return
CSCDetId
(ie, is, ir, ic, layer);
27
}
CSCCrateMap::crate_map
CSCMap crate_map
Definition:
CSCCrateMap.h:25
CSCMapItem::MapItem::endcap
int endcap
Definition:
CSCMapItem.h:16
CSCCrateMap::CSCCrateMap
CSCCrateMap()
Definition:
CSCCrateMap.cc:3
edm::second
U second(std::pair< T, U > const &p)
Definition:
ParameterSet.cc:215
CSCMapItem::MapItem::chamber
int chamber
Definition:
CSCMapItem.h:19
CSCMapItem::MapItem::ring
int ring
Definition:
CSCMapItem.h:18
CSCCrateMap::~CSCCrateMap
~CSCCrateMap()
Definition:
CSCCrateMap.cc:5
CSCMapItem::MapItem
Definition:
CSCMapItem.h:13
CSCDetId
Definition:
CSCDetId.h:26
CSCMapItem::MapItem::station
int station
Definition:
CSCMapItem.h:17
CSCCrateMap::item
const CSCMapItem::MapItem & item(int key) const
Accessor for item according to a key.
Definition:
CSCCrateMap.cc:7
CSCCrateMap::detId
CSCDetId detId(int vme, int dmb, int cfeb, int layer=0) const
Definition:
CSCCrateMap.cc:9
crabWrapper.key
key
Definition:
crabWrapper.py:19
CSCCrateMap.h
Generated for CMSSW Reference Manual by
1.8.16