11 m_consumesCollector(
std::
move(iC)),
12 m_l1tAlgBlkInputTag(pset.getParameter<
edm::InputTag>(
"l1tAlgBlkInputTag")),
13 m_l1tExtBlkInputTag(pset.getParameter<
edm::InputTag>(
"l1tExtBlkInputTag")),
14 m_findL1TAlgBlk(
false),
15 m_findL1TExtBlk(
false),
16 m_foundPreferredL1TAlgBlk(
false),
17 m_foundPreferredL1TExtBlk(
false) {
53 std::vector<edm::InputTag> preferredL1TAlgBlkInputTag = {
56 std::vector<edm::InputTag> preferredL1TExtBlkInputTag = {
84 <<
"\nWARNING: Found multiple preferred input tags for GlobalAlgBlkBxCollection, " 85 <<
"\nwith different instaces or processes." 86 <<
"\nInput tag already found: " 88 <<
"\nInput tag set to empty tag." << std::endl;
95 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
96 preferredL1TAlgBlkInputTag.begin(), itPrefTagEnd =
97 preferredL1TAlgBlkInputTag.end();
98 itPrefTag != itPrefTagEnd; ++itPrefTag) {
100 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
107 <<
"\nWARNING: Input tag for GlobalAlgBlkBxCollection product set to preferred input tag" 108 << (
tag) << std::endl;
122 <<
"\nWARNING: Found multiple input tags for GlobalAlgBlkBxCollection product." 123 <<
"\nNone is in the preferred input tags - no safe choice." 124 <<
"\nInput tag already found: " 126 <<
"\nInput tag set to empty tag." << std::endl;
138 <<
"\nWARNING: No preferred input tag found for GlobalAlgBlkBxCollection." 139 <<
"\nInput tag set to " << (
tag) << std::endl;
171 <<
"\nWARNING: Found multiple preferred input tags for GlobalExtBlkBxCollection, " 172 <<
"\nwith different instaces or processes." 173 <<
"\nInput tag already found: " 175 << (
tag) <<
"\nInput tag set to empty tag." 184 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
185 preferredL1TExtBlkInputTag.begin(), itPrefTagEnd =
186 preferredL1TExtBlkInputTag.end();
187 itPrefTag != itPrefTagEnd; ++itPrefTag) {
189 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
196 <<
"\nWARNING: Input tag for GlobalExtBlkBxCollection product set to preferred input tag" 197 << (
tag) << std::endl;
211 <<
"\nWARNING: Found multiple input tags for GlobalExtBlkBxCollection." 212 <<
"\nNone is in the preferred input tags - no safe choice." 213 <<
"\nInput tag already found: " 215 << (
tag) <<
"\nInput tag set to empty tag." 228 <<
"\nWARNING: No preferred input tag found for GlobalExtBlkBxCollection product." 229 <<
"\nInput tag set to " << (
tag) << std::endl;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
BranchType const & branchType() const
bool m_foundMultipleL1TExtBlk
std::vector< edm::InputTag > m_inputTagsL1TAlgBlk
bool m_foundMultipleL1TAlgBlk
std::string const & processName() const
L1TGlobalUtilHelper(edm::ParameterSet const &pset, edm::ConsumesCollector &iC)
std::vector< edm::InputTag > m_inputTagsL1TExtBlk
edm::EDGetTokenT< GlobalExtBlkBxCollection > m_l1tExtBlkToken
bool m_foundPreferredL1TExtBlk
std::string const & moduleLabel() const
std::string const & productInstanceName() const
TypeID unwrappedTypeID() const
edm::ConsumesCollector m_consumesCollector
static void fillDescription(edm::ParameterSetDescription &desc)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::EDGetTokenT< GlobalAlgBlkBxCollection > m_l1tAlgBlkToken
edm::InputTag m_l1tAlgBlkInputTag
edm::InputTag m_l1tExtBlkInputTag
void operator()(edm::BranchDescription const &branchDescription)
bool m_foundPreferredL1TAlgBlk