Skip to content

Commit

Permalink
added value to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
garvitaa committed Aug 1, 2021
1 parent bb4ea27 commit a02de4e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Validation/RecoParticleFlow/plugins/PFJetDQMPostProcessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,11 @@ void PFJetDQMPostProcessor::dqmEndJob(DQMStore::IBooker& ibook_, DQMStore::IGett
me = iget_.get(stitle);
int nEvents = ((TH1F*)me->getTH1F())->GetEntries();
iget_.setCurrentFolder(jetResponseDir[idir]);

bool isNoJEC = (jetResponseDir[idir].find("noJEC") != std::string::npos);
bool isJEC;
if (!isNoJEC) isJEC = (jetResponseDir[idir].find("JEC") != std::string::npos);
bool isJEC = false;
if (!isNoJEC)
isJEC = (jetResponseDir[idir].find("JEC") != std::string::npos);
//
// Response distributions
//
Expand Down

0 comments on commit a02de4e

Please sign in to comment.