42 mDumpRequest =
p.getUntrackedParameter<std::vector<std::string> >(
"dump", std::vector<std::string>());
43 m_toktopo = esConsumes<HcalTopology, HcalRecNumberingRecord>();
44 m_tokdb = esConsumes<HcalDbService, HcalDbRecord>();
48 tok_QIEData = esConsumes<HcalQIEData, HcalQIEDataRcd>();
49 tok_QIETypes = esConsumes<HcalQIETypes, HcalQIETypesRcd>();
50 tok_Pedestals = esConsumes<HcalPedestals, HcalPedestalsRcd>();
54 esConsumes<HcalPedestalWidths, HcalPedestalWidthsRcd>(
edm::ESInputTag(
"",
"effective"));
55 tok_Gains = esConsumes<HcalGains, HcalGainsRcd>();
58 tok_RespCorrs = esConsumes<HcalRespCorrs, HcalRespCorrsRcd>();
61 tok_TimeCorrs = esConsumes<HcalTimeCorrs, HcalTimeCorrsRcd>();
62 tok_LUTCorrs = esConsumes<HcalLUTCorrs, HcalLUTCorrsRcd>();
63 tok_PFCorrs = esConsumes<HcalPFCorrs, HcalPFCorrsRcd>();
67 tok_DcsMap = esConsumes<HcalDcsMap, HcalDcsMapRcd>();
72 tok_MCParams = esConsumes<HcalMCParams, HcalMCParamsRcd>();
84 template <
class S,
class SRcd>
90 template <
class S,
class SRcd>
138 template <
class S,
class SRcd>
145 const S& myobject =
context.getData(tok);
150 std::cout <<
"error: invalid IOV sync value !" << std::endl;
154 template <
class S,
class SRcd>
164 myobject.setTopo(topo);
169 std::cout <<
"error: invalid IOV sync value !" << std::endl;
175 int myrun =
e.id().run();
176 std::ostringstream
file;
178 std::ofstream outStream(
file.str().c_str());
179 std::cout <<
"HcalDumpConditions: ---- Dumping " <<
name <<
" ----" << std::endl;
187 std::cout <<
"HcalDumpConditions::analyze-> I AM IN RUN NUMBER " <<
e.id().run() << std::endl;
199 dumpIt<HcalPedestalWidths, HcalPedestalWidthsRcd>(
201 dumpIt<HcalPedestals, HcalPedestalsRcd>(
203 dumpIt<HcalPedestalWidths, HcalPedestalWidthsRcd>(
207 dumpIt<HcalChannelQuality, HcalChannelQualityRcd>(
211 dumpIt<HcalL1TriggerObjects, HcalL1TriggerObjectsRcd>(
216 dumpIt<HcalValidationCorrs, HcalValidationCorrsRcd>(
223 dumpIt<HcalLongRecoParams, HcalLongRecoParamsRcd>(
225 dumpIt<HcalZDCLowGainFractions, HcalZDCLowGainFractionsRcd>(
228 dumpIt<HcalFlagHFDigiTimeParams, HcalFlagHFDigiTimeParamsRcd>(
230 dumpIt<HcalSiPMParameters, HcalSiPMParametersRcd>(
232 dumpIt<HcalSiPMCharacteristics, HcalSiPMCharacteristicsRcd>(
234 dumpIt<HcalTPChannelParameters, HcalTPChannelParametersRcd>(
edm::ESGetToken< HcalChannelQuality, HcalChannelQualityRcd > tok_ChannelQuality
edm::ESGetToken< HcalPedestals, HcalPedestalsRcd > tok_Pedestals_effective
edm::ESGetToken< HcalDbService, HcalDbRecord > m_tokdb
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_RespCorrs
edm::ESGetToken< HcalQIETypes, HcalQIETypesRcd > tok_QIETypes
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< HcalPedestalWidths, HcalPedestalWidthsRcd > tok_PedestalWidths
edm::ESGetToken< HcalTimingParams, HcalTimingParamsRcd > tok_TimingParams
edm::ESGetToken< HcalZDCLowGainFractions, HcalZDCLowGainFractionsRcd > tok_ZDCLowGainFractions
void dumpIt(const std::vector< std::string > &mDumpRequest, const edm::Event &e, const edm::EventSetup &context, const std::string name, const edm::ESGetToken< S, SRcd > tok)
edm::ESGetToken< HcalFrontEndMap, HcalFrontEndMapRcd > tok_FrontEndMap
edm::ESGetToken< HcalQIEData, HcalQIEDataRcd > tok_QIEData
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
edm::ESGetToken< HcalPedestalWidths, HcalPedestalWidthsRcd > tok_PedestalWidths_effective
edm::ESGetToken< HcalZSThresholds, HcalZSThresholdsRcd > tok_ZSThresholds
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > m_toktopo
edm::ESGetToken< HcalLUTCorrs, HcalLUTCorrsRcd > tok_LUTCorrs
edm::ESGetToken< HcalSiPMParameters, HcalSiPMParametersRcd > tok_SiPMParameters
edm::ESGetToken< HcalDcsValues, HcalDcsRcd > tok_DcsValues
edm::ESGetToken< HcalPedestals, HcalPedestalsRcd > tok_Pedestals
edm::ESGetToken< HcalPFCorrs, HcalPFCorrsRcd > tok_PFCorrs
edm::ESGetToken< HcalElectronicsMap, HcalElectronicsMapRcd > tok_ElectronicsMap
edm::ESGetToken< HcalSiPMCharacteristics, HcalSiPMCharacteristicsRcd > tok_SiPMCharacteristics
HcalDumpConditions(edm::ParameterSet const &p)
HcalDumpConditions(int i)
edm::ESGetToken< HcalLutMetadata, HcalLutMetadataRcd > tok_LutMetadata
edm::ESGetToken< HcalFlagHFDigiTimeParams, HcalFlagHFDigiTimeParamsRcd > tok_FlagHFDigiTimeParams
edm::ESGetToken< HcalDcsMap, HcalDcsMapRcd > tok_DcsMap
edm::ESGetToken< HcalTPChannelParameters, HcalTPChannelParametersRcd > tok_TPChannelParameters
edm::ESGetToken< HcalRecoParams, HcalRecoParamsRcd > tok_RecoParams
edm::ESGetToken< HcalGains, HcalGainsRcd > tok_Gains
std::vector< std::string > mDumpRequest
edm::ESGetToken< HcalGainWidths, HcalGainWidthsRcd > tok_GainWidths
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
edm::ESGetToken< HcalValidationCorrs, HcalValidationCorrsRcd > tok_ValidationCorrs
edm::ESGetToken< HcalLongRecoParams, HcalLongRecoParamsRcd > tok_LongRecoParams
void analyze(const edm::Event &e, const edm::EventSetup &c) override
edm::ESGetToken< HcalMCParams, HcalMCParamsRcd > tok_MCParams
edm::ESGetToken< HcalL1TriggerObjects, HcalL1TriggerObjectsRcd > tok_L1TriggerObjects
edm::ESGetToken< HcalTPParameters, HcalTPParametersRcd > tok_TPParameters
~HcalDumpConditions() override
edm::ESGetToken< HcalTimeCorrs, HcalTimeCorrsRcd > tok_TimeCorrs
static const IOVSyncValue & invalidIOVSyncValue()
void writeToFile(const S &myS, const edm::Event &e, const std::string name)