CMS 3D CMS Logo

EcalTrigPrimSpikeESProducer.cc
Go to the documentation of this file.
1 // user include files
3 
6 
7 //
8 // constructors and destructor
9 //
11  : zeroThresh_(iConfig.getUntrackedParameter<uint32_t>("TCCZeroingThreshold", 0)) {
12  // Indicate we produce the spike record
14 
15  // Cache all EB TT raw DetIDs
16  for (unsigned int i = 1; i <= 17; ++i) {
17  for (unsigned int j = 1; j <= 72; ++j) {
18  EcalTrigTowerDetId posTT(1, EcalBarrel, i, j);
19  EcalTrigTowerDetId negTT(-1, EcalBarrel, i, j);
20  towerIDs_.push_back(posTT.rawId());
21  towerIDs_.push_back(negTT.rawId());
22  }
23  }
24 }
25 
27 
28 // ------------ method called to produce the data ------------
29 std::unique_ptr<EcalTPGSpike> EcalTrigPrimSpikeESProducer::produceSpike(const EcalTPGSpikeRcd &iRecord) {
30  auto prod = std::make_unique<EcalTPGSpike>();
31  for (std::vector<uint32_t>::const_iterator it = towerIDs_.begin(); it != towerIDs_.end(); ++it) {
32  prod->setValue(*it, zeroThresh_);
33  }
34  return prod;
35 }
mps_fire.i
i
Definition: mps_fire.py:428
MessageLogger.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
EcalTrigPrimSpikeESProducer::EcalTrigPrimSpikeESProducer
EcalTrigPrimSpikeESProducer(const edm::ParameterSet &)
Definition: EcalTrigPrimSpikeESProducer.cc:10
EcalBarrel
Definition: EcalSubdetector.h:10
dumpMFGeometry_cfg.prod
prod
Definition: dumpMFGeometry_cfg.py:24
EcalTPGSpikeRcd
Definition: EcalTPGSpikeRcd.h:5
EcalTrigTowerDetId.h
EcalTrigPrimSpikeESProducer::towerIDs_
std::vector< uint32_t > towerIDs_
Definition: EcalTrigPrimSpikeESProducer.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
EcalTrigPrimSpikeESProducer::~EcalTrigPrimSpikeESProducer
~EcalTrigPrimSpikeESProducer() override
Definition: EcalTrigPrimSpikeESProducer.cc:26
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
EcalTrigPrimSpikeESProducer.h
EcalTrigPrimSpikeESProducer::zeroThresh_
uint16_t zeroThresh_
Definition: EcalTrigPrimSpikeESProducer.h:29
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
EcalTrigPrimSpikeESProducer::produceSpike
std::unique_ptr< EcalTPGSpike > produceSpike(const EcalTPGSpikeRcd &)
Definition: EcalTrigPrimSpikeESProducer.cc:29