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

some quick damage control to uninitialized arrays and global statics in CastorDigiMonitor #24760

Merged
merged 2 commits into from Oct 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions DQM/CastorMonitor/src/CastorDigiMonitor.cc
Expand Up @@ -24,12 +24,14 @@
using namespace std;
using namespace edm;

namespace {
vector<std::string> HltPaths_;
int StatusBadChannel = 1;
int ChannelStatus[14][16];
int ChannelStatus[14][16] {};
int N_GoodChannels = 224;
int EtowerLastModule = 5;
int TrigIndexMax = 0;
}

CastorDigiMonitor::CastorDigiMonitor(const edm::ParameterSet& ps) {
fVerbosity = ps.getUntrackedParameter<int>("debug", 0);
Expand Down Expand Up @@ -207,7 +209,7 @@ void CastorDigiMonitor::processEvent(edm::Event const& event,
return;
}

float Ecell[14][16];
float Ecell[14][16] {};
for (CastorDigiCollection::const_iterator j = castorDigis.begin();
j != castorDigis.end(); j++) {
const CastorDataFrame digi = (const CastorDataFrame)(*j);
Expand Down