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
Tracker.h
Go to the documentation of this file.
1 /*
2  * Tracker.h
3  *
4  * Basic reconstruction interface for tracking detectors
5  *
6  * Created on: Dec 11, 2013
7  * Author: Christian Grefe, CERN
8  */
9 
10 #ifndef DDReconstruction_TRACKER_H_
11 #define DDReconstruction_TRACKER_H_
12 
15 #include "DD4hep/Detector.h"
16 
17 namespace DD4hep {
18 namespace DDRec {
19 
20 class Tracker: public LayeredSubdetector {
21 public:
23  Geometry::DetElement(det) {
25  }
26 
27  virtual ~Tracker() {
28  // does not own the extension!
29  }
30 
31 protected:
33 
34 private:
36  _tracker = this->isValid() ? this->extension<TrackerExtension>() : 0;
37  }
38 };
39 
40 } /* namespace DDRec */
41 } /* namespace DD4hep */
42 #endif /* DDReconstruction_TRACKER_H_ */
bool isValid() const
Check the validity of the object held by the handle.
Definition: Handle.h:124
void getTrackerExtension()
Definition: Tracker.h:35
Tracker(const Geometry::DetElement &det)
Definition: Tracker.h:22
TrackerExtension * _tracker
Definition: Tracker.h:32
virtual ~Tracker()
Definition: Tracker.h:27
Handle class describing a detector element.
Definition: Detector.h:172