Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-03-25 23:59:48

0001 #ifndef HLTmmkkFilter_h
0002 #define HLTmmkkFilter_h
0003 //
0004 // Package:    HLTstaging
0005 // Class:      HLTmmkkFilter
0006 //
0007 /**\class HLTmmkkFilter
0008 
0009  HLT Filter for b to (mumu) + X
0010 
0011  Implementation:
0012      <Notes on implementation>
0013 */
0014 //
0015 // Original Author:  Nicolo Magini
0016 //         Created:  Thu Nov  9 17:55:31 CET 2006
0017 // Modified by Lotte Wilke
0018 // Last Modification: 13.02.2007
0019 //
0020 
0021 #include <memory>
0022 
0023 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0024 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
0025 #include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
0026 #include "TrackingTools/Records/interface/TransientTrackRecord.h"
0027 #include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
0028 #include "MagneticField/Records/interface/IdealMagneticFieldRecord.h"
0029 #include "MagneticField/Engine/interface/MagneticField.h"
0030 
0031 namespace edm {
0032   class ConfigurationDescriptions;
0033 }
0034 
0035 namespace reco {
0036   class Candidate;
0037   class Track;
0038 }  // namespace reco
0039 
0040 class FreeTrajectoryState;
0041 class MagneticField;
0042 
0043 class HLTmmkkFilter : public HLTFilter {
0044 public:
0045   explicit HLTmmkkFilter(const edm::ParameterSet &);
0046   ~HLTmmkkFilter() override;
0047   static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0048 
0049 private:
0050   void beginJob() override;
0051   bool hltFilter(edm::Event &,
0052                  const edm::EventSetup &,
0053                  trigger::TriggerFilterObjectWithRefs &filterproduct) const override;
0054   void endJob() override;
0055 
0056   static int overlap(const reco::Candidate &, const reco::Candidate &);
0057   static FreeTrajectoryState initialFreeState(const reco::Track &, const MagneticField *);
0058 
0059   const edm::ESGetToken<TransientTrackBuilder, TransientTrackRecord> transientTrackRecordToken_;
0060   const edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> idealMagneticFieldRecordToken_;
0061 
0062   edm::InputTag muCandTag_;
0063   edm::EDGetTokenT<reco::RecoChargedCandidateCollection> muCandToken_;
0064   edm::InputTag trkCandTag_;
0065   edm::EDGetTokenT<reco::RecoChargedCandidateCollection> trkCandToken_;
0066 
0067   const double thirdTrackMass_;
0068   const double fourthTrackMass_;
0069   const double maxEta_;
0070   const double minPt_;
0071   const double minInvMass_;
0072   const double maxInvMass_;
0073   const double maxNormalisedChi2_;
0074   const double minLxySignificance_;
0075   const double minCosinePointingAngle_;
0076   const double minD0Significance_;
0077   const bool fastAccept_;
0078   edm::InputTag beamSpotTag_;
0079   edm::EDGetTokenT<reco::BeamSpot> beamSpotToken_;
0080 };
0081 #endif