14 tmpname.insert(dcsTkFileName_.length() - 4,
"_TkStatus");
23 if (nthlumi > lastlumi_) {
29 std::array<bool, 6> dcsTk;
30 for (
auto&
e : dcsTk) {
34 for (
auto const&
status : *dcsStatus) {
48 dumpTkDcsStatus(dcsTkFileName_, iEvent.
run(), dcsTk);
56 outFile.open(fileName.c_str());
57 outFile <<
"BPIX " << (dcsTk[0] ?
"On" :
"Off") << std::endl;
58 outFile <<
"FPIX " << (dcsTk[1] ?
"On" :
"Off") << std::endl;
59 outFile <<
"TIBTID " << (dcsTk[2] ?
"On" :
"Off") << std::endl;
60 outFile <<
"TOB " << (dcsTk[3] ?
"On" :
"Off") << std::endl;
61 outFile <<
"TECp " << (dcsTk[4] ?
"On" :
"Off") << std::endl;
62 outFile <<
"TECm " << (dcsTk[5] ?
"On" :
"Off") << std::endl;
64 for (
auto status : dcsTk) {
70 outFile <<
"WholeTrackerOn " << (AllTkOn ?
"Yes" :
"No") << std::endl;
71 outFile <<
"Runnumber " << runnum << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::LuminosityBlockNumber_t luminosityBlock() const
T getParameter(std::string const &) const
TKStatus(const edm::ParameterSet &)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
void dumpTkDcsStatus(std::string const &, edm::RunNumber_t, std::array< bool, 6 > const &)