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,
32  float maxDeltaTime);
33 
34  bool areTimeCompatible(int innerIdx,
35  int outerIdx,
36  const edm::ValueMap<std::pair<float, float>> &layerClustersTime,
37  float maxDeltaTime);
38 
39  std::vector<HGCDoublet> &getAllDoublets() { return allDoublets_; }
40  void findNtuplets(std::vector<HGCDoublet::HGCntuplet> &foundNtuplets,
41  std::vector<int> &seedIndices,
42  const unsigned int minClustersPerNtuplet,
43  const bool outInDFS,
44  const unsigned int maxOutInHops);
45  void clear() {
46  allDoublets_.clear();
47  theRootDoublets_.clear();
49  allDoublets_.shrink_to_fit();
50  theRootDoublets_.shrink_to_fit();
51  isOuterClusterOfDoublets_.shrink_to_fit();
52  }
55 
56 private:
57  std::vector<HGCDoublet> allDoublets_;
58  std::vector<unsigned int> theRootDoublets_;
59  std::vector<std::vector<int>> isOuterClusterOfDoublets_;
61 };
62 
63 #endif
personalPlayback.level
level
Definition: personalPlayback.py:22
Common.h
HGCGraphT::Basic
Definition: HGCGraph.h:54
HGCGraphT::verbosity_
int verbosity_
Definition: HGCGraph.h:60
HGCGraphT::setVerbosity
void setVerbosity(int level)
Definition: HGCGraph.h:53
HGCGraphT::theRootDoublets_
std::vector< unsigned int > theRootDoublets_
Definition: HGCGraph.h:58
HGCGraphT::clear
void clear()
Definition: HGCGraph.h:45
HGCGraphT::makeAndConnectDoublets
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)
Definition: HGCGraph.cc:11
HGCGraphT::Advanced
Definition: HGCGraph.h:54
TICLLayerTile.h
HGCGraphT::findNtuplets
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:225
HGCGraphT::VerbosityLevel
VerbosityLevel
Definition: HGCGraph.h:54
HGCGraphT::None
Definition: HGCGraph.h:54
HLTEgPhaseIITestSequence_cff.etaLimitIncreaseWindow
etaLimitIncreaseWindow
Definition: HLTEgPhaseIITestSequence_cff.py:2197
h
HLTEgPhaseIITestSequence_cff.layerClusters
layerClusters
Definition: HLTEgPhaseIITestSequence_cff.py:2506
HGCGraphT::areTimeCompatible
bool areTimeCompatible(int innerIdx, int outerIdx, const edm::ValueMap< std::pair< float, float >> &layerClustersTime, float maxDeltaTime)
Definition: HGCGraph.cc:210
HGCDoublet.h
HGCGraphT::getAllDoublets
std::vector< HGCDoublet > & getAllDoublets()
Definition: HGCGraph.h:39
HLTEgPhaseIITestSequence_cff.root_doublet_max_distance_from_seed_squared
root_doublet_max_distance_from_seed_squared
Definition: HLTEgPhaseIITestSequence_cff.py:2217
caConstants::maxNumberOfLayers
constexpr uint32_t maxNumberOfLayers
Definition: CAConstants.h:44
foundNtuplets
const uint32_t *__restrict__ HitContainer * foundNtuplets
Definition: CAHitNtupletGeneratorKernelsImpl.h:124
HGCGraphT::Expert
Definition: HGCGraph.h:54
HGCGraphT::isOuterClusterOfDoublets_
std::vector< std::vector< int > > isOuterClusterOfDoublets_
Definition: HGCGraph.h:59
HLTEgPhaseIITestSequence_cff.skip_layers
skip_layers
Definition: HLTEgPhaseIITestSequence_cff.py:2220
TICLSeedingRegion.h
HGCGraphT::allDoublets_
std::vector< HGCDoublet > allDoublets_
Definition: HGCGraph.h:57
L1TMuonDQMOffline_cfi.nEtaBins
nEtaBins
Definition: L1TMuonDQMOffline_cfi.py:21
edm::ValueMap
Definition: ValueMap.h:107
HGCGraphT
Definition: HGCGraph.h:15
AlignmentPI::regions
regions
Definition: AlignmentPayloadInspectorHelper.h:76
ecaldqm::binning::nPhiBins
Definition: MESetBinningUtils.h:70
HGCGraphT::Guru
Definition: HGCGraph.h:54