FairRoot/PandaRoot
PndFtsMapCreator2.h
Go to the documentation of this file.
1 #ifndef PNDFTSMAPCREATOR2_H
2 #define PNDFTSMAPCREATOR2_H
3 
4 #include <iostream>
5 #include <map>
6 #include "TObject.h"
7 
8 class PndFtsTube;
9 class PndGeoFtsPar;
10 
11 class PndFtsMapCreator2 : public TObject
12 {
13  public:
14 
16  PndFtsMapCreator2(Int_t geoType);
19 
20  // general functions
21  void SetGeneralParameters();
22 
23 
24  // general functions, to be specified depending on geo type
25  Int_t GetTubeIDFromPath(TString path);
26  PndFtsTube * GetTubeFromTubeID(Int_t tubeid);
27  TClonesArray * FillTubeArray();
28  Int_t GetChamberIDFromPath(TString path);
30  Int_t GetLayerID(Int_t chamberid, Int_t tubeid, TString path);
31  Int_t GetTubeIDTot(Int_t chamberid,Int_t layerid, Int_t tubeid, TString path);
32  private:
33 
34  // geometry type 1 specific functions
38  TString GetNameFromTubeIDGeoType1(Int_t tubeid, Bool_t isCopy);
41  TClonesArray* FillTubeArrayGeoType1();
42 
43  Int_t fGeoType;
46 
47  // fGeoType1
48  std::map<int, int> copy_map;
49 
52 
53  protected:
54 
55  ClassDef(PndFtsMapCreator2,1)
56 
57 };
58 
59 #endif
TString GetNameFromPathGeoType1(TString path)
Int_t GetLayerID(Int_t chamberid, Int_t tubeid, TString path)
std::map< int, int > copy_map
TString GetNameFromTubeIDGeoType1(Int_t tubeid, Bool_t isCopy)
Double_t par[3]
PndGeoFtsPar * fFtsParameters
Int_t GetChamberIDFromPath(TString path)
PndFtsTube * GetTubeFromNameToFillGeoType1(TString tubename)
Int_t GetChamberIDFromName(TString name)
PndFtsMapCreator2 & operator=(const PndFtsMapCreator2 &)
Double_t
PndFtsTube * GetTubeFromTubeIDToFillGeoType1(Int_t tubeid)
Int_t GetTubeIDFromPathGeoType1(TString path)
Int_t GetTubeIDFromPath(TString path)
TString name
Int_t GetTubeIDTot(Int_t chamberid, Int_t layerid, Int_t tubeid, TString path)
PndFtsTube * GetTubeFromTubeID(Int_t tubeid)
TClonesArray * FillTubeArray()
this function will be used in PndFtsHitProducesRealFast
TClonesArray * FillTubeArrayGeoType1()
Int_t GetTubeIDFromNameGeoType1(TString name)