Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-15 23:29:49

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