DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SubdetectorExtension.h
Go to the documentation of this file.
1 /*
2  * LayeringExtension.h
3  *
4  * Abstract extension used by the LayeredSubdetector class.
5  *
6  * Created on: Dec 11, 2013
7  * Author: Christian Grefe, CERN
8  */
9 
10 #ifndef DDRec_SUBDETECTOREXTENSION_H_
11 #define DDRec_SUBDETECTOREXTENSION_H_
12 
13 #include "DD4hep/Detector.h"
14 
15 namespace DD4hep {
16 namespace DDRec {
17 
22 public:
25  }
26 
28  virtual bool isBarrel() const = 0;
29 
31  virtual bool isEndcap() const = 0;
32 
34  virtual double getRMin() const = 0;
35 
37  virtual double getRMax() const = 0;
38 
40  virtual double getZMin() const = 0;
41 
43  virtual double getZMax() const = 0;
44 
46  /* Describes the number of corners for a polygon.
47  * Returns 0 in case of a circular shape
48  */
49  virtual int getNSides() const = 0;
50 
51 protected:
53  }
54 };
55 
56 } /* namespace DDRec */
57 } /* namespace DD4hep */
58 #endif /* DDRec_SUBDETECTOREXTENSION_H_ */
virtual bool isEndcap() const =0
Is this an endcap detector.
virtual double getZMin() const =0
Access to the lower z extent.
virtual double getZMax() const =0
Access to the upper z extent.
virtual bool isBarrel() const =0
Is this a barrel detector.
virtual int getNSides() const =0
Access to the number of sides.
virtual double getRMin() const =0
Access to the inner radius.
virtual double getRMax() const =0
Access to the outer radius.