59 template <
class S,
class SRcd>
89 if (mDumpRequest.empty()) {
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";
113 LogAbsolute(
"CastorDumpConditions") << *it <<
"\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>
132 if (
std::find(mDumpRequest.begin(), mDumpRequest.end(),
name) != mDumpRequest.end()) {
133 int myrun = e.
id().
run();
135 const S& myobject = context.
getData(tok);
137 std::ostringstream
file;
138 file <<
file_prefix << name.c_str() <<
"_Run" << myrun <<
".txt";
139 std::ofstream outStream(file.str().c_str());
T getUntrackedParameter(std::string const &, T const &) const
static std::vector< std::string > checklist log
#define DEFINE_FWK_MODULE(type)
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)
bool getData(T &iHolder) const
std::vector< std::string > mDumpRequest
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