test
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 
2 #include <memory>
3 
4 // user include files
6 
26 #include "TMVA/Reader.h"
27 
29 
31 
32  public:
34  double mvaBremConvCutBarrelLowPt,
35  double mvaBremConvCutBarrelHighPt,
36  double mvaBremConvCutEndcapsLowPt,
37  double mvaBremConvCutEndcapsHighPt,
38  std::string mvaWeightFileConvBremBarrelLowPt,
39  std::string mvaWeightFileConvBremBarrelHighPt,
40  std::string mvaWeightFileConvBremEndcapsLowPt,
41  std::string mvaWeightFileConvBremEndcapsHighPt
42  );
44 
50  bool useNuclear,
51  bool useConversions,
52  bool useV0,
53  const reco::PFClusterCollection & theEClus,
54  const reco::GsfPFRecTrack& gsfpfrectk)
55  {
56  found_ = false;
57  runConvBremFinder(thePfRecTrackCol,primaryVertex,
58  pfNuclears,pfConversions,
59  pfV0,useNuclear,
60  useConversions,useV0,
61  theEClus,gsfpfrectk);
62  return found_;};
63 
64 
65  const std::vector<reco::PFRecTrackRef>& getConvBremPFRecTracks() {return pfRecTrRef_vec_;};
66 
67  private:
73  bool useNuclear,
74  bool useConversions,
75  bool useV0,
76  const reco::PFClusterCollection & theEClus,
77  const reco::GsfPFRecTrack& gsfpfrectk);
78 
79 
80 
81  bool found_;
85  TMVA::Reader *tmvaReaderBarrelLowPt_;
86  TMVA::Reader *tmvaReaderBarrelHighPt_;
87  TMVA::Reader *tmvaReaderEndcapsLowPt_;
88  TMVA::Reader *tmvaReaderEndcapsHighPt_;
89 
90  std::vector<reco::PFRecTrackRef> pfRecTrRef_vec_;
92  //int nHITS1;
93  float nHITS1;
94 
96 
97 };
tuple pfV0
Definition: pfV0_cfi.py:3
TMVA::Reader * tmvaReaderEndcapsHighPt_
const std::vector< reco::PFRecTrackRef > & getConvBremPFRecTracks()
ConvBremPFTrackFinder(const TransientTrackBuilder &builder, double mvaBremConvCutBarrelLowPt, double mvaBremConvCutBarrelHighPt, double mvaBremConvCutEndcapsLowPt, double mvaBremConvCutEndcapsHighPt, std::string mvaWeightFileConvBremBarrelLowPt, std::string mvaWeightFileConvBremBarrelHighPt, std::string mvaWeightFileConvBremEndcapsLowPt, std::string mvaWeightFileConvBremEndcapsHighPt)
std::string mvaWeightFileConvBremEndcapsHighPt_
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_
TMVA::Reader * tmvaReaderBarrelHighPt_
std::vector< reco::PFRecTrackRef > pfRecTrRef_vec_
TMVA::Reader * tmvaReaderEndcapsLowPt_
std::string mvaWeightFileConvBremEndcapsLowPt_
std::string mvaWeightFileConvBremBarrelHighPt_
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
TMVA::Reader * tmvaReaderBarrelLowPt_
std::string mvaWeightFileConvBremBarrelLowPt_
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)