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