59 template <
class S,
class SRcd>
90 throw cms::Exception(
"Bad Config") <<
"CastorDumpConditions: No record to dump.";
104 log <<
"I AM IN THE RUN " <<
iEvent.id().run() <<
"\n";
105 log <<
"What to dump? " << std::endl;
107 log <<
"CastorDumpConditions: Empty request \n";
116 dumpIt<CastorElectronicsMap, CastorElectronicsMapRcd>(
mDumpRequest,
iEvent, iSetup,
"ElectronicsMap");
118 dumpIt<CastorPedestals, CastorPedestalsRcd>(
mDumpRequest,
iEvent, iSetup,
"Pedestals");
119 dumpIt<CastorPedestalWidths, CastorPedestalWidthsRcd>(
mDumpRequest,
iEvent, iSetup,
"PedestalWidths");
121 dumpIt<CastorGainWidths, CastorGainWidthsRcd>(
mDumpRequest,
iEvent, iSetup,
"GainWidths");
122 dumpIt<CastorChannelQuality, CastorChannelQualityRcd>(
mDumpRequest,
iEvent, iSetup,
"ChannelQuality");
123 dumpIt<CastorRecoParams, CastorRecoParamsRcd>(
mDumpRequest,
iEvent, iSetup,
"RecoParams");
124 dumpIt<CastorSaturationCorrs, CastorSaturationCorrsRcd>(
mDumpRequest,
iEvent, iSetup,
"SaturationCorrs");
127 template <
class S,
class SRcd>
133 int myrun =
e.id().run();
135 const S& myobject =
context.getData(tok);
137 std::ostringstream
file;
139 std::ofstream outStream(
file.str().c_str());
void analyze(const edm::Event &, const edm::EventSetup &) override
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
T getUntrackedParameter(std::string const &, T const &) const
std::vector< std::string > mDumpRequest
#define DEFINE_FWK_MODULE(type)
void dumpIt(const std::vector< std::string > &mDumpRequest, const edm::Event &e, const edm::EventSetup &context, const std::string name)
bool dumpObject(std::ostream &fOutput, const CastorPedestals &fObject)
CastorDumpConditions(const edm::ParameterSet &)
Log< level::System, true > LogAbsolute