FairRoot/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 
6 
14 #ifndef PNDHYPSTRIPCLUSTERBUILDER_H
15 #define PNDHYPSTRIPCLUSTERBUILDER_H
16 
17 
18 #include <vector>
19 #include <map>
20 #include <string>
21 
22 #include "PndHypDigiStrip.h"
23 #include "PndHypCluster.h"
24 //#include "PndHypStripCluster.h"
25 
26 typedef std::map<Int_t,Int_t> Indexpair;
27 typedef std::map<std::string,std::map<SensorSide,Indexpair> > Fullmap;
28 
30  public:
33 
35 
36 void Reinit();
37 void AddDigi(std::string detname, SensorSide side, Int_t strip, Int_t iPoint);
38 
39 std::vector< PndHypCluster > SearchClusters();
40  std::vector< PndHypCluster > GetClusters(){return fClusters;}
41  PndHypCluster GetCluster(Int_t i);
44 // getter
45 std::vector< Int_t > GetTopClusterIDs() const {return fTopclusters;}
46 std::vector< Int_t > GetBotClusterIDs() const {return fBotclusters;}
47 
49 
50 
51 private:
52 
54  void AddCluster(const std::vector< Int_t >& onecluster,SensorSide side);
56  std::vector< Int_t > fTopclusters;// contains index to fClusterArray
57  std::vector< Int_t > fBotclusters;// contains index to fClusterArray
58  std::vector< PndHypCluster > fClusters;
59 
61 
63 };
64 
65 
66 
67 #endif // PndHypStripClusterBuilder
std::vector< PndHypCluster > SearchClusters()
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndHypCluster.h:18
ClassDef(PndHypStripClusterBuilder, 3)
-----------------------------------------------------------------------—///
Int_t i
Definition: run_full.C:25
void Reinit()
-----------------------------------------------------------------------—///
std::vector< PndHypCluster > GetClusters()
TString detname
Definition: anasim.C:61
std::map< Int_t, Int_t > Indexpair
std::vector< Int_t > GetBotClusterIDs() const
int strip
Definition: anaMvdDigi.C:135
std::vector< Int_t > GetTopClusterIDs() const
void AddDigi(std::string detname, SensorSide side, Int_t strip, Int_t iPoint)
SensorSide
std::map< std::string, std::map< SensorSide, Indexpair > > Fullmap
void AddCluster(const std::vector< Int_t > &onecluster, SensorSide side)
--------------------------------------------------------------------——///
std::vector< PndHypCluster > fClusters