Skip to content

Commit 019649b

Browse files
committed
Added protection if the fill number is not available
1 parent eef0953 commit 019649b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DPGAnalysis/SiStripTools/src/RunHistogramManager.cc

+5-1
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,14 @@ void RunHistogramManager::beginRun(const edm::Run& iRun, TFileDirectory& subdir
100100
beginRun(iRun.run(),subdir);
101101
}
102102
else {
103+
unsigned int fillnum = 0;
104+
103105
edm::Handle<edm::ConditionsInRunBlock> cirb;
104106
iRun.getByLabel("conditionsInEdm",cirb);
105107

106-
beginRun(cirb->lhcFillNumber,subdir);
108+
if(!cirb.failedToGet() && cirb.isValid()) fillnum=cirb->lhcFillNumber;
109+
110+
beginRun(fillnum,subdir);
107111
}
108112
}
109113

0 commit comments

Comments
 (0)