CMS 3D CMS Logo

LowPtGsfElectronSeedHeavyObjectCache.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaElectronProducers_LowPtGsfElectronSeedHeavyObjectCache_h
2 #define RecoEgamma_EgammaElectronProducers_LowPtGsfElectronSeedHeavyObjectCache_h
3 
7 #include <vector>
8 
9 namespace reco {
10  class BeamSpot;
11  class PreId;
12 } // namespace reco
13 
14 namespace lowptgsfeleseed {
15 
16  class Features {
17  public:
18  float trk_pt_ = -1.;
19  float trk_eta_ = -1.;
20  float trk_phi_ = -1.;
21  float trk_p_ = -1.;
22  float trk_nhits_ = -1.;
23  float trk_high_quality_ = -1.;
24  float trk_chi2red_ = -1.;
25  float rho_ = -1.;
26  float ktf_ecal_cluster_e_ = -1.;
27  float ktf_ecal_cluster_deta_ = -42.;
28  float ktf_ecal_cluster_dphi_ = -42.;
34  float ktf_ecal_cluster_r9_ = -0.1;
36  float ktf_hcal_cluster_e_ = -1.;
37  float ktf_hcal_cluster_deta_ = -42.;
38  float ktf_hcal_cluster_dphi_ = -42.;
39  float preid_gsf_dpt_ = -1.;
41  float preid_gsf_chi2red_ = -1.;
42  float trk_dxy_sig_ = -1.; // must be last (not used by unbiased model)
43  public:
44  std::vector<float> get();
45  void set(const reco::PreId& ecal,
46  const reco::PreId& hcal,
47  double rho,
48  const reco::BeamSpot& spot,
49  noZS::EcalClusterLazyTools& ecalTools);
50  };
51 
53  public:
55 
56  std::vector<std::string> modelNames() const { return names_; }
57 
58  bool eval(const std::string& name,
61  double rho,
62  const reco::BeamSpot& spot,
63  noZS::EcalClusterLazyTools& ecalTools) const;
64 
65  private:
66  std::vector<std::string> names_;
67  std::vector<std::unique_ptr<const GBRForest> > models_;
68  std::vector<double> thresholds_;
69  };
70 } // namespace lowptgsfeleseed
71 
72 #endif // RecoEgamma_EgammaElectronProducers_LowPtGsfElectronSeedHeavyObjectCache_h
lowptgsfeleseed::Features::trk_dxy_sig_
float trk_dxy_sig_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:42
lowptgsfeleseed::Features::ktf_hcal_cluster_dphi_
float ktf_hcal_cluster_dphi_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:38
lowptgsfeleseed::Features::rho_
float rho_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:25
lowptgsfeleseed::Features
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:16
align::BeamSpot
Definition: StructureType.h:89
hcal
Definition: ConfigurationDatabase.cc:13
lowptgsfeleseed::Features::ktf_ecal_cluster_deta_
float ktf_ecal_cluster_deta_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:27
EcalClusterLazyTools.h
lowptgsfeleseed::Features::ktf_ecal_cluster_covEtaPhi_
float ktf_ecal_cluster_covEtaPhi_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:32
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
lowptgsfeleseed::Features::preid_gsf_dpt_
float preid_gsf_dpt_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:39
reco::PreId
Definition: PreId.h:13
GBRForest.h
lowptgsfeleseed::Features::trk_p_
float trk_p_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:21
lowptgsfeleseed::Features::ktf_ecal_cluster_r9_
float ktf_ecal_cluster_r9_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:34
lowptgsfeleseed::Features::ktf_hcal_cluster_deta_
float ktf_hcal_cluster_deta_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:37
lowptgsfeleseed::Features::preid_gsf_chi2red_
float preid_gsf_chi2red_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:41
lowptgsfeleseed::Features::trk_high_quality_
float trk_high_quality_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:23
lowptgsfeleseed::Features::set
void set(const reco::PreId &ecal, const reco::PreId &hcal, double rho, const reco::BeamSpot &spot, noZS::EcalClusterLazyTools &ecalTools)
Definition: LowPtGsfElectronSeedHeavyObjectCache.cc:49
lowptgsfeleseed::HeavyObjectCache::names_
std::vector< std::string > names_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:66
reco::BeamSpot
Definition: BeamSpot.h:21
lowptgsfeleseed::Features::ktf_ecal_cluster_e5x5_
float ktf_ecal_cluster_e5x5_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:30
lowptgsfeleseed::HeavyObjectCache::eval
bool eval(const std::string &name, reco::PreId &ecal, reco::PreId &hcal, double rho, const reco::BeamSpot &spot, noZS::EcalClusterLazyTools &ecalTools) const
Definition: LowPtGsfElectronSeedHeavyObjectCache.cc:134
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
lowptgsfeleseed::Features::ktf_ecal_cluster_covEtaEta_
float ktf_ecal_cluster_covEtaEta_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:31
EcalClusterLazyToolsT
Definition: EcalClusterLazyTools.h:105
edm::ParameterSet
Definition: ParameterSet.h:36
lowptgsfeleseed::Features::trk_nhits_
float trk_nhits_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:22
lowptgsfeleseed::Features::ktf_hcal_cluster_e_
float ktf_hcal_cluster_e_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:36
lowptgsfeleseed::Features::ktf_ecal_cluster_circularity_
float ktf_ecal_cluster_circularity_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:35
lowptgsfeleseed::HeavyObjectCache::models_
std::vector< std::unique_ptr< const GBRForest > > models_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:67
lowptgsfeleseed::Features::trk_pt_
float trk_pt_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:18
lowptgsfeleseed::HeavyObjectCache::HeavyObjectCache
HeavyObjectCache(const edm::ParameterSet &)
Definition: LowPtGsfElectronSeedHeavyObjectCache.cc:111
lowptgsfeleseed::Features::ktf_ecal_cluster_e_
float ktf_ecal_cluster_e_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:26
lowptgsfeleseed::Features::ktf_ecal_cluster_covPhiPhi_
float ktf_ecal_cluster_covPhiPhi_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:33
lowptgsfeleseed::HeavyObjectCache
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:52
lowptgsfeleseed::Features::preid_trk_gsf_chiratio_
float preid_trk_gsf_chiratio_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:40
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
lowptgsfeleseed::HeavyObjectCache::modelNames
std::vector< std::string > modelNames() const
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:56
bsc_activity_cfg.ecal
ecal
Definition: bsc_activity_cfg.py:25
lowptgsfeleseed::Features::ktf_ecal_cluster_e3x3_
float ktf_ecal_cluster_e3x3_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:29
lowptgsfeleseed::Features::trk_phi_
float trk_phi_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:20
ParameterSet.h
lowptgsfeleseed::Features::trk_eta_
float trk_eta_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:19
lowptgsfeleseed
Definition: LowPtGsfElectronSeedHeavyObjectCache.cc:14
lowptgsfeleseed::Features::trk_chi2red_
float trk_chi2red_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:24
lowptgsfeleseed::HeavyObjectCache::thresholds_
std::vector< double > thresholds_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:68
lowptgsfeleseed::Features::get
std::vector< float > get()
Definition: LowPtGsfElectronSeedHeavyObjectCache.cc:18
lowptgsfeleseed::Features::ktf_ecal_cluster_dphi_
float ktf_ecal_cluster_dphi_
Definition: LowPtGsfElectronSeedHeavyObjectCache.h:28