CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConvBremPFTrackFinder.h
Go to the documentation of this file.
1 #include <memory>
2 
3 // user include files
5 
25 #include "TMVA/Reader.h"
26 
28 
30 
31  public:
33  double mvaBremConvCut,
34  std::string mvaWeightFileConvBrem);
36 
38  const edm::Handle<reco::VertexCollection>& primaryVertex,
42  bool useNuclear,
43  bool useConversions,
44  bool useV0,
45  const reco::PFClusterCollection & theEClus,
46  const reco::GsfPFRecTrack& gsfpfrectk)
47  {
48  found_ = false;
49  runConvBremFinder(thePfRecTrackCol,primaryVertex,
50  pfNuclears,pfConversions,
51  pfV0,useNuclear,
52  useConversions,useV0,
53  theEClus,gsfpfrectk);
54  return found_;};
55 
56 
57  const std::vector<reco::PFRecTrackRef>& getConvBremPFRecTracks() {return pfRecTrRef_vec_;};
58 
59  private:
61  const edm::Handle<reco::VertexCollection>& primaryVertex,
65  bool useNuclear,
66  bool useConversions,
67  bool useV0,
68  const reco::PFClusterCollection & theEClus,
69  const reco::GsfPFRecTrack& gsfpfrectk);
70 
71 
72 
73  bool found_;
77  TMVA::Reader *tmvaReader_;
78  std::vector<reco::PFRecTrackRef> pfRecTrRef_vec_;
80  //int nHITS1;
81  float nHITS1;
82 
84 
85 };
tuple pfV0
Definition: pfV0_cfi.py:3
const std::vector< reco::PFRecTrackRef > & getConvBremPFRecTracks()
PFEnergyCalibration * pfcalib_
bool foundConvBremPFRecTrack(const edm::Handle< reco::PFRecTrackCollection > &thePfRecTrackCol, const edm::Handle< reco::VertexCollection > &primaryVertex, const edm::Handle< reco::PFDisplacedTrackerVertexCollection > &pfNuclears, const edm::Handle< reco::PFConversionCollection > &pfConversions, const edm::Handle< reco::PFV0Collection > &pfV0, bool useNuclear, bool useConversions, bool useV0, const reco::PFClusterCollection &theEClus, const reco::GsfPFRecTrack &gsfpfrectk)
TransientTrackBuilder builder_
std::vector< reco::PFRecTrackRef > pfRecTrRef_vec_
ConvBremPFTrackFinder(const TransientTrackBuilder &builder, double mvaBremConvCut, std::string mvaWeightFileConvBrem)
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
void runConvBremFinder(const edm::Handle< reco::PFRecTrackCollection > &thePfRecTrackCol, const edm::Handle< reco::VertexCollection > &primaryVertex, const edm::Handle< reco::PFDisplacedTrackerVertexCollection > &pfNuclears, const edm::Handle< reco::PFConversionCollection > &pfConversions, const edm::Handle< reco::PFV0Collection > &pfV0, bool useNuclear, bool useConversions, bool useV0, const reco::PFClusterCollection &theEClus, const reco::GsfPFRecTrack &gsfpfrectk)