PandaRoot
PndHypStripClusterBuilder.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndMvdStripClusterBuilder header file -----
15 // ----- Converted 27.11.2007 from R.Jaekel by R.Kliemt -----
16 // -------------------------------------------------------------------------
17 
25 #ifndef PNDHYPSTRIPCLUSTERBUILDER_H
26 #define PNDHYPSTRIPCLUSTERBUILDER_H
27 
28 #include <vector>
29 #include <map>
30 #include <string>
31 
32 #include "PndHypDigiStrip.h"
33 #include "PndHypCluster.h"
34 //#include "PndHypStripCluster.h"
35 
36 typedef std::map<Int_t, Int_t> Indexpair;
37 typedef std::map<std::string, std::map<SensorSide, Indexpair>> Fullmap;
38 
40  public:
43 
45 
46  void Reinit();
47  void AddDigi(std::string detname, SensorSide side, Int_t strip, Int_t iPoint);
48 
49  std::vector<PndHypCluster> SearchClusters();
50  std::vector<PndHypCluster> GetClusters() { return fClusters; }
51  PndHypCluster GetCluster(Int_t i);
54  // getter
55  std::vector<Int_t> GetTopClusterIDs() const { return fTopclusters; }
56  std::vector<Int_t> GetBotClusterIDs() const { return fBotclusters; }
57 
59 
60  private:
62  void AddCluster(const std::vector<Int_t> &onecluster, SensorSide side);
63  Fullmap fSortedDigis;
64  std::vector<Int_t> fTopclusters; // contains index to fClusterArray
65  std::vector<Int_t> fBotclusters; // contains index to fClusterArray
66  std::vector<PndHypCluster> fClusters;
67 
69 
70  ClassDef(PndHypStripClusterBuilder, 3);
71 };
72 
73 #endif // PndHypStripClusterBuilder
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndHypCluster.h:29
PndHypCluster GetBotCluster(Int_t i)
void Reinit()
-----------------------------------------------------------------------—///
PndHypCluster GetTopCluster(Int_t i)
std::map< std::string, std::map< SensorSide, Indexpair > > Fullmap
unsigned int i
Definition: P4_F32vec4.h:33
PndHypCluster GetCluster(Int_t i)
void AddDigi(std::string detname, SensorSide side, Int_t strip, Int_t iPoint)
SensorSide
std::map< Int_t, Int_t > Indexpair
std::vector< Int_t > GetTopClusterIDs() const
std::vector< PndHypCluster > SearchClusters()
virtual ~PndHypStripClusterBuilder()
std::vector< PndHypCluster > GetClusters()
std::vector< Int_t > GetBotClusterIDs() const