39 setConfig(ps,
"DTLocalTriggerTP");
40 baseFolderDCC =
"DT/11-LocalTriggerTP-DCC/";
41 baseFolderDDU =
"DT/12-LocalTriggerTP-DDU/";
56 if (bookingdone)
return;
58 vector<string>::const_iterator iTr = trigSources.begin();
59 vector<string>::const_iterator trEnd = trigSources.end();
60 vector<string>::const_iterator iHw = hwSources.begin();
61 vector<string>::const_iterator hwEnd = hwSources.end();
64 if(
parameters.getUntrackedParameter<
bool>(
"staticBooking",
true)){
65 for (; iTr != trEnd; ++iTr){
67 for (; iHw != hwEnd; ++iHw){
70 for (
int wh=-2; wh<=2; ++wh){
71 bookWheelHistos(ibooker,wh,
"CorrectBXPhi");
72 bookWheelHistos(ibooker,wh,
"ResidualBXPhi");
94 for (vector<string>::const_iterator iTr = trigSources.begin(); iTr != trigSources.end(); ++iTr){
96 for (vector<string>::const_iterator iHw = hwSources.begin(); iHw != hwSources.end(); ++iHw){
99 for (
int stat=1; stat<=4; ++stat){
100 for (
int wh=-2; wh<=2; ++wh){
101 for (
int sect=1; sect<=12; ++sect){
105 TH2F * BXvsQual = getHisto<TH2F>(igetter.
get(getMEName(
"BXvsQual",
"LocalTriggerPhi", chId)));
108 if (BXvsQual->GetEntries()>1) {
110 TH1D*
BX = BXvsQual->ProjectionY();
111 int BXOK_bin = BX->GetMaximumBin();
112 double BXMean = BX->GetMean();
113 double BX_OK = BXvsQual->GetYaxis()->GetBinCenter(BXOK_bin);
117 bookWheelHistos(ibooker,wh,
"ResidualBXPhi");
118 bookWheelHistos(ibooker,wh,
"CorrectBXPhi");
121 std::map<std::string,MonitorElement*> *innerME = &(whME[wh]);
122 innerME->find(
fullName(
"CorrectBXPhi"))->second->setBinContent(sect,stat,BX_OK+0.00001);
123 innerME->find(
fullName(
"ResidualBXPhi"))->second->setBinContent(sect,stat,round(25.*(BXMean-BX_OK))+0.00001);
MonitorElement * get(const std::string &path)
DTLocalTriggerTPTest(const edm::ParameterSet &ps)
Constructor.
void beginRun(edm::Run const &run, edm::EventSetup const &context)
BeginRun.
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
Perform client diagnostic in online.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void runClientDiagnostic(DQMStore::IBooker &, DQMStore::IGetter &)
Run client analysis.
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &)
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
virtual ~DTLocalTriggerTPTest()
Destructor.