Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 48 of file RecHitCorrector.cc.
Implements edm::EDProducer.
Definition at line 102 of file RecHitCorrector.cc.
References gather_cfg::cout, doInterCalib_, CaloRecHit::energy(), factor_, CastorCalibrations::gain(), edm::EventSetup::get(), edm::Event::getByLabel(), CastorChannelStatus::getValue(), i, CastorRecHit::id(), inputLabel_, HcalCastorDetId::module(), convertSQLiteXML::ok, AlCaHLTBitMon_ParallelJobs::p, edm::Event::put(), DetId::rawId(), HI_PhotonSkim_cff::rechits, CaloRecHit::time(), and cond::rpcobgas::time.
118 if (!
rechits.isValid())
std::cout <<
"No valid CastorRecHitCollection found, please check the InputLabel..." << std::endl;
124 for (
unsigned int i=0;
i<
rechits->size();
i++) {
135 double correctedenergy = 0;
138 correctedenergy = 0.5*fC*calibrations.
gain(capid);
141 correctedenergy = fC*calibrations.
gain(capid);
145 correctedenergy = 0.5*fC;
147 correctedenergy = fC;
154 std::vector<DetId> channels = myqual->getAllChannels();
156 for (std::vector<DetId>::iterator channel = channels.begin();channel != channels.end();channel++) {
157 if (channel->rawId() == detcell.
rawId()) {
160 if (mydigistatus->
getValue() == 2989) ok =
false;
166 rec->push_back(*correctedhit);
int module() const
get the module (1-2 for EM, 1-12 for HAD)
HcalCastorDetId id() const
get the id
uint32_t rawId() const
get the raw id
uint32_t getValue() const
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
double gain(int fCapId) const
get gain for capid=0..3
edm::InputTag inputLabel_