CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HICaloCompatibleTrackSelector.h
Go to the documentation of this file.
1 #ifndef HICaloCompatibleTrackSelector_H
2 #define HICaloCompatibleTrackSelector_H
3 
12 #include <utility>
13 #include <vector>
14 #include <memory>
15 #include <algorithm>
16 #include <map>
20 
29 
34 
38 
41 
42 
43 // ROOT includes
44 #include "TF1.h"
45 
46 namespace reco { namespace modules {
47 
49 
50  public:
55 
56  private:
58  typedef reco::PFCandidateCollection::const_iterator CI;
59  typedef reco::TrackCollection::const_iterator TI;
60 
62  void produce( edm::Event& evt, const edm::EventSetup& es ) ;
63 
64  void matchByDrAllowReuse(const reco::Track & trk, const edm::Handle<CaloTowerCollection> & towers, double & bestdr, double & bestpt);
65 
66  double matchPFCandToTrack(const edm::Handle<PFCandidateCollection> & pfCandidates, unsigned it, double trkPt);
67 
69  bool selectByTowers(TI ti, const edm::Handle<TrackCollection> hSrcTrack, const edm::Handle<CaloTowerCollection> towers, bool isTowerThere);
70 
77 
78  //
82  double trkCompPtMin_;
83  double trkEtaMax_;
84  double towerPtMin_;
86 
92 
98 
99  bool passMuons_;
101 
102  // string of functional form
105 
107  std::auto_ptr<reco::TrackCollection> selTracks_;
108  std::auto_ptr<reco::TrackExtraCollection> selTrackExtras_;
109  std::auto_ptr< TrackingRecHitCollection> selHits_;
110  std::auto_ptr< std::vector<Trajectory> > selTrajs_;
111  std::auto_ptr< std::vector<const Trajectory *> > selTrajPtrs_;
112  std::auto_ptr< TrajTrackAssociationCollection > selTTAss_;
117  std::vector<reco::TrackRef> trackRefs_;
118 
119  // TF1
121 
122 
123  };
124 
125  }
126 }
127 
128 #endif
edm::EDGetTokenT< CaloTowerCollection > srcTower_
tuple cfg
Definition: looper.py:293
std::auto_ptr< TrackingRecHitCollection > selHits_
void produce(edm::Event &evt, const edm::EventSetup &es)
process one event
std::auto_ptr< reco::TrackExtraCollection > selTrackExtras_
edm::EDGetTokenT< reco::TrackCollection > srcTracks_
source collection label
edm::EDGetTokenT< std::vector< Trajectory > > srcTrackTrajs_
std::vector< PFCandidatePtr > pfCandidates(const PFJet &jet, int particleId, bool sort=true)
reco::PFCandidateCollection::const_iterator CI
std::auto_ptr< std::vector< Trajectory > > selTrajs_
std::auto_ptr< std::vector< const Trajectory * > > selTrajPtrs_
bool selectByTowers(TI ti, const edm::Handle< TrackCollection > hSrcTrack, const edm::Handle< CaloTowerCollection > towers, bool isTowerThere)
bool copyExtras_
copy only the tracks, not extras and rechits (for AOD)
edm::RefProd< std::vector< Trajectory > > rTrajectories_
edm::EDGetTokenT< reco::PFCandidateCollection > srcPFCands_
double matchPFCandToTrack(const edm::Handle< PFCandidateCollection > &pfCandidates, unsigned it, double trkPt)
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
HICaloCompatibleTrackSelector(const edm::ParameterSet &cfg)
constructor
std::auto_ptr< reco::TrackCollection > selTracks_
storage
std::auto_ptr< TrajTrackAssociationCollection > selTTAss_
bool selectByPFCands(TI ti, const edm::Handle< TrackCollection > hSrcTrack, const edm::Handle< PFCandidateCollection > pfCandidates, bool isPFThere)
void matchByDrAllowReuse(const reco::Track &trk, const edm::Handle< CaloTowerCollection > &towers, double &bestdr, double &bestpt)
bool copyTrajectories_
copy also trajectories and trajectory-&gt;track associations
edm::EDGetTokenT< TrajTrackAssociationCollection > srcTrackTrajAssoc_