|
|
Go to the documentation of this file.
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) {
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;
std::string const & productInstanceName() const
L1GtUtilsHelper(edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite)
constexpr bool isUninitialized() const noexcept
bool m_foundMultipleL1GtReadoutRecord
edm::InputTag m_l1GtTriggerMenuLiteInputTag
std::vector< edm::InputTag > m_inputTagsL1GtMenuLite
bool m_foundMultipleL1GtMenuLite
std::vector< edm::InputTag > m_inputTagsL1GtReadoutRecord
std::string const & processName() const
bool m_foundMultipleL1GtRecord
std::vector< edm::InputTag > m_inputTagsL1GtRecord
TypeID unwrappedTypeID() const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1GtReadoutRecordToken
static const bool useL1GtTriggerMenuLite(true)
bool m_foundPreferredReadoutRecord
void operator()(edm::BranchDescription const &branchDescription)
static void fillDescription(edm::ParameterSetDescription &desc)
edm::InputTag m_l1GtReadoutRecordInputTag
BranchType const & branchType() const
edm::EDGetTokenT< L1GtTriggerMenuLite > m_l1GtTriggerMenuLiteToken
bool m_foundPreferredMenuLite
std::string const & moduleLabel() const
edm::EDGetTokenT< L1GlobalTriggerRecord > m_l1GtRecordToken
edm::ConsumesCollector m_consumesCollector
bool m_foundPreferredRecord
edm::InputTag m_l1GtRecordInputTag