CMS 3D CMS Logo

CSCCrateMapValues.h
Go to the documentation of this file.
1 #ifndef _CSCCRATEMAPVALUES_H
2 #define _CSCCRATEMAPVALUES_H
3 
4 #include <memory>
14 
21 
23 public:
25  ~CSCCrateMapValues() override;
26 
27  typedef std::unique_ptr<CSCCrateMap> ReturnType;
28 
29  inline static CSCCrateMap *fillCrateMap();
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  CSCCrateMap *mapobj = new CSCCrateMap();
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  int crate_cscid;
55 
56  /* This is version for 540 chambers. */
57  for (i = 1; i <= 2; ++i) {
58  for (j = 1; j <= 4; ++j) {
59  if (j == 1)
60  r = 3;
61  //else if(j==4) r=1;
62  else
63  r = 2;
64  for (k = 1; k <= r; ++k) {
65  if (j > 1 && k == 1)
66  c = 18;
67  else
68  c = 36;
69  for (l = 1; l <= c; ++l) {
70  chamberid = i * 100000 + j * 10000 + k * 1000 + l * 10;
71  map.chamber(chamberid, &item);
72  crate_cscid = item.crateid * 10 + item.cscid;
73  mapobj->crate_map[crate_cscid] = item;
74  count = count + 1;
75  }
76  }
77  }
78  }
79  return mapobj;
80 }
81 
82 #endif
CSCCrateMap::crate_map
CSCMap crate_map
Definition: CSCCrateMap.h:25
CSCCrateMapValues::produceCrateMap
CSCCrateMapValues::ReturnType produceCrateMap(const CSCCrateMapRcd &)
Definition: CSCCrateMapValues.cc:28
mps_fire.i
i
Definition: mps_fire.py:428
CSCCrateMapRcd.h
ESHandle.h
CSCCrateMapValues
Definition: CSCCrateMapValues.h:22
CSCCrateMapValues::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
Definition: CSCCrateMapValues.cc:33
edm::ValidityInterval
Definition: ValidityInterval.h:28
ESProducer.h
CSCCrateMapValues.h
CSCCrateMapValues::CSCCrateMapValues
CSCCrateMapValues(const edm::ParameterSet &)
Definition: CSCCrateMapValues.cc:10
edm::EventSetupRecordIntervalFinder
Definition: EventSetupRecordIntervalFinder.h:33
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
CSCDetId.h
MakerMacros.h
CSCCrateMapValues::fillCrateMap
static CSCCrateMap * fillCrateMap()
Definition: CSCCrateMapValues.h:45
CSCMapItem.h
submitPVResolutionJobs.count
count
Definition: submitPVResolutionJobs.py:352
dqmdumpme.k
k
Definition: dqmdumpme.py:60
edm::IOVSyncValue
Definition: IOVSyncValue.h:31
EventSetupRecordIntervalFinder.h
SourceFactory.h
CSCMapItem::MapItem
Definition: CSCMapItem.h:13
CSCCrateMapValues::~CSCCrateMapValues
~CSCCrateMapValues() override
Definition: CSCCrateMapValues.cc:18
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
cscmap1
Definition: CSCMap1.h:9
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
alignCSCRings.r
r
Definition: alignCSCRings.py:93
Frameworkfwd.h
CSCCrateMapRcd
Definition: CSCCrateMapRcd.h:5
EventSetup.h
CSCCrateMap
Definition: CSCCrateMap.h:11
edm::ESProducer
Definition: ESProducer.h:104
genParticles_cff.map
map
Definition: genParticles_cff.py:11
ParameterSet.h
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
CSCMap1.h
CSCCrateMapValues::ReturnType
std::unique_ptr< CSCCrateMap > ReturnType
Definition: CSCCrateMapValues.h:27
CSCCrateMap.h