Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
{
8
return
(
crate_map
.find(key))->
second
;
9
}
10
11
CSCDetId
CSCCrateMap::detId
(
int
vme,
int
dmb,
int
cfeb,
int
layer )
const
{
12
int
cscid = dmb;
13
if
( dmb >= 6 ) --cscid;
14
int
key
= vme*10 + cscid;
15
const
CSCMapItem::MapItem
& mitem = this->
item
( key );
16
int
ie = mitem.
endcap
;
17
int
is = mitem.
station
;
18
int
ir = mitem.
ring
;
19
int
ic = mitem.
chamber
;
20
21
// Now sort out ME1a from ME11-combined
22
// cfeb =0-3 for ME1b, cfeb=4 for ME1a (pre-LS1) cfeb=4-6 for ME1a (post-LS1)
23
if
( is == 1 && ir == 1 && cfeb >= 4 && cfeb <=6 ) {
24
// This is ME1a region
25
ir = 4;
// reset from 1 to 4 which flags ME1a
26
}
27
return
CSCDetId
( ie, is, ir, ic, layer );
28
}
CSCDetId
CSCDetId
Definition:
RecoLocalMuon_RECO.doi:36
CSCMapItem::MapItem::chamber
int chamber
Definition:
CSCMapItem.h:19
CSCDetId
Definition:
CSCDetId.h:27
CSCCrateMap::CSCCrateMap
CSCCrateMap()
Definition:
CSCCrateMap.cc:3
CSCCrateMap::detId
CSCDetId detId(int vme, int dmb, int cfeb, int layer=0) const
Definition:
CSCCrateMap.cc:11
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:250
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
combine.key
list key
Definition:
combine.py:13
CSCCrateMap::crate_map
CSCMap crate_map
Definition:
CSCCrateMap.h:25
CSCCrateMap.h
Generated for CMSSW Reference Manual by
1.8.5