Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 47 of file RecHitCorrector.cc.
Definition at line 99 of file RecHitCorrector.cc.
References AlignmentProducer_cff::calibrations, DEFINE_FWK_MODULE, doInterCalib_, CaloRecHit::energy(), factor_, CastorCalibrations::gain(), edm::EventSetup::get(), CastorCondObjectContainer< Item >::getAllChannels(), edm::Event::getByToken(), CastorDbService::getCastorCalibrations(), CastorChannelStatus::getValue(), CastorCondObjectContainer< Item >::getValues(), mps_fire::i, CastorRecHit::id(), edm::HandleBase::isValid(), eostools::move(), convertSQLiteXML::ok, AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< T >::product(), edm::Event::put(), DetId::rawId(), TrackInfoProducer_cfi::rechits, edm::SortedCollection< T, SORT >::size(), CaloRecHit::time(), ntuplemaker::time, and tok_input_.
115 if (!rechits.
isValid())
edm::LogWarning(
"CastorRecHitCorrector") <<
"No valid CastorRecHitCollection found, please check the InputLabel...";
119 auto rec = std::make_unique<CastorRecHitCollection>();
121 for (
unsigned int i=0;
i<rechits->
size();
i++) {
130 correctedenergy *= calibrations.
gain(capid);
137 for (
auto channel : channels) {
138 if (channel.rawId() == detcell.
rawId()) {
140 if (mydigistatus->
getValue() == 2989) {
148 rec->emplace_back(rechit.
id(),correctedenergy,
time);
constexpr float energy() const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< CastorRecHitCollection > tok_input_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
constexpr uint32_t rawId() const
get the raw id
std::vector< DetId > getAllChannels() const
const CastorCalibrations & getCastorCalibrations(const HcalGenericDetId &fId) const
const Item * getValues(DetId fId, bool throwOnFail=true) const
HcalCastorDetId id() const
get the id
uint32_t getValue() const
constexpr float time() const
double gain(int fCapId) const
get gain for capid=0..3
T const * product() const