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 = {
99 <<
"\nWARNING: Found multiple preferred input tags for L1GlobalTriggerRecord product, "
100 <<
"\nwith different instaces or processes."
101 <<
"\nInput tag already found: "
103 <<
"\nInput tag set to empty tag." << std::endl;
110 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
111 preferredL1GtRecordInputTag.begin(), itPrefTagEnd =
112 preferredL1GtRecordInputTag.end();
113 itPrefTag != itPrefTagEnd; ++itPrefTag) {
115 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
123 <<
"\nWARNING: Input tag for L1GlobalTriggerRecord product set to preferred input tag"
124 << (
tag) << std::endl;
138 <<
"\nWARNING: Found multiple input tags for L1GlobalTriggerRecord product."
139 <<
"\nNone is in the preferred input tags - no safe choice."
140 <<
"\nInput tag already found: "
142 <<
"\nInput tag set to empty tag." << std::endl;
155 <<
"\nWARNING: No preferred input tag found for L1GlobalTriggerReadoutRecord product."
156 <<
"\nInput tag set to " << (
tag) << std::endl;
189 <<
"\nWARNING: Found multiple preferred input tags for L1GlobalTriggerReadoutRecord product, "
190 <<
"\nwith different instaces or processes."
191 <<
"\nInput tag already found: "
193 << (
tag) <<
"\nInput tag set to empty tag."
202 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
203 preferredL1GtReadoutRecordInputTag.begin(), itPrefTagEnd =
204 preferredL1GtReadoutRecordInputTag.end();
205 itPrefTag != itPrefTagEnd; ++itPrefTag) {
207 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
215 <<
"\nWARNING: Input tag for L1GlobalTriggerReadoutRecord product set to preferred input tag"
216 << (
tag) << std::endl;
230 <<
"\nWARNING: Found multiple input tags for L1GlobalTriggerReadoutRecord product."
231 <<
"\nNone is in the preferred input tags - no safe choice."
232 <<
"\nInput tag already found: "
234 << (
tag) <<
"\nInput tag set to empty tag."
248 <<
"\nWARNING: No preferred input tag found for L1GlobalTriggerReadoutRecord product."
249 <<
"\nInput tag set to " << (
tag) << std::endl;
284 <<
"\nWARNING: Found multiple preferred input tags for L1GtTriggerMenuLite product, "
285 <<
"\nwith different instaces or processes."
286 <<
"\nInput tag already found: "
288 <<
"\nInput tag set to empty tag." << std::endl;
296 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
297 preferredL1GtTriggerMenuLiteInputTag.begin(), itPrefTagEnd =
298 preferredL1GtTriggerMenuLiteInputTag.end();
299 itPrefTag != itPrefTagEnd; ++itPrefTag) {
301 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
309 <<
"\nWARNING: Input tag for L1GtTriggerMenuLite product set to preferred input tag"
310 << (
tag) << std::endl;
324 <<
"\nWARNING: Found multiple input tags for L1GtTriggerMenuLite product."
325 <<
"\nNone is in the preferred input tags - no safe choice."
326 <<
"\nInput tag already found: "
328 <<
"\nInput tag set to empty tag." << std::endl;
341 <<
"\nWARNING: No preferred input tag found for L1GtTriggerMenuLite product."
342 <<
"\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)