62 template<
class S,
class SRcd>
65 int myrun = e.
id().
run();
67 context.
get<SRcd>().
get(p);
68 S* myobject =
new S(*p.
product());
70 std::ostringstream
file;
71 file <<
front << name.c_str() <<
"_Run" << myrun <<
".txt";
72 std::ofstream outStream(file.str().c_str() );
73 std::cout <<
"HcalDumpConditions: ---- Dumping " << name.c_str() <<
" ----" << std::endl;
77 std::cout <<
"error: invalid IOV sync value !" << std::endl;
85 using namespace edm::eventsetup;
86 std::cout <<
"HcalDumpConditions::analyze-> I AM IN RUN NUMBER "<<e.
id().
run() <<std::endl;
T getUntrackedParameter(std::string const &, T const &) const
void dumpIt(S *myS, SRcd *mySRcd, const edm::Event &e, const edm::EventSetup &context, std::string name)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
HcalDumpConditions(edm::ParameterSet const &p)
HcalDumpConditions(int i)
DEFINE_FWK_MODULE(DQMReferenceHistogramRootFileEventSetupAnalyzer)
std::vector< std::string > mDumpRequest
T const * product() const
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
bool dumpObject(std::ostream &fOutput, const HcalPedestals &fObject)
static const IOVSyncValue & invalidIOVSyncValue()
virtual ~HcalDumpConditions()