63 template<
class S,
class SRcd>
66 int myrun = e.
id().
run();
68 context.
get<SRcd>().
get(p);
69 S* myobject =
new S(*p.
product());
71 std::ostringstream
file;
72 file <<
front << name.c_str() <<
"_Run" << myrun <<
".txt";
73 std::ofstream outStream(file.str().c_str() );
74 std::cout <<
"HcalDumpConditions: ---- Dumping " << name.c_str() <<
" ----" << std::endl;
78 std::cout <<
"error: invalid IOV sync value !" << std::endl;
89 using namespace edm::eventsetup;
90 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()