CMS 3D CMS Logo

HGCGraph.h
Go to the documentation of this file.
1 // Author: Felice Pantaleo - felice.pantaleo@cern.ch
2 // Date: 11/2018
3 
4 #ifndef __RecoHGCal_TICL_HGCGraph_H__
5 #define __RecoHGCal_TICL_HGCGraph_H__
6 
7 #include <vector>
8 
12 #include "HGCDoublet.h"
13 
14 template <typename TILES>
15 class HGCGraphT {
16 public:
17  void makeAndConnectDoublets(const TILES &h,
18  const std::vector<TICLSeedingRegion> &regions,
19  int nEtaBins,
20  int nPhiBins,
21  const std::vector<reco::CaloCluster> &layerClusters,
22  const std::vector<float> &mask,
23  const edm::ValueMap<std::pair<float, float>> &layerClustersTime,
24  int deltaIEta,
25  int deltaIPhi,
26  float minCosThetai,
27  float maxCosPointing,
30  int skip_layers,
31  int maxNumberOfLayers,
32  float maxDeltaTime,
33  int lastLayerEE,
34  int lastLayerFH,
35  const std::vector<double> &siblings_maxRSquared);
36 
37  bool areTimeCompatible(int innerIdx,
38  int outerIdx,
39  const edm::ValueMap<std::pair<float, float>> &layerClustersTime,
40  float maxDeltaTime);
41 
42  bool areOverlappingOnSiblingLayers(int innerIdx,
43  int outerIdx,
44  const std::vector<reco::CaloCluster> &layerClusters,
45  float maxRSquared);
46 
47  std::vector<HGCDoublet> &getAllDoublets() { return allDoublets_; }
48  void findNtuplets(std::vector<HGCDoublet::HGCntuplet> &foundNtuplets,
49  std::vector<int> &seedIndices,
50  const unsigned int minClustersPerNtuplet,
51  const bool outInDFS,
52  const unsigned int maxOutInHops);
53  void clear() {
54  allDoublets_.clear();
55  theRootDoublets_.clear();
57  allDoublets_.shrink_to_fit();
58  theRootDoublets_.shrink_to_fit();
59  isOuterClusterOfDoublets_.shrink_to_fit();
60  }
62 
63 private:
64  std::vector<HGCDoublet> allDoublets_;
65  std::vector<unsigned int> theRootDoublets_;
66  std::vector<std::vector<int>> isOuterClusterOfDoublets_;
68 };
69 
70 #endif
std::vector< std::vector< int > > isOuterClusterOfDoublets_
Definition: HGCGraph.h:66
void makeAndConnectDoublets(const TILES &h, const std::vector< TICLSeedingRegion > &regions, int nEtaBins, int nPhiBins, const std::vector< reco::CaloCluster > &layerClusters, const std::vector< float > &mask, const edm::ValueMap< std::pair< float, float >> &layerClustersTime, int deltaIEta, int deltaIPhi, float minCosThetai, float maxCosPointing, float root_doublet_max_distance_from_seed_squared, float etaLimitIncreaseWindow, int skip_layers, int maxNumberOfLayers, float maxDeltaTime, int lastLayerEE, int lastLayerFH, const std::vector< double > &siblings_maxRSquared)
Definition: HGCGraph.cc:12
void setVerbosity(int level)
Definition: HGCGraph.h:61
std::vector< HGCDoublet > allDoublets_
Definition: HGCGraph.h:64
bool areOverlappingOnSiblingLayers(int innerIdx, int outerIdx, const std::vector< reco::CaloCluster > &layerClusters, float maxRSquared)
Definition: HGCGraph.cc:243
std::vector< HGCDoublet > & getAllDoublets()
Definition: HGCGraph.h:47
std::vector< unsigned int > theRootDoublets_
Definition: HGCGraph.h:65
void clear()
Definition: HGCGraph.h:53
bool areTimeCompatible(int innerIdx, int outerIdx, const edm::ValueMap< std::pair< float, float >> &layerClustersTime, float maxDeltaTime)
Definition: HGCGraph.cc:229
int verbosity_
Definition: HGCGraph.h:67
void findNtuplets(std::vector< HGCDoublet::HGCntuplet > &foundNtuplets, std::vector< int > &seedIndices, const unsigned int minClustersPerNtuplet, const bool outInDFS, const unsigned int maxOutInHops)
Definition: HGCGraph.cc:255
static constexpr int nPhiBins
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4