Skip to content

Commit 1f6d35b

Browse files
committed
JetAnalyzer.cc: Changing output directory for Scouting jets in offline DQM - from 'JetMET/Jet/' to 'HLT/ScoutingOffline/Jet/'- so that all the scouting objects are in the same directory
1 parent 757af74 commit 1f6d35b

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

DQMOffline/JetMET/src/JetAnalyzer.cc

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,19 @@ JetAnalyzer::~JetAnalyzer() {
292292

293293
// ***********************************************************
294294
void JetAnalyzer::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRun, edm::EventSetup const&) {
295-
if (jetCleaningFlag_) {
296-
ibooker.setCurrentFolder("JetMET/Jet/Cleaned" + mInputCollection_.label());
297-
DirName = "JetMET/Jet/Cleaned" + mInputCollection_.label();
295+
if(isScoutingJet_){
296+
if (!jetCleaningFlag_) {
297+
ibooker.setCurrentFolder("HLT/ScoutingOffline/Jet/Uncleaned" + mInputCollection_.label());
298+
DirName = "HLT/ScoutingOffline/Jet/Uncleaned" + mInputCollection_.label();
299+
}
298300
} else {
299-
ibooker.setCurrentFolder("JetMET/Jet/Uncleaned" + mInputCollection_.label());
300-
DirName = "JetMET/Jet/Uncleaned" + mInputCollection_.label();
301+
if (jetCleaningFlag_) {
302+
ibooker.setCurrentFolder("JetMET/Jet/Cleaned" + mInputCollection_.label());
303+
DirName = "JetMET/Jet/Cleaned" + mInputCollection_.label();
304+
} else {
305+
ibooker.setCurrentFolder("JetMET/Jet/Uncleaned" + mInputCollection_.label());
306+
DirName = "JetMET/Jet/Uncleaned" + mInputCollection_.label();
307+
}
301308
}
302309

303310
jetME = ibooker.book1D("jetReco", "jetReco", 5, 1, 5); // --> for .../JetMET/Run summary/Jet/.../jetReco plots
@@ -2584,12 +2591,18 @@ void JetAnalyzer::dqmBeginRun(const edm::Run& iRun, const edm::EventSetup& iSetu
25842591
// ***********************************************************
25852592
void JetAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) {
25862593
//set general folders first --> change later on for different folders
2587-
if (jetCleaningFlag_) {
2588-
//dbe_->setCurrentFolder("JetMET/Jet/Cleaned"+mInputCollection_.label());
2589-
DirName = "JetMET/Jet/Cleaned" + mInputCollection_.label();
2594+
if(isScoutingJet_){
2595+
if (!jetCleaningFlag_) {
2596+
DirName = "HLT/ScoutingOffline/Jet/Uncleaned" + mInputCollection_.label();
2597+
}
25902598
} else {
2591-
//dbe_->setCurrentFolder("JetMET/Jet/Uncleaned"+mInputCollection_.label());
2592-
DirName = "JetMET/Jet/Uncleaned" + mInputCollection_.label();
2599+
if (jetCleaningFlag_) {
2600+
//dbe_->setCurrentFolder("JetMET/Jet/Cleaned"+mInputCollection_.label());
2601+
DirName = "JetMET/Jet/Cleaned" + mInputCollection_.label();
2602+
} else {
2603+
//dbe_->setCurrentFolder("JetMET/Jet/Uncleaned"+mInputCollection_.label());
2604+
DirName = "JetMET/Jet/Uncleaned" + mInputCollection_.label();
2605+
}
25932606
}
25942607

25952608
Handle<ValueMap<float>> puJetIdMva;

0 commit comments

Comments
 (0)