60 enable_sanity_checks_(
config.getUntrackedParameter<
bool>(
"sanity_checks")),
61 inv_mass_checks_(
config.getUntrackedParameter<
bool>(
"inv_mass_checks")),
62 deltaCuts_(
config,
config, scales_, enable_sanity_checks_, inv_mass_checks_),
64 token2_(collection1Cuts_.
tag() == collection2Cuts_.
tag()
75 produces<InvariantMassErrorCollection>();
92 desc.addUntracked<
bool>(
"sanity_checks",
false);
93 desc.addUntracked<
bool>(
"inv_mass_checks",
false);
96 L1GTCorrelationalCut::fillLUTDescriptions(
desc);
110 bool condition_result =
false;
112 std::set<std::size_t> triggeredIdcs1;
113 std::set<std::size_t> triggeredIdcs2;
117 for (std::size_t idx1 = 0; idx1 < col1->size(); ++idx1) {
121 for (std::size_t idx2 = 0; idx2 < col2->size(); ++idx2) {
127 bool pass = single1Pass;
132 condition_result |= pass;
135 triggeredIdcs1.emplace(idx1);
137 triggeredIdcs2.emplace(idx2);
139 triggeredIdcs1.emplace(idx2);
148 if (condition_result) {
149 std::unique_ptr<P2GTCandidateVectorRef> triggerCol1 = std::make_unique<P2GTCandidateVectorRef>();
151 for (std::size_t
idx : triggeredIdcs1) {
157 std::unique_ptr<P2GTCandidateVectorRef> triggerCol2 = std::make_unique<P2GTCandidateVectorRef>();
159 for (std::size_t
idx : triggeredIdcs2) {
167 event.put(std::make_unique<InvariantMassErrorCollection>(
std::move(massErrors)),
"");
170 return condition_result;
const edm::EDGetTokenT< P2GTCandidateCollection > token1_
const edm::EDGetTokenT< P2GTCandidateCollection > primVertToken_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const L1GTCorrelationalCut deltaCuts_
bool checkObject(const P2GTCandidate &obj) const
std::vector< P2GTCandidate > P2GTCandidateCollection
T const * product() const
const edm::InputTag & tag() const
edm::Ref< P2GTCandidateCollection > P2GTCandidateRef
const bool inv_mass_checks_
bool checkPrimaryVertices(const P2GTCandidate &obj, const P2GTCandidateCollection &primVertCol) const
std::vector< InvariantMassError > InvariantMassErrorCollection
bool checkObjects(const P2GTCandidate &obj1, const P2GTCandidate &obj2, InvariantMassErrorCollection &massErrors) const
bool checkCollection(const P2GTCandidateCollection &col) const
const edm::EDGetTokenT< P2GTCandidateCollection > token2_
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void fillPSetDescription(edm::ParameterSetDescription &desc)
const L1GTSingleCollectionCut collection2Cuts_
L1GTDoubleObjectCond(const edm::ParameterSet &)
ParameterSet const & getParameterSet(ParameterSetID const &id)
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const bool enable_sanity_checks_
const L1GTSingleCollectionCut collection1Cuts_