Skip to content

Commit

Permalink
If cannot find FED data for caloLayer1RawToDigi, issue a LogInfo not …
Browse files Browse the repository at this point in the history
…a LogError, and silence after 5 times.
  • Loading branch information
rekovic committed May 11, 2017
1 parent f520e4f commit cb8218b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion EventFilter/L1TXRawToDigi/plugins/L1TCaloLayer1RawToDigi.cc
Expand Up @@ -97,6 +97,7 @@ class L1TCaloLayer1RawToDigi : public stream::EDProducer<> {
std::vector<int> fedIDs;

uint32_t event;
uint32_t warnsa;

bool verbose;

Expand Down Expand Up @@ -127,6 +128,8 @@ L1TCaloLayer1RawToDigi::L1TCaloLayer1RawToDigi(const ParameterSet& iConfig) :

consumes<FEDRawDataCollection>(fedRawDataLabel);

warnsa = 0;

}


Expand Down Expand Up @@ -168,7 +171,10 @@ L1TCaloLayer1RawToDigi::produce(Event& iEvent, const EventSetup& iSetup)
const uint64_t *fedRawDataArray = (const uint64_t *) fedRawData.data();

if ( fedRawData.size() == 0 || fedRawDataArray == nullptr ) {
LogError("L1TCaloLayer1RawToDigi") << "Could not load FED data for " << fed << ", putting empty collections!";
if (warnsa<5) {
warnsa++;
LogInfo("L1TCaloLayer1RawToDigi") << "Could not load FED data for " << fed << ", putting empty collections!";
}
continue;
}

Expand Down

0 comments on commit cb8218b

Please sign in to comment.