CMS 3D CMS Logo

MTDTopologyEP.cc
Go to the documentation of this file.
1 #include "MTDTopologyEP.h"
9 
11 {
12  edm::LogInfo("MTD") << "MTDTopologyEP::MTDTopologyEP";
13 
14  setWhatProduced(this);
15 }
16 
18 {
19 }
20 
21 void
23 {
25  descriptions.add( "mtdTopology", ttc );
26 }
27 
30 {
31  edm::LogInfo("MTDTopologyEP") << "MTDTopologyEP::produce(const MTDTopologyRcd& iRecord)";
33  iRecord.getRecord<PMTDParametersRcd>().get( ptp );
34  fillParameters( *ptp );
35 
36  ReturnType myTopo( new MTDTopology( btlVals_, etlVals_ ));
37 
38  return myTopo ;
39 }
40 
41 void
43 {
44  btlVals_.sideStartBit_ = ptp.vitems_[0].vpars_[0]; // 16
45  btlVals_.layerStartBit_ = ptp.vitems_[0].vpars_[1]; // 16
46  btlVals_.trayStartBit_ = ptp.vitems_[0].vpars_[2]; // 8
47  btlVals_.moduleStartBit_ = ptp.vitems_[0].vpars_[3]; // 2
48  btlVals_.sideMask_ = ptp.vitems_[0].vpars_[4]; // 0xF
49  btlVals_.layerMask_ = ptp.vitems_[0].vpars_[5]; // 0xF
50  btlVals_.trayMask_ = ptp.vitems_[0].vpars_[6]; // 0xFF
51  btlVals_.moduleMask_ = ptp.vitems_[0].vpars_[7]; // 0x3F
52 
53  etlVals_.sideStartBit_ = ptp.vitems_[1].vpars_[0];
54  etlVals_.layerStartBit_ = ptp.vitems_[1].vpars_[1];
55  etlVals_.ringStartBit_ = ptp.vitems_[1].vpars_[2];
56  etlVals_.moduleStartBit_ = ptp.vitems_[1].vpars_[3];
57  etlVals_.sideMask_ = ptp.vitems_[1].vpars_[4];
58  etlVals_.layerMask_ = ptp.vitems_[1].vpars_[5];
59  etlVals_.ringMask_ = ptp.vitems_[1].vpars_[6];
60  etlVals_.moduleMask_ = ptp.vitems_[1].vpars_[7];
61 }
62 
64 
unsigned int ringMask_
Definition: MTDTopology.h:39
MTDTopologyEP(const edm::ParameterSet &)
std::vector< Item > vitems_
unsigned int sideStartBit_
Definition: MTDTopology.h:22
std::shared_ptr< MTDTopology > ReturnType
Definition: MTDTopologyEP.h:20
unsigned int sideStartBit_
Definition: MTDTopology.h:33
unsigned int moduleMask_
Definition: MTDTopology.h:29
unsigned int moduleStartBit_
Definition: MTDTopology.h:25
unsigned int layerStartBit_
Definition: MTDTopology.h:34
unsigned int trayMask_
Definition: MTDTopology.h:28
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
unsigned int moduleStartBit_
Definition: MTDTopology.h:36
unsigned int sideMask_
Definition: MTDTopology.h:26
ReturnType produce(const MTDTopologyRcd &)
~MTDTopologyEP(void) override
void fillParameters(const PMTDParameters &)
unsigned int trayStartBit_
Definition: MTDTopology.h:24
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned int ringStartBit_
Definition: MTDTopology.h:35
unsigned int moduleMask_
Definition: MTDTopology.h:40
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MTDTopology::ETLValues etlVals_
Definition: MTDTopologyEP.h:30
unsigned int layerStartBit_
Definition: MTDTopology.h:23
unsigned int sideMask_
Definition: MTDTopology.h:37
unsigned int layerMask_
Definition: MTDTopology.h:27
MTDTopology::BTLValues btlVals_
Definition: MTDTopologyEP.h:29
unsigned int layerMask_
Definition: MTDTopology.h:38