Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-01-13 02:35:13

0001 #ifndef HLTrigger_Egamma_HLTDisplacedEgammaFilter_h
0002 #define HLTrigger_Egamma_HLTDisplacedEgammaFilter_h
0003 
0004 /** \class HLTDisplacedEgammaFilter
0005  *
0006  *  \author Monica Vazquez Acosta (CERN)
0007  *
0008  */
0009 
0010 #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
0011 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0012 #include "DataFormats/TrackReco/interface/Track.h"
0013 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0014 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0015 
0016 class HLTDisplacedEgammaFilter : public HLTFilter {
0017 public:
0018   explicit HLTDisplacedEgammaFilter(const edm::ParameterSet&);
0019   ~HLTDisplacedEgammaFilter() override = default;
0020 
0021   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0022 
0023   bool hltFilter(edm::Event&,
0024                  const edm::EventSetup&,
0025                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0026 
0027 private:
0028   edm::InputTag inputTag_;  // input tag identifying product contains egammas
0029   edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> inputToken_;
0030   int ncandcut_;  // number of egammas required
0031   edm::InputTag l1EGTag_;
0032   edm::InputTag rechitsEB;
0033   edm::InputTag rechitsEE;
0034   edm::EDGetTokenT<EcalRecHitCollection> rechitsEBToken_;
0035   edm::EDGetTokenT<EcalRecHitCollection> rechitsEEToken_;
0036 
0037   bool EBOnly;
0038   double sMin_min;
0039   double sMin_max;
0040   double sMaj_min;
0041   double sMaj_max;
0042   double seedTimeMin;
0043   double seedTimeMax;
0044   bool useTrackVeto;
0045 
0046   edm::InputTag inputTrk;
0047   edm::EDGetTokenT<reco::TrackCollection> inputTrkToken_;
0048   double trkPtCut;
0049   double trkDr2Cut;
0050   int maxTrkCut;
0051 };
0052 
0053 #endif