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_readPrescalesFromFile(pset.getParameter<
bool>(
"ReadPrescalesFromFile")),
17 m_foundPreferredL1TAlgBlk(
false),
18 m_foundPreferredL1TExtBlk(
false) {
28 desc.
add<
bool> (
"ReadPrescalesFromFile",
false);
55 std::vector<edm::InputTag> preferredL1TAlgBlkInputTag = {
58 std::vector<edm::InputTag> preferredL1TExtBlkInputTag = {
86 <<
"\nWARNING: Found multiple preferred input tags for GlobalAlgBlkBxCollection, " 87 <<
"\nwith different instaces or processes." 88 <<
"\nInput tag already found: " 90 <<
"\nInput tag set to empty tag." << std::endl;
97 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
98 preferredL1TAlgBlkInputTag.begin(), itPrefTagEnd =
99 preferredL1TAlgBlkInputTag.end();
100 itPrefTag != itPrefTagEnd; ++itPrefTag) {
102 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
109 <<
"\nWARNING: Input tag for GlobalAlgBlkBxCollection product set to preferred input tag" 110 << (
tag) << std::endl;
124 <<
"\nWARNING: Found multiple input tags for GlobalAlgBlkBxCollection product." 125 <<
"\nNone is in the preferred input tags - no safe choice." 126 <<
"\nInput tag already found: " 128 <<
"\nInput tag set to empty tag." << std::endl;
140 <<
"\nWARNING: No preferred input tag found for GlobalAlgBlkBxCollection." 141 <<
"\nInput tag set to " << (
tag) << std::endl;
173 <<
"\nWARNING: Found multiple preferred input tags for GlobalExtBlkBxCollection, " 174 <<
"\nwith different instaces or processes." 175 <<
"\nInput tag already found: " 177 << (
tag) <<
"\nInput tag set to empty tag." 186 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
187 preferredL1TExtBlkInputTag.begin(), itPrefTagEnd =
188 preferredL1TExtBlkInputTag.end();
189 itPrefTag != itPrefTagEnd; ++itPrefTag) {
191 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
198 <<
"\nWARNING: Input tag for GlobalExtBlkBxCollection product set to preferred input tag" 199 << (
tag) << std::endl;
213 <<
"\nWARNING: Found multiple input tags for GlobalExtBlkBxCollection." 214 <<
"\nNone is in the preferred input tags - no safe choice." 215 <<
"\nInput tag already found: " 217 << (
tag) <<
"\nInput tag set to empty tag." 230 <<
"\nWARNING: No preferred input tag found for GlobalExtBlkBxCollection product." 231 <<
"\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