+ TH1I* fFiredCells = (TH1I*)f.Get("fFiredCells");
+
+ if(!fFiredCells) {
+ Log(Form("fFiredCells histogram not found in %s, skip this source.",fileName.Data()));
+ firedOK=kFALSE;
+ }
+ else {
+ const Double_t nFiredCells = fFiredCells->GetMean();
+ if(nFiredCells>100 && nFiredCells<600) {
+ firedOK = kTRUE;
+ Log(Form("Number of fired cells per event is %d.",nFiredCells));
+ }
+ else {
+ Log(Form("Number of fired cells per event is %d, possibly not a LED run!",nFiredCells));
+ firedOK = kFALSE;
+ }
+
+ }
+