36 setConfig(ps,
"DTLocalTriggerTP");
37 baseFolderDCC =
"DT/11-LocalTriggerTP-DCC/";
38 baseFolderDDU =
"DT/12-LocalTriggerTP-DDU/";
53 vector<string>::const_iterator iTr = trigSources.begin();
54 vector<string>::const_iterator trEnd = trigSources.end();
55 vector<string>::const_iterator iHw = hwSources.begin();
56 vector<string>::const_iterator hwEnd = hwSources.end();
60 if(
parameters.getUntrackedParameter<
bool>(
"staticBooking",
true)){
61 for (; iTr != trEnd; ++iTr){
63 for (; iHw != hwEnd; ++iHw){
66 for (
int wh=-2; wh<=2; ++wh){
67 bookWheelHistos(wh,
"CorrectBXPhi");
68 bookWheelHistos(wh,
"ResidualBXPhi");
87 for (vector<string>::const_iterator iTr = trigSources.begin(); iTr != trigSources.end(); ++iTr){
89 for (vector<string>::const_iterator iHw = hwSources.begin(); iHw != hwSources.end(); ++iHw){
92 for (
int stat=1; stat<=4; ++stat){
93 for (
int wh=-2; wh<=2; ++wh){
94 for (
int sect=1; sect<=12; ++sect){
101 TH2F * BXvsQual = getHisto<TH2F>(dbe->get(getMEName(
"BXvsQual",
"LocalTriggerPhi", chId)));
104 if (BXvsQual->GetEntries()>1) {
106 TH1D*
BX = BXvsQual->ProjectionY();
107 int BXOK_bin = BX->GetMaximumBin();
108 double BXMean = BX->GetMean();
109 double BX_OK = BXvsQual->GetYaxis()->GetBinCenter(BXOK_bin);
113 bookWheelHistos(wh,
"ResidualBXPhi");
114 bookWheelHistos(wh,
"CorrectBXPhi");
117 std::map<std::string,MonitorElement*> *innerME = &(whME[wh]);
118 innerME->find(
fullName(
"CorrectBXPhi"))->second->setBinContent(sect,stat,BX_OK+0.00001);
119 innerME->find(
fullName(
"ResidualBXPhi"))->second->setBinContent(sect,stat,round(25.*(BXMean-BX_OK))+0.00001);
DTLocalTriggerTPTest(const edm::ParameterSet &ps)
Constructor.
void beginRun(edm::Run const &run, edm::EventSetup const &context)
BeginRun.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void runClientDiagnostic()
Run client analysis.
void beginRun(const edm::Run &r, const edm::EventSetup &c)
BeginRun.
virtual ~DTLocalTriggerTPTest()
Destructor.