66 virtual void endJob()
override ;
87 if (mDumpRequest.empty()) {
88 std::cout <<
"CastorDumpConditions: No record to dump. Exiting." << std::endl;
114 #ifdef THIS_IS_AN_EVENT_EXAMPLE
119 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
121 iSetup.
get<SetupRecord>().
get(pSetup);
123 std::cout <<
"I AM IN THE RUN " << iEvent.
id().
run() << std::endl;
124 std::cout <<
"What to dump? "<< std::endl;
126 std::cout<<
"CastorDumpConditions: Empty request" << std::endl;
186 template<
class S,
class SRcd>
188 int myrun = e.
id().
run();
190 context.
get<SRcd>().
get(p);
191 S* myobject =
new S(*p.
product());
193 std::ostringstream
file;
194 file <<
file_prefix << name.c_str() <<
"_Run" << myrun <<
".txt";
195 std::ofstream outStream(file.str().c_str() );
T getUntrackedParameter(std::string const &, T const &) const
#define DEFINE_FWK_MODULE(type)
virtual void endJob() override
virtual 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)
std::vector< std::string > mDumpRequest
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool dumpObject(std::ostream &fOutput, const CastorPedestals &fObject)
CastorDumpConditions(const edm::ParameterSet &)
T const * product() const
void dumpIt(S *myS, SRcd *mySRcd, const edm::Event &e, const edm::EventSetup &context, std::string name)