Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DQM/SiStripMonitorDigi: remove unsued subdetswitchtotdigiproflson #5455

Merged
merged 1 commit into from
Sep 23, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion DQM/SiStripMonitorDigi/interface/SiStripMonitorDigi.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ class SiStripMonitorDigi : public thread_unsafe::DQMEDAnalyzer {
bool subdetswitchapvcycleprofon;
bool subdetswitchapvcycleth2on;

bool subdetswitchtotdigiproflson;
bool subdetswitchtotdigifailureon;

bool subdetswitchnapvshotson;
Expand Down
8 changes: 0 additions & 8 deletions DQM/SiStripMonitorDigi/src/SiStripMonitorDigi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ SiStripMonitorDigi::SiStripMonitorDigi(const edm::ParameterSet& iConfig) :
edm::ParameterSet ParametersTotDigiProf = conf_.getParameter<edm::ParameterSet>("TProfTotalNumberOfDigis");
subdetswitchtotdigiprofon = ParametersTotDigiProf.getParameter<bool>("subdetswitchon");

// edm::ParameterSet ParametersTotDigisProfVsLS = conf_.getParameter<edm::ParameterSet>("TProfTotalNumberOfDigisVsLS");
// subdetswitchtotdigiproflson = ParametersTotDigisProfVsLS.getParameter<bool>("subdetswitchon");

edm::ParameterSet ParametersTotDigiFailure = conf_.getParameter<edm::ParameterSet>("TotalNumberOfDigisFailure");
subdetswitchtotdigifailureon = ParametersTotDigiFailure.getParameter<bool>("subdetswitchon");

Expand Down Expand Up @@ -272,9 +269,6 @@ void SiStripMonitorDigi::endRun(const edm::Run&, const edm::EventSetup&){

//--------------------------------------------------------------------------------------------
void SiStripMonitorDigi::beginLuminosityBlock(const edm::LuminosityBlock& lb, const edm::EventSetup& es){
if (subdetswitchtotdigiproflson){
// if (digiFailureMEs.SubDetTotDigiProfLS) digiFailureMEs.SubDetTotDigiProfLS->Reset();
}
if (subdetswitchtotdigifailureon) {
isStableBeams = false;
//integrate stats over several LS to prevent eventual low trigger rates
Expand Down Expand Up @@ -523,7 +517,6 @@ void SiStripMonitorDigi::createMEs(DQMStore::IBooker & ibooker , const edm::Even
folder_organizer.getLayerFolderName(ss, 0, tTopo);
ibooker.setCurrentFolder(ss.str().c_str());

// if (subdetswitchtotdigiproflson) {
if (subdetswitchtotdigifailureon) {
const char* HistoName = "NumberOfDigisInLastLS";
digiFailureMEs.SubDetTotDigiProfLS= ibooker.bookProfile(HistoName, HistoName,
Expand Down Expand Up @@ -767,7 +760,6 @@ void SiStripMonitorDigi::analyze(const edm::Event& iEvent, const edm::EventSetup
for (std::map<std::string, SubDetMEs>::iterator it = SubDetMEsMap.begin();
it != SubDetMEsMap.end(); it++) {

// if (subdetswitchtotdigiproflson) {
if (subdetswitchtotdigifailureon) {
if (strcmp(it->first.c_str(),"TEC__MINUS")==0){
digiFailureMEs.SubDetTotDigiProfLS->Fill(1, it->second.totNDigis);
Expand Down