PandaRoot
PndHypStripClusterBuilder.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndMvdStripClusterBuilder header file -----
3 // ----- Converted 27.11.2007 from R.Jaekel by R.Kliemt -----
4 // -------------------------------------------------------------------------
5 
13 #ifndef PNDHYPSTRIPCLUSTERBUILDER_H
14 #define PNDHYPSTRIPCLUSTERBUILDER_H
15 
16 #include <vector>
17 #include <map>
18 #include <string>
19 
20 #include "PndHypDigiStrip.h"
21 #include "PndHypCluster.h"
22 //#include "PndHypStripCluster.h"
23 
24 typedef std::map<Int_t, Int_t> Indexpair;
25 typedef std::map<std::string, std::map<SensorSide, Indexpair>> Fullmap;
26 
28  public:
31 
33 
34  void Reinit();
35  void AddDigi(std::string detname, SensorSide side, Int_t strip, Int_t iPoint);
36 
37  std::vector<PndHypCluster> SearchClusters();
38  std::vector<PndHypCluster> GetClusters() { return fClusters; }
39  PndHypCluster GetCluster(Int_t i);
42  // getter
43  std::vector<Int_t> GetTopClusterIDs() const { return fTopclusters; }
44  std::vector<Int_t> GetBotClusterIDs() const { return fBotclusters; }
45 
47 
48  private:
50  void AddCluster(const std::vector<Int_t> &onecluster, SensorSide side);
51  Fullmap fSortedDigis;
52  std::vector<Int_t> fTopclusters; // contains index to fClusterArray
53  std::vector<Int_t> fBotclusters; // contains index to fClusterArray
54  std::vector<PndHypCluster> fClusters;
55 
57 
58  ClassDef(PndHypStripClusterBuilder, 3);
59 };
60 
61 #endif // PndHypStripClusterBuilder
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndHypCluster.h:17
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:21
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