13 m_consumesCollector(std::move(iC)),
14 m_l1GtRecordInputTag(pset.getParameter<edm::
InputTag>(
"l1GtRecordInputTag")),
15 m_l1GtReadoutRecordInputTag(pset.getParameter<edm::
InputTag>(
"l1GtReadoutRecordInputTag")),
16 m_l1GtTriggerMenuLiteInputTag(pset.getParameter<edm::
InputTag>(
"l1GtTriggerMenuLiteInputTag")),
18 m_findReadoutRecord(
false),
19 m_findMenuLite(
false),
20 m_foundPreferredRecord(
false),
21 m_foundPreferredReadoutRecord(
false),
22 m_foundPreferredMenuLite(
false) {
28 if (useL1GtTriggerMenuLite) {
66 std::vector<edm::InputTag> preferredL1GtRecordInputTag = {
edm::InputTag(
69 std::vector<edm::InputTag> preferredL1GtReadoutRecordInputTag = {
72 std::vector<edm::InputTag> preferredL1GtTriggerMenuLiteInputTag = {
100 <<
"\nWARNING: Found multiple preferred input tags for L1GlobalTriggerRecord product, "
101 <<
"\nwith different instaces or processes."
102 <<
"\nInput tag already found: "
104 <<
"\nInput tag set to empty tag." << std::endl;
112 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
113 preferredL1GtRecordInputTag.begin(), itPrefTagEnd =
114 preferredL1GtRecordInputTag.end();
115 itPrefTag != itPrefTagEnd; ++itPrefTag) {
117 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
125 <<
"\nWARNING: Input tag for L1GlobalTriggerRecord product set to preferred input tag"
126 << (
tag) << std::endl;
140 <<
"\nWARNING: Found multiple input tags for L1GlobalTriggerRecord product."
141 <<
"\nNone is in the preferred input tags - no safe choice."
142 <<
"\nInput tag already found: "
144 <<
"\nInput tag set to empty tag." << std::endl;
157 <<
"\nWARNING: No preferred input tag found for L1GlobalTriggerReadoutRecord product."
158 <<
"\nInput tag set to " << (
tag) << std::endl;
191 <<
"\nWARNING: Found multiple preferred input tags for L1GlobalTriggerReadoutRecord product, "
192 <<
"\nwith different instaces or processes."
193 <<
"\nInput tag already found: "
195 << (
tag) <<
"\nInput tag set to empty tag."
204 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
205 preferredL1GtReadoutRecordInputTag.begin(), itPrefTagEnd =
206 preferredL1GtReadoutRecordInputTag.end();
207 itPrefTag != itPrefTagEnd; ++itPrefTag) {
209 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
217 <<
"\nWARNING: Input tag for L1GlobalTriggerReadoutRecord product set to preferred input tag"
218 << (
tag) << std::endl;
232 <<
"\nWARNING: Found multiple input tags for L1GlobalTriggerReadoutRecord product."
233 <<
"\nNone is in the preferred input tags - no safe choice."
234 <<
"\nInput tag already found: "
236 << (
tag) <<
"\nInput tag set to empty tag."
250 <<
"\nWARNING: No preferred input tag found for L1GlobalTriggerReadoutRecord product."
251 <<
"\nInput tag set to " << (
tag) << std::endl;
286 <<
"\nWARNING: Found multiple preferred input tags for L1GtTriggerMenuLite product, "
287 <<
"\nwith different instaces or processes."
288 <<
"\nInput tag already found: "
290 <<
"\nInput tag set to empty tag." << std::endl;
298 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
299 preferredL1GtTriggerMenuLiteInputTag.begin(), itPrefTagEnd =
300 preferredL1GtTriggerMenuLiteInputTag.end();
301 itPrefTag != itPrefTagEnd; ++itPrefTag) {
303 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
311 <<
"\nWARNING: Input tag for L1GtTriggerMenuLite product set to preferred input tag"
312 << (
tag) << std::endl;
326 <<
"\nWARNING: Found multiple input tags for L1GtTriggerMenuLite product."
327 <<
"\nNone is in the preferred input tags - no safe choice."
328 <<
"\nInput tag already found: "
330 <<
"\nInput tag set to empty tag." << std::endl;
343 <<
"\nWARNING: No preferred input tag found for L1GtTriggerMenuLite product."
344 <<
"\nInput tag set to " << (
tag) << std::endl;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
BranchType const & branchType() const
edm::InputTag m_l1GtReadoutRecordInputTag
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
bool isUninitialized() const
void operator()(edm::BranchDescription const &branchDescription)
volatile std::atomic< bool > shutdown_flag false
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1GtReadoutRecordToken
L1GtUtilsHelper(edm::ParameterSet const &pset, edm::ConsumesCollector &iC, bool useL1GtTriggerMenuLite)