Main Page
Namespaces
Classes
Package Documentation
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
}
CSCMapItem::MapItem::chamber
int chamber
Definition:
CSCMapItem.h:19
CSCDetId
Definition:
CSCDetId.h:26
CSCCrateMap::CSCCrateMap
CSCCrateMap()
Definition:
CSCCrateMap.cc:3
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
CSCMapItem::MapItem::endcap
int endcap
Definition:
CSCMapItem.h:16
CSCCrateMap::~CSCCrateMap
~CSCCrateMap()
Definition:
CSCCrateMap.cc:5
edm::second
U second(std::pair< T, U > const &p)
Definition:
ParameterSet.cc:215
CSCMapItem::MapItem
Definition:
CSCMapItem.h:13
CSCMapItem::MapItem::ring
int ring
Definition:
CSCMapItem.h:18
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::crate_map
CSCMap crate_map
Definition:
CSCCrateMap.h:25
CSCCrateMap.h
Generated for CMSSW Reference Manual by
1.8.11