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 if (branchDescription.
dropped()) {
return; }
57 std::vector<edm::InputTag> preferredL1TAlgBlkInputTag = {
60 std::vector<edm::InputTag> preferredL1TExtBlkInputTag = {
88 <<
"\nWARNING: Found multiple preferred input tags for GlobalAlgBlkBxCollection, " 89 <<
"\nwith different instaces or processes." 90 <<
"\nInput tag already found: " 92 <<
"\nInput tag set to empty tag." << std::endl;
99 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
100 preferredL1TAlgBlkInputTag.begin(), itPrefTagEnd =
101 preferredL1TAlgBlkInputTag.end();
102 itPrefTag != itPrefTagEnd; ++itPrefTag) {
104 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
111 <<
"\nWARNING: Input tag for GlobalAlgBlkBxCollection product set to preferred input tag" 112 << (
tag) << std::endl;
126 <<
"\nWARNING: Found multiple input tags for GlobalAlgBlkBxCollection product." 127 <<
"\nNone is in the preferred input tags - no safe choice." 128 <<
"\nInput tag already found: " 130 <<
"\nInput tag set to empty tag." << std::endl;
142 <<
"\nWARNING: No preferred input tag found for GlobalAlgBlkBxCollection." 143 <<
"\nInput tag set to " << (
tag) << std::endl;
175 <<
"\nWARNING: Found multiple preferred input tags for GlobalExtBlkBxCollection, " 176 <<
"\nwith different instaces or processes." 177 <<
"\nInput tag already found: " 179 << (
tag) <<
"\nInput tag set to empty tag." 188 for (std::vector<edm::InputTag>::const_iterator itPrefTag =
189 preferredL1TExtBlkInputTag.begin(), itPrefTagEnd =
190 preferredL1TExtBlkInputTag.end();
191 itPrefTag != itPrefTagEnd; ++itPrefTag) {
193 if (branchDescription.
moduleLabel() == itPrefTag->label()) {
200 <<
"\nWARNING: Input tag for GlobalExtBlkBxCollection product set to preferred input tag" 201 << (
tag) << std::endl;
215 <<
"\nWARNING: Found multiple input tags for GlobalExtBlkBxCollection." 216 <<
"\nNone is in the preferred input tags - no safe choice." 217 <<
"\nInput tag already found: " 219 << (
tag) <<
"\nInput tag set to empty tag." 232 <<
"\nWARNING: No preferred input tag found for GlobalExtBlkBxCollection product." 233 <<
"\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