]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/trigger/AliHLTTriggerDetectorGeom.h
- Adding the new track multiplicity trigger cutting on geometrical acceptance
[u/mrichter/AliRoot.git] / HLT / trigger / AliHLTTriggerDetectorGeom.h
1 #ifndef ALIHLTTRIGGERDETECTORGEOM_H
2 #define ALIHLTTRIGGERDETECTORGEOM_H
3
4 //* This file is property of and copyright by the ALICE HLT Project        * 
5 //* ALICE Experiment at CERN, All rights reserved.                         *
6 //* See cxx source for full Copyright notice                               *
7
8 /// @file   AliHLTTriggerDetectorGeom.h
9 /// @author Oystein Djuvsland
10 /// @date   2009-10-08
11 /// @brief  HLT class describing simple geometry of (sub-)detectors.
12 ///         Used for the AliHLTTriggerBarrelGeomMultiplicity classes
13
14
15 #include "TString.h"
16 #include <ostream>
17 #include "TObject.h"
18
19 /**
20  * @class  AliHLTTriggerDetectorGeom
21  * HLT class describing simple geometry cuts of (sub-)detectors.
22  * Used for the AliHLTTriggerBarrelGeomMultiplicity class
23  *
24  * \ingroup alihlt_trigger
25  */
26
27 class AliHLTTriggerDetectorGeom : public TObject
28 {
29 public: 
30   
31   /** Default constructor */
32   AliHLTTriggerDetectorGeom();   // Default constructor
33
34   /** Destructor */
35   virtual ~AliHLTTriggerDetectorGeom(); // Destructor
36
37   /**
38    * Set the minimum in eta
39    * @param etaMin is the minumum
40    */
41   void SetEtaMin(Double_t etaMin) { fEtaMin = etaMin; } // Set min in eta
42
43   /**
44    * Set the maximum in eta
45    * @param etaMax is the maxumum
46    */
47   void SetEtaMax(Double_t etaMax) { fEtaMax = etaMax; } // Set max in eta
48
49   /**
50    * Set the minimum in phi
51    * @param phiMin is the minumum
52    */
53   void SetPhiMin(Double_t phiMin) { fPhiMin = phiMin; } // Set min in phi
54
55   /**
56    * Set the maximum in phi
57    * @param phiMax is the maxumum
58    */
59   void SetPhiMax(Double_t phiMax) { fPhiMax = phiMax; } // Set max in phi
60
61   /** 
62    * Set the initial point describing the plane
63    * @param point is the point
64    */
65   void SetInitialPoint(Double_t *point); // Set initial point
66
67   /** 
68    * Set the vector describing the plane
69    * @param nVector is a the vector
70    */
71   void SetNormVector(Double_t *nVector); // Set normal vector
72
73   /**
74    * Set the name of the (sub-)detector
75    * @param name is the name
76    */
77   void SetDetName(TString &name) { fName = name; } // Set name
78
79   /** 
80    * Get the minimum in eta (should be moved...)
81    */
82   Double_t EtaMin() { return fEtaMin; }
83
84   /** 
85    * Get the maximum in eta (should be moved...)
86    */
87   Double_t EtaMax() { return fEtaMax; }
88
89   /** 
90    * Get the minimum in phi (should be moved...)
91    */
92   Double_t PhiMin() { return fPhiMin; }
93
94   /** 
95    * Get the maximum in phi (should be moved...)
96    */
97   Double_t PhiMax() { return fPhiMax; }
98
99   /** 
100    * Get the initial point
101    */
102   void GetInitialPoint(Double_t *point);
103
104   /**
105    * Get the normal vector
106    */
107   void GetNormVector(Double_t *vec);
108   
109   /** 
110    * Get the detector name
111    */
112   TString DetName() { return fName; }
113
114   /** 
115    * Print the geometry
116    */
117   void PrintDetectorGeom(std::ostream &out);
118
119   /** 
120    * Abstract method to check if a point is in the 
121    * acceptance of the geometry 
122    */
123   virtual Bool_t IsInDetector(Double_t point[3]) = 0;
124
125 protected:
126
127   /** The minimum in eta */
128   Double_t fEtaMin;   // The minimum in eta 
129
130   /** The maximum in eta */
131   Double_t fEtaMax;   // The maximum in eta 
132
133   /** The minimum in phi */
134   Double_t fPhiMin;   // The minimum in phi 
135
136   /** The maximum in phi */
137   Double_t fPhiMax;   // The maximum in phi 
138
139   /** Name of the (sub-)detector */
140   TString fName;      // Name of the (sub-)detector 
141   
142 private: 
143
144   /** 
145    * The point which together with a normal vector 
146    * defines the plane of the (sub-)detector
147    */
148   Double_t fInitalPoint[3]; // Point representing the plane
149
150   /** 
151    * The normal vector which together with a point
152    * defines the plane of the (sub-)detector
153    */
154   Double_t fNormVector[3]; // Normal vector representing the plane
155
156   ClassDef(AliHLTTriggerDetectorGeom, 1);
157
158 };
159
160 #endif