14 tmpname.insert(dcsTkFileName_.length()-4,
"_TkStatus");
17 dcsStatus_ = consumes<DcsStatusCollection>(
25 if (nthlumi > lastlumi_) {
31 std::array<bool,6> dcsTk;
32 for (
auto&
e: dcsTk) {
e=
true;}
34 for (
auto const&
status: *dcsStatus) {
42 dumpTkDcsStatus(dcsTkFileName_,iEvent.
run(), dcsTk );
50 outFile.open(fileName.c_str());
51 outFile <<
"BPIX " << (dcsTk[0]?
"On":
"Off") << std::endl;
52 outFile <<
"FPIX " << (dcsTk[1]?
"On":
"Off") << std::endl;
53 outFile <<
"TIBTID " << (dcsTk[2]?
"On":
"Off") << std::endl;
54 outFile <<
"TOB " << (dcsTk[3]?
"On":
"Off") << std::endl;
55 outFile <<
"TECp " << (dcsTk[4]?
"On":
"Off") << std::endl;
56 outFile <<
"TECm " << (dcsTk[5]?
"On":
"Off") << std::endl;
64 outFile <<
"WholeTrackerOn " << (AllTkOn?
"Yes":
"No") << std::endl;
65 outFile <<
"Runnumber " << runnum << std::endl;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::LuminosityBlockNumber_t luminosityBlock() const
#define DEFINE_FWK_MODULE(type)
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 &)