Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-10-07 01:21:14

0001 #ifndef JetVertexMain_H
0002 #define JetVertexMain_H
0003 
0004 #include "DataFormats/JetReco/interface/CaloJet.h"
0005 #include "DataFormats/TrackReco/interface/Track.h"
0006 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0007 #include "MagneticField/Engine/interface/MagneticField.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 #include "DataFormats/Common/interface/Handle.h"
0010 #include <cmath>
0011 #include <string>
0012 
0013 class JetVertexMain {
0014 public:
0015   JetVertexMain(const edm::ParameterSet& parameters);
0016 
0017   ~JetVertexMain(){};
0018 
0019   std::pair<double, bool> Main(const reco::CaloJet& jet,
0020                                edm::Handle<reco::TrackCollection> tracks,
0021                                double SIGNAL_V_Z,
0022                                double SIGNAL_V_Z_Error) const;
0023 
0024 private:
0025   double DeltaR(double eta1, double eta2, double phi1, double phi2) const;
0026   double Track_Pt(double px, double py) const;
0027 
0028   //algorithm parameters
0029   double cutSigmaZ;
0030   double cutDeltaZ;
0031   double threshold;
0032   double cone_size;
0033   int Algo;
0034   std::string cutType;
0035 };
0036 
0037 #endif