CMS 3D CMS Logo

CSCChamberMapValues.h
Go to the documentation of this file.
1 #ifndef _CSCCHAMBERMAPVALUES_H
2 #define _CSCCHAMBERMAPVALUES_H
3 
4 #include <memory>
14 
21 
23 public:
25  ~CSCChamberMapValues() override;
26 
27  typedef std::unique_ptr<CSCChamberMap> ReturnType;
28 
29  inline static CSCChamberMap *fillChamberMap();
30 
32 
33 private:
34  // ----------member data ---------------------------
36  const edm::IOVSyncValue &,
37  edm::ValidityInterval &) override;
38 };
39 
40 #include <fstream>
41 #include <vector>
42 #include <iostream>
43 
44 // to workaround plugin library
46  CSCChamberMap *mapobj = new CSCChamberMap();
47  cscmap1 map;
49 
50  int i, j, k, l; //i - endcap, j - station, k - ring, l - chamber.
51  int r, c; //r - number of rings, c - number of chambers.
52  int count = 0;
53  int chamberid;
54 
55  /* This is version for 540 chambers. */
56  for (i = 1; i <= 2; ++i) {
57  for (j = 1; j <= 4; ++j) {
58  if (j == 1)
59  r = 3;
60  //else if(j==4) r=1;
61  else
62  r = 2;
63  for (k = 1; k <= r; ++k) {
64  if (j > 1 && k == 1)
65  c = 18;
66  else
67  c = 36;
68  for (l = 1; l <= c; ++l) {
69  chamberid = i * 100000 + j * 10000 + k * 1000 + l * 10;
70  map.chamber(chamberid, &item);
71  mapobj->ch_map[chamberid] = item;
72  count = count + 1;
73  }
74  }
75  }
76  }
77  return mapobj;
78 }
79 
80 #endif
mps_fire.i
i
Definition: mps_fire.py:355
CSCChamberMapValues::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: CSCChamberMapValues.cc:33
CSCChamberMapValues::fillChamberMap
static CSCChamberMap * fillChamberMap()
Definition: CSCChamberMapValues.h:45
ESHandle.h
CSCChamberMapRcd.h
edm::ValidityInterval
Definition: ValidityInterval.h:28
ESProducer.h
CSCChamberMapValues::ReturnType
std::unique_ptr< CSCChamberMap > ReturnType
Definition: CSCChamberMapValues.h:27
CSCChamberMapValues.h
edm::EventSetupRecordIntervalFinder
Definition: EventSetupRecordIntervalFinder.h:33
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
CSCDetId.h
CSCChamberMapValues::CSCChamberMapValues
CSCChamberMapValues(const edm::ParameterSet &)
Definition: CSCChamberMapValues.cc:10
MakerMacros.h
CSCChamberMapValues::~CSCChamberMapValues
~CSCChamberMapValues() override
Definition: CSCChamberMapValues.cc:18
CSCMapItem.h
dqmdumpme.k
k
Definition: dqmdumpme.py:60
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
EventSetupRecordIntervalFinder.h
SourceFactory.h
CSCMapItem::MapItem
Definition: CSCMapItem.h:13
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
CSCChamberMapValues::produceChamberMap
ReturnType produceChamberMap(const CSCChamberMapRcd &)
Definition: CSCChamberMapValues.cc:28
cscmap1
Definition: CSCMap1.h:9
KineDebug3::count
void count()
Definition: KinematicConstrainedVertexUpdatorT.h:21
CSCChamberMap.h
CSCChamberMap
Definition: CSCChamberMap.h:11
CSCChamberMap::ch_map
CSCMap ch_map
Definition: CSCChamberMap.h:41
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
alignCSCRings.r
r
Definition: alignCSCRings.py:93
Frameworkfwd.h
CSCChamberMapRcd
Definition: CSCChamberMapRcd.h:5
EventSetup.h
edm::ESProducer
Definition: ESProducer.h:101
CSCChamberMapValues
Definition: CSCChamberMapValues.h:22
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ParameterSet.h
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
CSCMap1.h