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  public:
14  PndFtsMapCreator2(Int_t geoType);
17 
18  // general functions
19  void SetGeneralParameters();
20 
21  // general functions, to be specified depending on geo type
22  Int_t GetTubeIDFromPath(TString path);
23  PndFtsTube *GetTubeFromTubeID(Int_t tubeid);
24  TClonesArray *FillTubeArray();
25  Int_t GetChamberIDFromPath(TString path);
26  Int_t GetChamberIDFromName(TString name);
27  Int_t GetLayerID(Int_t chamberid, Int_t tubeid, TString path);
28  Int_t GetTubeIDTot(Int_t chamberid, Int_t layerid, Int_t tubeid, TString path);
29 
30  private:
31  // geometry type 1 specific functions
32  Int_t GetTubeIDFromPathGeoType1(TString path);
33  Int_t GetTubeIDFromNameGeoType1(TString name);
34  TString GetNameFromPathGeoType1(TString path);
35  TString GetNameFromTubeIDGeoType1(Int_t tubeid, Bool_t isCopy);
36  PndFtsTube *GetTubeFromTubeIDToFillGeoType1(Int_t tubeid);
37  PndFtsTube *GetTubeFromNameToFillGeoType1(TString tubename);
38  TClonesArray *FillTubeArrayGeoType1();
39 
40  Int_t fGeoType;
41  PndGeoFtsPar *fFtsParameters;
42  Double_t fTubeInRad, fTubeOutRad;
43 
44  // fGeoType1
45  std::map<int, int> copy_map;
46 
48  PndFtsMapCreator2 &operator=(const PndFtsMapCreator2 &) { return *this; }
49 
50  protected:
51  ClassDef(PndFtsMapCreator2, 1)
52 };
53 
54 #endif
PndFtsTube * GetTubeFromTubeID(Int_t tubeid)
Int_t GetLayerID(Int_t chamberid, Int_t tubeid, TString path)
Int_t GetChamberIDFromPath(TString path)
void SetGeneralParameters()
Int_t GetChamberIDFromName(TString name)
Int_t GetTubeIDFromPath(TString path)
Int_t GetTubeIDTot(Int_t chamberid, Int_t layerid, Int_t tubeid, TString path)
TClonesArray * FillTubeArray()