- Author
- E. Garcia - CSU Based on HcalSimpleReconstructor.h by J. Mans
Definition at line 46 of file ZdcHitReconstructor.h.
Definition at line 17 of file ZdcHitReconstructor.cc.
References AuxTSvec_, DetId::Calo, conditionsToken_, gather_cfg::cout, det_, edm::ParameterSet::getParameter(), HcalCalibration, HcalOther, htopoToken_, paramsToken_, qualToken_, saturationFlagSetter_, setSaturationFlags_, sevToken_, jetUpdater_cfi::sort, AlCaHLTBitMon_QueryRunRegistry::string, subdet_, HcalZDCDetId::SubdetectorId, subdetOther_, tok_input_castor, and tok_input_hcal.
18 :
reco_(conf.getParameter<
bool>(
"correctForTimeslew"),
19 conf.getParameter<
bool>(
"correctForPhaseContainment"),
20 conf.getParameter<
double>(
"correctionPhaseNS"),
21 conf.getParameter<
int>(
"recoMethod"),
22 conf.getParameter<
int>(
"lowGainOffset"),
23 conf.getParameter<
double>(
"lowGainFrac")),
32 AuxTSvec_(conf.getParameter<std::vector<int> >(
"AuxTSvec")) {
43 if (!strcasecmp(subd.c_str(),
"ZDC")) {
46 produces<ZDCRecHitCollection>();
47 }
else if (!strcasecmp(subd.c_str(),
"CALIB")) {
50 produces<HcalCalibRecHitCollection>();
52 std::cout <<
"ZdcHitReconstructor is not associated with a specific subdetector!" << std::endl;
56 htopoToken_ = esConsumes<HcalTopology, HcalRecNumberingRecord, edm::Transition::BeginRun>();
57 paramsToken_ = esConsumes<HcalLongRecoParams, HcalLongRecoParamsRcd, edm::Transition::BeginRun>();
60 sevToken_ = esConsumes<HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd>();
T getParameter(std::string const &) const
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > sevToken_
edm::ESGetToken< HcalLongRecoParams, HcalLongRecoParamsRcd > paramsToken_
edm::EDGetTokenT< ZDCDigiCollection > tok_input_hcal
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > qualToken_
HcalOtherSubdetector subdetOther_
HcalADCSaturationFlag * saturationFlagSetter_
edm::EDGetTokenT< ZDCDigiCollection > tok_input_castor
bool setTimingTrustFlags_
edm::ESGetToken< HcalDbService, HcalDbRecord > conditionsToken_
std::vector< int > AuxTSvec_
static constexpr int32_t SubdetectorId
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > htopoToken_
Definition at line 74 of file ZdcHitReconstructor.cc.
References AuxTSvec_, edm::SortedCollection< T, SORT >::begin(), AlignmentProducer_cff::calibrations, DetId::Calo, PixelBaryCentreAnalyzer_cfg::conditions, conditionsToken_, det_, HcalSeverityLevelComputer::dropChannel(), dropZSmarkedPassed_, MillePedeFileConverter_cfg::e, edm::SortedCollection< T, SORT >::empty(), edm::SortedCollection< T, SORT >::end(), options_cfi::eventSetup, HcalChannelStatus::getValue(), HcalCondObjectContainer< Item >::getValues(), mps_fire::i, edm::HandleBase::isValid(), longRecoParams_, eostools::move(), HcalLongRecoParam::noiseTS(), qualToken_, DetId::rawId(), reco_, ZdcSimpleRecAlgo::reconstruct(), saturationFlagSetter_, HcalADCSaturationFlag::setSaturationFlag(), setSaturationFlags_, sevToken_, l1trig_cff::shape, HcalLongRecoParam::signalTS(), edm::SortedCollection< T, SORT >::size(), subdet_, HcalZDCDetId::SubdetectorId, tok_input_castor, tok_input_hcal, and geometryCSVtoXML::xx.
81 std::vector<unsigned int> mySignalTS;
82 std::vector<unsigned int> myNoiseTS;
92 edm::LogInfo(
"ZdcHitReconstructor") <<
"No ZDC info found in either castorDigis or hcalDigis." << std::endl;
98 auto rec = std::make_unique<ZDCRecHitCollection>();
99 rec->reserve(digi->
size());
110 if (
i->zsMarkAndPass())
122 myNoiseTS = myParams->
noiseTS();
125 (rec->back()).setFlags(0);
140 auxflag += ((
i->sample(
AuxTSvec_[0]).capid()) << 28);
141 (rec->back()).setAux(auxflag);
edm::ESGetToken< HcalSeverityLevelComputer, HcalSeverityLevelComputerRcd > sevToken_
std::vector< T >::const_iterator const_iterator
edm::EDGetTokenT< ZDCDigiCollection > tok_input_hcal
const Item * getValues(DetId fId, bool throwOnFail=true) const
std::unique_ptr< HcalLongRecoParams > longRecoParams_
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > qualToken_
const_iterator begin() const
ZDCRecHit reconstruct(const ZDCDataFrame &digi, const std::vector< unsigned int > &myNoiseTS, const std::vector< unsigned int > &mySignalTS, const HcalCoder &coder, const HcalCalibrations &calibs) const
void setSaturationFlag(HBHERecHit &rechit, const HBHEDataFrame &digi)
HcalADCSaturationFlag * saturationFlagSetter_
uint32_t getValue() const
edm::EDGetTokenT< ZDCDigiCollection > tok_input_castor
const_iterator end() const
constexpr uint32_t rawId() const
get the raw id
edm::ESGetToken< HcalDbService, HcalDbRecord > conditionsToken_
std::vector< unsigned int > signalTS() const
std::vector< int > AuxTSvec_
static constexpr int32_t SubdetectorId
std::vector< unsigned int > noiseTS() const
bool dropChannel(const uint32_t &mystatus) const