48 iEvent.
getByLabel(
"scalersRawToDigi", dcsStatus);
50 for (DcsStatusCollection::const_iterator dcsStatusItr = dcsStatus->begin();
51 dcsStatusItr != dcsStatus->end(); ++dcsStatusItr) {
88 sprintf(index,
"%s",
"_TkStatus");
89 tmpname.insert(fileName.length()-4,
index);
91 outFile.open(tmpname.c_str());
92 outFile <<
"BPIX " << (
dcsTk[0]?
"On":
"Off") << std::endl;
93 outFile <<
"FPIX " << (
dcsTk[1]?
"On":
"Off") << std::endl;
94 outFile <<
"TIBTID " << (
dcsTk[2]?
"On":
"Off") << std::endl;
95 outFile <<
"TOB " << (
dcsTk[3]?
"On":
"Off") << std::endl;
96 outFile <<
"TECp " << (
dcsTk[4]?
"On":
"Off") << std::endl;
97 outFile <<
"TECm " << (
dcsTk[5]?
"On":
"Off") << std::endl;
99 for (
int i=0;
i<5;
i++) {
105 outFile <<
"WholeTrackerOn " << (AllTkOn?
"Yes":
"No") << std::endl;
106 outFile <<
"Runnumber " <<
runnum << std::endl;
LuminosityBlockID id() const
T getParameter(std::string const &) const
void dumpTkDcsStatus(std::string &)
edm::ParameterSet parameters_
void analyze(const edm::Event &e, const edm::EventSetup &c)
#define DEFINE_FWK_MODULE(type)
void endRun(const edm::Run &r, const edm::EventSetup &c)
LuminosityBlockNumber_t luminosityBlock() const
void beginRun(const edm::Run &r, const edm::EventSetup &c)
std::string dcsTkFileName_
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &context)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
LuminosityBlockNumber_t luminosityBlock() const
TKStatus(const edm::ParameterSet &)
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)