49 : daqMappingIov_(ps.getParameter<unsigned long long>(
"daqMappingIov")),
50 recordMap_(ps.getParameter<
std::
string>(
"recordMap")),
51 recordMask_(ps.getParameter<
std::
string>(
"recordMask")),
52 label_(ps.getParameter<
std::
string>(
"label")),
60 if (!
recordMap_.empty() && mappingHandle.isValid() && !mappingHandle.failedToGet()) {
70 <<
"WriteCTPPSTotemDAQMappingMask: PoolDBService not availible. Data not written.";
74 edm::LogWarning(
"WriteCTPPSTotemDAQMappingMask mapping") <<
"WriteCTPPSTotemDAQMappingMask: No mapping found";
78 if (!
recordMask_.empty() && maskHandle.isValid() && !maskHandle.failedToGet()) {
80 edm::LogInfo(
"WriteCTPPSTotemDAQMappingMask mask") << analysisMask;
86 <<
"WriteCTPPSTotemDAQMappingMask: PoolDBService not availible. Data not written.";
89 edm::LogWarning(
"WriteCTPPSTotemDAQMappingMask mask") <<
"WriteCTPPSTotemDAQMappingMask: No analysis mask found";
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
EventSetup record for TOTEM readout-related information.
const std::string recordMap_
Prints and writes to SQLite the DAQ mapping loaded by TotemDAQMappingESSourceXML. ...
Log< level::Error, false > LogError
~WriteCTPPSTotemDAQMappingMask() override=default
const edm::ESGetToken< TotemAnalysisMask, TotemReadoutRcd > tokenAnalysisMask_
unsigned long long Time_t
WriteCTPPSTotemDAQMappingMask(const edm::ParameterSet &ps)
The mapping between FramePosition and VFATInfo.
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
#define DEFINE_FWK_MODULE(type)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Log< level::Info, false > LogInfo
const edm::ESGetToken< TotemDAQMapping, TotemReadoutRcd > tokenMapping_
void analyze(const edm::Event &e, const edm::EventSetup &es) override
const std::string recordMask_
const cond::Time_t daqMappingIov_
Log< level::Warning, false > LogWarning