Skip to content

Commit

Permalink
fixes for 2016 data and mc
Browse files Browse the repository at this point in the history
  • Loading branch information
fabferro committed May 16, 2023
1 parent 7088679 commit d077d9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DQM/CTPPS/plugins/CTPPSPixelDQMSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*
*******************************************/

#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Expand Down Expand Up @@ -532,7 +531,7 @@ void CTPPSPixelDQMSource::bookHistograms(DQMStore::IBooker &ibooker, edm::Run co
0.,
double(NplaneMAX * NROCsMAX),
0.,
rpixValues::ROCSizeInX *rpixValues::ROCSizeInY,
rpixValues::ROCSizeInX * rpixValues::ROCSizeInY,
"");
hp2HitsMultROC_LS[indexP]->getTProfile2D()->SetOption("colz");
hp2HitsMultROC_LS[indexP]->getTProfile2D()->SetMinimum(1.0e-10);
Expand Down Expand Up @@ -697,8 +696,7 @@ void CTPPSPixelDQMSource::analyze(edm::Event const &event, edm::EventSetup const
Handle<edm::TriggerResults> hltResults;
event.getByToken(tokenTrigResults, hltResults);

ESHandle<CTPPSPixelDAQMapping> mapping;
mapping = eventSetup.getHandle(tokenPixelDAQMapping);
const CTPPSPixelDAQMapping *mapping = &eventSetup.getData(tokenPixelDAQMapping);

if (onlinePlots) {
hBX->Fill(event.bunchCrossing());
Expand Down
6 changes: 6 additions & 0 deletions DQM/CTPPS/python/ctppsDQM_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@

)

from Configuration.Eras.Modifier_ctpps_2016_cff import ctpps_2016
ctpps_2016.toReplaceWith(
_ctppsDQMOfflineSource,
cms.Sequence(
)
)

# the actually used sequences must be empty for pre-PPS data
from Configuration.Eras.Modifier_ctpps_cff import ctpps
Expand Down

0 comments on commit d077d9a

Please sign in to comment.