diff --git a/EventFilter/EcalRawToDigi/interface/DCCDataUnpacker.h b/EventFilter/EcalRawToDigi/interface/DCCDataUnpacker.h index 91382b7fd52e6..80cb315c20ae9 100644 --- a/EventFilter/EcalRawToDigi/interface/DCCDataUnpacker.h +++ b/EventFilter/EcalRawToDigi/interface/DCCDataUnpacker.h @@ -23,6 +23,7 @@ #include #include #include +#include //DATA DECODER @@ -223,7 +224,7 @@ public : */ DCCEventBlock * currentEvent(){ return currentEvent_;} - static bool silentMode_; + static std::atomic silentMode_; protected : diff --git a/EventFilter/EcalRawToDigi/src/DCCDataUnpacker.cc b/EventFilter/EcalRawToDigi/src/DCCDataUnpacker.cc index 392727de3df0f..2277728fdf28a 100644 --- a/EventFilter/EcalRawToDigi/src/DCCDataUnpacker.cc +++ b/EventFilter/EcalRawToDigi/src/DCCDataUnpacker.cc @@ -6,7 +6,7 @@ #include "EventFilter/EcalRawToDigi/interface/EcalElectronicsMapper.h" #include -bool DCCDataUnpacker::silentMode_ = false; +std::atomic DCCDataUnpacker::silentMode_(false); DCCDataUnpacker::DCCDataUnpacker( EcalElectronicsMapper * mapper, bool hU, bool srpU, bool tccU, bool feU , bool memU, bool syncCheck, bool feIdCheck, bool forceToKeepFRdata