CMS 3D CMS Logo

PatternRecognitionAlgoBase.h
Go to the documentation of this file.
1 // Author: Felice Pantaleo - felice.pantaleo@cern.ch
2 // Date: 09/2018
3 
4 #ifndef RecoHGCal_TICL_PatternRecognitionAlgoBase_H__
5 #define RecoHGCal_TICL_PatternRecognitionAlgoBase_H__
6 
7 #include <memory>
8 #include <vector>
17 
18 namespace edm {
19  class Event;
20  class EventSetup;
21 } // namespace edm
22 
23 namespace ticl {
25  public:
27  : algo_verbosity_(conf.getParameter<int>("algo_verbosity")) {}
29 
30  struct Inputs {
31  const edm::Event& ev;
33  const std::vector<reco::CaloCluster>& layerClusters;
34  const std::vector<float>& mask;
37  const std::vector<TICLSeedingRegion>& regions;
38 
39  Inputs(const edm::Event& eV,
40  const edm::EventSetup& eS,
41  const std::vector<reco::CaloCluster>& lC,
42  const std::vector<float>& mS,
43  const edm::ValueMap<float>& lT,
44  const TICLLayerTiles& tL,
45  const std::vector<TICLSeedingRegion>& rG)
46  : ev(eV), es(eS), layerClusters(lC), mask(mS), layerClustersTime(lT), tiles(tL), regions(rG) {}
47  };
48 
49  virtual void makeTracksters(const Inputs& input, std::vector<Trackster>& result) = 0;
50 
51  enum VerbosityLevel { None = 0, Basic, Advanced, Expert, Guru };
52 
53  protected:
55  };
56 } // namespace ticl
57 
58 #endif
static std::string const input
Definition: EdmProvDump.cc:48
const edm::ValueMap< float > & layerClustersTime
const std::vector< reco::CaloCluster > & layerClusters
const std::vector< TICLSeedingRegion > & regions
HLT enums.
def cache(function)
Definition: utilities.py:3
Inputs(const edm::Event &eV, const edm::EventSetup &eS, const std::vector< reco::CaloCluster > &lC, const std::vector< float > &mS, const edm::ValueMap< float > &lT, const TICLLayerTiles &tL, const std::vector< TICLSeedingRegion > &rG)
PatternRecognitionAlgoBase(const edm::ParameterSet &conf, const CacheBase *cache)