40 desc.
add<
double>(
"minMass",-1.0);
41 descriptions.
add(
"hltEgammaCombMassFilter",desc);
50 std::vector<math::XYZTLorentzVector> firstLegP4s;
53 std::vector<math::XYZTLorentzVector> secondLegP4s;
61 for(
auto & firstLegP4 : firstLegP4s){
62 for(
auto & secondLegP4 : secondLegP4s){
64 double mass = pairP4.M();
78 std::vector<edm::Ref<reco::RecoEcalCandidateCollection> > phoCands;
80 std::vector<edm::Ref<reco::RecoEcalCandidateCollection> > clusCands;
82 std::vector<edm::Ref<reco::ElectronCollection> > eleCands;
85 if(!phoCands.empty()){
86 for(
auto & phoCand : phoCands){
87 p4s.push_back(phoCand->p4());
89 }
else if(!clusCands.empty()){
90 for(
auto & clusCand : clusCands){
91 p4s.push_back(clusCand->p4());
93 }
else if(!eleCands.empty()){
94 for(
auto & eleCand : eleCands){
95 p4s.push_back(eleCand->p4());
T getParameter(std::string const &) const
void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
~HLTEgammaCombMassFilter() override
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > secondLegLastFilterToken_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::InputTag secondLegLastFilterTag_
edm::InputTag firstLegLastFilterTag_
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
#define DEFINE_FWK_MODULE(type)
HLTEgammaCombMassFilter(const edm::ParameterSet &)
static void getP4OfLegCands(const edm::Event &iEvent, const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > &filterToken, std::vector< math::XYZTLorentzVector > &p4s)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void makeHLTFilterDescription(edm::ParameterSetDescription &desc)
edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > firstLegLastFilterToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override