10 : m_consumesCollector(iC),
11 m_l1GtRecordInputTag(pset.getParameter<edm::
InputTag>(
"l1GtRecordInputTag")),
12 m_l1GtReadoutRecordInputTag(pset.getParameter<edm::
InputTag>(
"l1GtReadoutRecordInputTag")),
13 m_l1GtTriggerMenuLiteInputTag(pset.getParameter<edm::
InputTag>(
"l1GtTriggerMenuLiteInputTag")),
15 m_findReadoutRecord(
false),
16 m_findMenuLite(
false),
17 m_foundPreferredRecord(
false),
18 m_foundPreferredReadoutRecord(
false),
19 m_foundPreferredMenuLite(
false) {
22 if (useL1GtTriggerMenuLite) {
58 std::vector<edm::InputTag> preferredL1GtReadoutRecordInputTag = {
edm::InputTag(
"gtDigis"),
61 std::vector<edm::InputTag> preferredL1GtTriggerMenuLiteInputTag = {
edm::InputTag(
"gtDigis"),
81 LogDebug(
"L1GtUtils") <<
"\nWARNING: Found multiple preferred input tags for L1GlobalTriggerRecord product, "
82 <<
"\nwith different instaces or processes."
84 <<
"\nInput tag set to empty tag." << std::endl;
91 for (std::vector<edm::InputTag>::const_iterator itPrefTag = preferredL1GtRecordInputTag.begin(),
92 itPrefTagEnd = preferredL1GtRecordInputTag.end();
93 itPrefTag != itPrefTagEnd;
95 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
101 LogDebug(
"L1GtUtils") <<
"\nWARNING: Input tag for L1GlobalTriggerRecord product set to preferred input tag"
102 << (
tag) << std::endl;
113 LogDebug(
"L1GtUtils") <<
"\nWARNING: Found multiple input tags for L1GlobalTriggerRecord product."
114 <<
"\nNone is in the preferred input tags - no safe choice."
116 <<
"\nInput tag set to empty tag." << std::endl;
126 LogDebug(
"L1GtUtils") <<
"\nWARNING: No preferred input tag found for L1GlobalTriggerReadoutRecord product."
127 <<
"\nInput tag set to " << (
tag) << std::endl;
151 <<
"\nWARNING: Found multiple preferred input tags for L1GlobalTriggerReadoutRecord product, "
152 <<
"\nwith different instaces or processes."
154 <<
"\nInput tag set to empty tag." << std::endl;
162 for (std::vector<edm::InputTag>::const_iterator itPrefTag = preferredL1GtReadoutRecordInputTag.begin(),
163 itPrefTagEnd = preferredL1GtReadoutRecordInputTag.end();
164 itPrefTag != itPrefTagEnd;
166 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
173 <<
"\nWARNING: Input tag for L1GlobalTriggerReadoutRecord product set to preferred input tag" << (
tag)
185 LogDebug(
"L1GtUtils") <<
"\nWARNING: Found multiple input tags for L1GlobalTriggerReadoutRecord product."
186 <<
"\nNone is in the preferred input tags - no safe choice."
188 <<
"\nActual tag: " << (
tag) <<
"\nInput tag set to empty tag." << std::endl;
198 LogDebug(
"L1GtUtils") <<
"\nWARNING: No preferred input tag found for L1GlobalTriggerReadoutRecord product."
199 <<
"\nInput tag set to " << (
tag) << std::endl;
222 LogDebug(
"L1GtUtils") <<
"\nWARNING: Found multiple preferred input tags for L1GtTriggerMenuLite product, "
223 <<
"\nwith different instaces or processes."
225 <<
"\nActual tag: " << (
tag) <<
"\nInput tag set to empty tag." << std::endl;
233 for (std::vector<edm::InputTag>::const_iterator itPrefTag = preferredL1GtTriggerMenuLiteInputTag.begin(),
234 itPrefTagEnd = preferredL1GtTriggerMenuLiteInputTag.end();
235 itPrefTag != itPrefTagEnd;
237 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
243 LogDebug(
"L1GtUtils") <<
"\nWARNING: Input tag for L1GtTriggerMenuLite product set to preferred input tag"
244 << (
tag) << std::endl;
255 LogDebug(
"L1GtUtils") <<
"\nWARNING: Found multiple input tags for L1GtTriggerMenuLite product."
256 <<
"\nNone is in the preferred input tags - no safe choice."
258 <<
"\nActual tag: " << (
tag) <<
"\nInput tag set to empty tag." << std::endl;
268 LogDebug(
"L1GtUtils") <<
"\nWARNING: No preferred input tag found for L1GtTriggerMenuLite product."
269 <<
"\nInput tag set to " << (
tag) << std::endl;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
BranchType const & branchType() const
edm::InputTag m_l1GtReadoutRecordInputTag
constexpr bool isUninitialized() const noexcept
std::string const & processName() const
edm::EDGetTokenT< L1GtTriggerMenuLite > m_l1GtTriggerMenuLiteToken
std::vector< edm::InputTag > m_inputTagsL1GtReadoutRecord
edm::InputTag m_l1GtTriggerMenuLiteInputTag
edm::InputTag m_l1GtRecordInputTag
std::vector< edm::InputTag > m_inputTagsL1GtMenuLite
std::string const & moduleLabel() const
std::string const & productInstanceName() const
bool m_foundMultipleL1GtReadoutRecord
TypeID unwrappedTypeID() const
std::vector< edm::InputTag > m_inputTagsL1GtRecord
static void fillDescription(edm::ParameterSetDescription &desc)
bool m_foundMultipleL1GtRecord
edm::EDGetTokenT< L1GlobalTriggerRecord > m_l1GtRecordToken
bool m_foundMultipleL1GtMenuLite
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ConsumesCollector m_consumesCollector
bool m_foundPreferredReadoutRecord
bool m_foundPreferredMenuLite
static const bool useL1GtTriggerMenuLite(true)
bool m_foundPreferredRecord
void operator()(edm::BranchDescription const &branchDescription)
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1GtReadoutRecordToken
L1GtUtilsHelper(edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite)