36 : subSystemName_(ps.getUntrackedParameter<
std::
string>(
"subSystem")),
37 outStream_(ps.getUntrackedParameter<
std::
string>(
"fileName"),
std::ios_base::app),
38 readMap_(ps.getUntrackedParameter<
bool>(
"readMap")),
39 readMask_(ps.getUntrackedParameter<
bool>(
"readMask")) {
54 if (mappingHandle.isValid() && !mappingHandle.failedToGet()) {
55 auto const &
mapping = *mappingHandle;
58 edm::LogError(
"WriteTotemDAQMapping mapping") <<
"WriteTotemDAQMapping: No mapping found";
65 if (analysisMaskHandle.isValid() && !analysisMaskHandle.failedToGet()) {
66 auto const &analysisMask = *analysisMaskHandle;
69 edm::LogError(
"WriteTotemDAQMapping mask") <<
"WriteTotemDAQMapping: No analysis mask found";
const std::string subSystemName_
label of the CTPPS sub-system
WriteTotemDAQMapping(const edm::ParameterSet &ps)
Log< level::Error, false > LogError
Writes to file the DAQ mapping loaded by TotemDAQMappingESSourceXML.
edm::ESGetToken< TotemAnalysisMask, TotemAnalysisMaskRcd > maskToken_
#define DEFINE_FWK_MODULE(type)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void analyze(const edm::Event &e, const edm::EventSetup &es) override
~WriteTotemDAQMapping() override=default
edm::ESGetToken< TotemDAQMapping, TotemReadoutRcd > mappingToken_