62 enable_sanity_checks_(
config.getUntrackedParameter<
bool>(
"sanity_checks")),
63 inv_mass_checks_(
config.getUntrackedParameter<
bool>(
"inv_mass_checks")),
70 correl123Cuts_(
config,
config, scales_, inv_mass_checks_),
72 token2_(collection1Cuts_.
tag() == collection2Cuts_.
tag()
75 token3_(collection1Cuts_.
tag() == collection3Cuts_.
tag()
77 : (collection2Cuts_.
tag() == collection3Cuts_.
tag()
92 produces<InvariantMassErrorCollection>();
117 desc.addUntracked<
bool>(
"sanity_checks",
false);
118 desc.addUntracked<
bool>(
"inv_mass_checks",
false);
134 L1GTCorrelationalCut::fillLUTDescriptions(
desc);
145 bool condition_result =
false;
147 std::set<std::size_t> triggeredIdcs1;
148 std::set<std::size_t> triggeredIdcs2;
149 std::set<std::size_t> triggeredIdcs3;
153 for (std::size_t idx1 = 0; idx1 < col1->size(); ++idx1) {
157 for (std::size_t idx2 = 0; idx2 < col2->size(); ++idx2) {
161 for (std::size_t idx3 = 0; idx3 < col3->size(); ++idx3) {
175 bool pass = single1Pass & single2Pass;
184 condition_result |= pass;
187 triggeredIdcs1.emplace(idx1);
190 triggeredIdcs2.emplace(idx2);
192 triggeredIdcs1.emplace(idx2);
196 triggeredIdcs3.emplace(idx3);
198 triggeredIdcs1.emplace(idx3);
200 triggeredIdcs2.emplace(idx3);
207 if (condition_result) {
208 std::unique_ptr<P2GTCandidateVectorRef> triggerCol1 = std::make_unique<P2GTCandidateVectorRef>();
210 for (std::size_t
idx : triggeredIdcs1) {
216 std::unique_ptr<P2GTCandidateVectorRef> triggerCol2 = std::make_unique<P2GTCandidateVectorRef>();
218 for (std::size_t
idx : triggeredIdcs2) {
225 std::unique_ptr<P2GTCandidateVectorRef> triggerCol3 = std::make_unique<P2GTCandidateVectorRef>();
227 for (std::size_t
idx : triggeredIdcs3) {
235 event.put(std::make_unique<InvariantMassErrorCollection>(
std::move(massErrors)),
"");
238 return condition_result;
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const L1GTCorrelationalCut correl23Cuts_
L1GTTripleObjectCond(const edm::ParameterSet &)
bool checkObject(const P2GTCandidate &obj) const
const edm::EDGetTokenT< P2GTCandidateCollection > primVertToken_
std::vector< P2GTCandidate > P2GTCandidateCollection
const L1GTSingleCollectionCut collection2Cuts_
T const * product() const
const edm::InputTag & tag() const
edm::Ref< P2GTCandidateCollection > P2GTCandidateRef
bool checkPrimaryVertices(const P2GTCandidate &obj, const P2GTCandidateCollection &primVertCol) const
bool filter(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
std::vector< InvariantMassError > InvariantMassErrorCollection
const edm::EDGetTokenT< P2GTCandidateCollection > token2_
bool checkObjects(const P2GTCandidate &obj1, const P2GTCandidate &obj2, InvariantMassErrorCollection &massErrors) const
const bool inv_mass_checks_
const L1GTCorrelationalCut correl12Cuts_
const L1GTCorrelationalCut correl13Cuts_
#define DEFINE_FWK_MODULE(type)
const L1GTSingleCollectionCut collection1Cuts_
const edm::EDGetTokenT< P2GTCandidateCollection > token3_
static void fillDescriptions(edm::ConfigurationDescriptions &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void fillPSetDescription(edm::ParameterSetDescription &desc)
const bool enable_sanity_checks_
const L1GT3BodyCut correl123Cuts_
bool checkObjects(const P2GTCandidate &obj1, const P2GTCandidate &obj2, const P2GTCandidate &obj3, InvariantMassErrorCollection &massErrors) const
const L1GTSingleCollectionCut collection3Cuts_
const edm::EDGetTokenT< P2GTCandidateCollection > token1_