Description: [one line class summary]
Implementation: [Notes on implementation]
Definition at line 46 of file RecHitCorrector.cc.
Definition at line 89 of file RecHitCorrector.cc.
References AlignmentProducer_cff::calibrations, ewkTauDQM_cfi::channels, 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_.
105 edm::LogWarning(
"CastorRecHitCorrector") <<
"No valid CastorRecHitCollection found, please check the InputLabel...";
109 auto rec = std::make_unique<CastorRecHitCollection>();
111 for (
unsigned int i = 0;
i < rechits->
size();
i++) {
120 correctedenergy *= calibrations.
gain(capid);
127 for (
auto channel : channels) {
128 if (channel.rawId() == detcell.
rawId()) {
130 if (mydigistatus->
getValue() == 2989) {
138 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