StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiDetectorVolume.h
1 #ifndef STAR_StiGeomMake
2 #define STAR_StiGeomMake
3 // $Id: StiDetectorVolume.h,v 2.6 2018/01/16 22:46:15 smirnovd Exp $
4 // Author: Valeri Fine, Dec 2006
5 
6 #include "TVolume.h"
7 #include "StMessMgr.h"
8 
9 class TVolumePosition;
10 class TShape;
11 class TRotMatrix;
12 
13 class StiPlacement;
14 class StiPlanarShape;
16 class StiDetectorBuilder;
17 class StiShape;
18 class StiDetector;
19 class StiToolkit;
20 
21 class StiDetectorVolume : public TVolume {
22  // class TVolume decorator for StiDetector's
23  private:
24  StiDetector *fDetector;
25  // TRotMatrix fRotMatrix; //!
26 
27  StiDetectorVolume(TNode& node);
28  StiDetectorVolume(const TVolume&);
29  protected:
30  // TRotMatrix *GetMatrix(float angle);
31 
32  StiDetectorVolume(StiDetector *detector);
33  StiDetectorVolume(StiDetector *detector,const Text_t* name, const Text_t* title, const Text_t* shapename, Option_t* option = "");
34  StiDetectorVolume(StiDetector *detector,const Text_t* name, const Text_t* title, TShape* shape, Option_t* option = "");
35  void MakeDetector(StiToolkit &tool, const TString &detectorName="", unsigned int select=kAll);
36  static TShape *MakeShape(const StiShape *shape,const char*material);
37  static TShape *MakeShape(const StiPlanarShape &shape,const char*material);
38  static TShape *MakeShape(const StiCylindricalShape &shape,const char*material);
39  void MakeVolume(const StiDetectorBuilder &builder, unsigned int select=kAll);
40  public:
41  enum { kAll, kActive, kPassivie };
42 
44  StiDetectorVolume(StiToolkit &tool, const TString &detectorName="", unsigned int select=kAll);
45  StiDetectorVolume(const StiDetectorBuilder &builder, unsigned int select=kAll);
46 
47  void SaveGeometry(const std::string fileName="sti2rootgeo.root") const;
48 
49  virtual ~StiDetectorVolume(){;}
50  virtual void Browse(TBrowser *b);
51  virtual char *GetObjectInfo(Int_t px, Int_t py) const;
52 
53  ClassDef(StiDetectorVolume,0); // TVolume Sti decorator
54 };
55 #endif
virtual char * GetObjectInfo(Int_t px, Int_t py) const
to be documented
virtual void Browse(TBrowser *b)
to be documented
Definition of toolkit.
Definition: StiToolkit.h:55
void SaveGeometry(const std::string fileName="sti2rootgeo.root") const