1 #ifndef DataFormats_HGCalReco_TICLGraph_h 2 #define DataFormats_HGCalReco_TICLGraph_h 6 #include <unordered_set> 47 TICLGraph(std::vector<ticl::Node>&
n, std::vector<int> isRootNode) {
58 void dfsForCC(
unsigned int nodeIndex,
59 std::unordered_set<unsigned int>&
visited,
60 std::vector<unsigned int>& component)
const;
const ticl::Node & getNode(int i) const
Node(unsigned index, bool isTrackster=true)
const std::vector< unsigned int > & getInnerNeighbours() const
std::vector< std::vector< unsigned int > > getConnectedComponents() const
std::vector< int > isRootNode_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< ticl::Node > nodes_
const std::vector< ticl::Node > & getNodes() const
const unsigned int getId() const
void addInnerNeighbour(unsigned int trackster_id)
const std::vector< unsigned int > & getOuterNeighbours() const
void dfsForCC(unsigned int nodeIndex, std::unordered_set< unsigned int > &visited, std::vector< unsigned int > &component) const
std::vector< unsigned int > outerNeighboursId_
std::vector< std::vector< unsigned int > > findSubComponents()
std::vector< unsigned int > innerNeighboursId_
void findSubComponents(std::vector< Node > &graph, std::vector< unsigned int > &subComponent, std::string tabs)
void addOuterNeighbour(unsigned int trackster_id)
bool isInnerNeighbour(const unsigned int tid)
TICLGraph(std::vector< ticl::Node > &n, std::vector< int > isRootNode)