CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PatternRecognitionbyCA.h
Go to the documentation of this file.
1 // Author: Felice Pantaleo,Marco Rovere - felice.pantaleo@cern.ch, marco.rovere@cern.ch
2 // Date: 09/2018
3 
4 #ifndef __RecoHGCal_TICL_PRbyCA_H__
5 #define __RecoHGCal_TICL_PRbyCA_H__
6 #include <memory> // unique_ptr
10 #include "HGCGraph.h"
11 
12 namespace ticl {
13  template <typename TILES>
15  public:
17  ~PatternRecognitionbyCA() override;
18 
20  std::vector<Trackster>& result,
21  std::unordered_map<int, std::vector<int>>& seedToTracksterAssociation) override;
22 
23  void energyRegressionAndID(const std::vector<reco::CaloCluster>& layerClusters, std::vector<Trackster>& result);
24  void emptyTrackstersFromSeedsTRK(std::vector<Trackster>& tracksters,
25  std::unordered_map<int, std::vector<int>>& seedToTracksterAssociation,
26  const edm::ProductID& collectionID) const;
27 
29 
30  private:
31  void mergeTrackstersTRK(const std::vector<Trackster>&,
32  const std::vector<reco::CaloCluster>&,
33  std::vector<Trackster>&,
34  std::unordered_map<int, std::vector<int>>& seedToTracksterAssociation) const;
36  const std::unique_ptr<HGCGraphT<TILES>> theGraph_;
39  const bool out_in_dfs_;
40  const unsigned int max_out_in_hops_;
41  const float min_cos_theta_;
42  const float min_cos_pointing_;
45  const int skip_layers_;
47  bool check_missing_layers_ = false;
48  const unsigned int shower_start_max_layer_;
49  const unsigned int min_layers_per_trackster_;
50  const std::vector<int> filter_on_categories_;
51  const double pid_threshold_;
55  const float max_delta_time_;
59  const float eidMinClusterEnergy_;
60  const int eidNLayers_;
61  const int eidNClusters_;
62 
64  tensorflow::Session* eidSession_;
65 
66  static const int eidNFeatures_ = 3;
67  };
68 
69 } // namespace ticl
70 #endif
PatternRecognitionbyCA(const edm::ParameterSet &conf, const CacheBase *cache, edm::ConsumesCollector iC)
const std::unique_ptr< HGCGraphT< TILES > > theGraph_
void emptyTrackstersFromSeedsTRK(std::vector< Trackster > &tracksters, std::unordered_map< int, std::vector< int >> &seedToTracksterAssociation, const edm::ProductID &collectionID) const
void makeTracksters(const typename PatternRecognitionAlgoBaseT< TILES >::Inputs &input, std::vector< Trackster > &result, std::unordered_map< int, std::vector< int >> &seedToTracksterAssociation) override
static std::string const input
Definition: EdmProvDump.cc:47
tuple result
Definition: mps_fire.py:311
void energyRegressionAndID(const std::vector< reco::CaloCluster > &layerClusters, std::vector< Trackster > &result)
const std::vector< int > filter_on_categories_
const unsigned int min_layers_per_trackster_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > caloGeomToken_
void mergeTrackstersTRK(const std::vector< Trackster > &, const std::vector< reco::CaloCluster > &, std::vector< Trackster > &, std::unordered_map< int, std::vector< int >> &seedToTracksterAssociation) const
static void fillPSetDescription(edm::ParameterSetDescription &iDesc)
const unsigned int shower_start_max_layer_
const float root_doublet_max_distance_from_seed_squared_
def cache
Definition: utilities.py:3