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>();
57 tok_PFCuts = esConsumes<HcalPFCuts, HcalPFCutsRcd>();
59 tok_RespCorrs = esConsumes<HcalRespCorrs, HcalRespCorrsRcd>();
62 tok_TimeCorrs = esConsumes<HcalTimeCorrs, HcalTimeCorrsRcd>();
63 tok_LUTCorrs = esConsumes<HcalLUTCorrs, HcalLUTCorrsRcd>();
64 tok_PFCorrs = esConsumes<HcalPFCorrs, HcalPFCorrsRcd>();
68 tok_DcsMap = esConsumes<HcalDcsMap, HcalDcsMapRcd>();
73 tok_MCParams = esConsumes<HcalMCParams, HcalMCParamsRcd>();
85 template <
class S,
class SRcd>
91 template <
class S,
class SRcd>
140 template <
class S,
class SRcd>
147 const S& myobject =
context.getData(tok);
152 std::cout <<
"error: invalid IOV sync value !" << std::endl;
156 template <
class S,
class SRcd>
166 myobject.setTopo(topo);
171 std::cout <<
"error: invalid IOV sync value !" << std::endl;
177 int myrun =
e.id().run();
178 std::ostringstream
file;
180 std::ofstream outStream(
file.str().c_str());
181 std::cout <<
"HcalDumpConditions: ---- Dumping " <<
name <<
" ----" << std::endl;
189 std::cout <<
"HcalDumpConditions::analyze-> I AM IN RUN NUMBER " <<
e.id().run() << std::endl;
201 dumpIt<HcalPedestalWidths, HcalPedestalWidthsRcd>(
203 dumpIt<HcalPedestals, HcalPedestalsRcd>(
205 dumpIt<HcalPedestalWidths, HcalPedestalWidthsRcd>(
210 dumpIt<HcalChannelQuality, HcalChannelQualityRcd>(
214 dumpIt<HcalL1TriggerObjects, HcalL1TriggerObjectsRcd>(
219 dumpIt<HcalValidationCorrs, HcalValidationCorrsRcd>(
226 dumpIt<HcalLongRecoParams, HcalLongRecoParamsRcd>(
228 dumpIt<HcalZDCLowGainFractions, HcalZDCLowGainFractionsRcd>(
231 dumpIt<HcalFlagHFDigiTimeParams, HcalFlagHFDigiTimeParamsRcd>(
233 dumpIt<HcalSiPMParameters, HcalSiPMParametersRcd>(
235 dumpIt<HcalSiPMCharacteristics, HcalSiPMCharacteristicsRcd>(
237 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
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
#define DEFINE_FWK_MODULE(type)
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
edm::ESGetToken< HcalPFCuts, HcalPFCutsRcd > tok_PFCuts
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)