34 setConfig(ps,
"DTLocalTriggerTP");
35 baseFolderTM =
"DT/11-LocalTriggerTP-TM/";
43 vector<string>::const_iterator iTr = trigSources.begin();
44 vector<string>::const_iterator trEnd = trigSources.end();
45 vector<string>::const_iterator iHw =
hwSources.begin();
46 vector<string>::const_iterator hwEnd =
hwSources.end();
49 if (
parameters.getUntrackedParameter<
bool>(
"staticBooking",
true)) {
50 for (; iTr != trEnd; ++iTr) {
52 for (; iHw != hwEnd; ++iHw) {
55 for (
int wh = -2; wh <= 2; ++wh) {
56 bookWheelHistos(ibooker, wh,
"CorrectBXPhi");
57 bookWheelHistos(ibooker, wh,
"ResidualBXPhi");
72 Bookings(ibooker, igetter);
75 for (vector<string>::const_iterator iTr = trigSources.begin(); iTr != trigSources.end(); ++iTr) {
77 for (vector<string>::const_iterator iHw =
hwSources.begin(); iHw !=
hwSources.end(); ++iHw) {
81 for (
int wh = -2; wh <= 2; ++wh) {
82 for (
int sect = 1; sect <= 12; ++sect) {
86 TH2F* BXvsQual = getHisto<TH2F>(igetter.
get(getMEName(
"BXvsQual_In",
"LocalTriggerPhiIn", chId)));
88 if (BXvsQual->GetEntries() > 1) {
89 TH1D*
BX = BXvsQual->ProjectionY();
90 int BXOK_bin = BX->GetMaximumBin();
91 double BXMean = BX->GetMean();
92 double BX_OK = BXvsQual->GetYaxis()->GetBinCenter(BXOK_bin);
96 bookWheelHistos(ibooker, wh,
"ResidualBXPhi");
97 bookWheelHistos(ibooker, wh,
"CorrectBXPhi");
100 std::map<std::string, MonitorElement*>* innerME = &(whME[wh]);
101 innerME->find(
fullName(
"CorrectBXPhi"))->second->setBinContent(sect,
stat, BX_OK + 0.00001);
102 innerME->find(
fullName(
"ResidualBXPhi"))
103 ->second->setBinContent(sect,
stat, round(25. * (BXMean - BX_OK)) + 0.00001);
DTLocalTriggerTPTest(const edm::ParameterSet &ps)
Constructor.
void Bookings(DQMStore::IBooker &, DQMStore::IGetter &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
~DTLocalTriggerTPTest() override
Destructor.
void runClientDiagnostic(DQMStore::IBooker &, DQMStore::IGetter &) override
Run client analysis.
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
BeginRun.
void beginRun(edm::Run const &run, edm::EventSetup const &context) override
BeginRun.
MonitorElement * get(std::string const &path)