1 #ifndef ALIHLTTRIGGERDETECTORGEOM_H
2 #define ALIHLTTRIGGERDETECTORGEOM_H
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 *
8 /// @file AliHLTTriggerDetectorGeom.h
9 /// @author Oystein Djuvsland
11 /// @brief HLT class describing simple geometry of (sub-)detectors.
12 /// Used for the AliHLTTriggerBarrelGeomMultiplicity classes
23 * @class AliHLTTriggerDetectorGeom
24 * HLT class describing simple geometry cuts of (sub-)detectors.
25 * Used for the AliHLTTriggerBarrelGeomMultiplicity class
27 * \ingroup alihlt_trigger
30 class AliHLTTriggerDetectorGeom : public TObject
34 /** Default constructor */
35 AliHLTTriggerDetectorGeom(); // Default constructor
38 virtual ~AliHLTTriggerDetectorGeom(); // Destructor
41 * Set the minimum in eta
42 * @param etaMin is the minumum
44 void SetEtaMin(Double_t etaMin) { fEtaMin = etaMin; } // Set min in eta
47 * Set the maximum in eta
48 * @param etaMax is the maxumum
50 void SetEtaMax(Double_t etaMax) { fEtaMax = etaMax; } // Set max in eta
53 * Set the minimum in phi
54 * @param phiMin is the minumum
56 void SetPhiMin(Double_t phiMin) { fPhiMin = phiMin; } // Set min in phi
59 * Set the maximum in phi
60 * @param phiMax is the maxumum
62 void SetPhiMax(Double_t phiMax) { fPhiMax = phiMax; } // Set max in phi
65 * Set the initial point describing the plane
66 * @param point is the point
68 void SetInitialPoint(Double_t *point); // Set initial point
71 * Set the vector describing the plane
72 * @param nVector is a the vector
74 void SetNormVector(Double_t *nVector); // Set normal vector
77 * Set the name of the (sub-)detector
78 * @param name is the name
80 void SetDetName(TString &name) { fName = name; } // Set name
83 * Get the minimum in eta (should be moved...)
85 Double_t EtaMin() { return fEtaMin; }
88 * Get the maximum in eta (should be moved...)
90 Double_t EtaMax() { return fEtaMax; }
93 * Get the minimum in phi (should be moved...)
95 Double_t PhiMin() { return fPhiMin; }
98 * Get the maximum in phi (should be moved...)
100 Double_t PhiMax() { return fPhiMax; }
103 * Get the initial point
105 void GetInitialPoint(Double_t *point);
108 * Get the normal vector
110 void GetNormVector(Double_t *vec);
113 * Get the detector name
115 TString& DetName() { return fName; }
120 void PrintDetectorGeom(std::ostream &out);
123 * Abstract method to check if a point is in the
124 * acceptance of the geometry
126 virtual Bool_t IsInDetector(Double_t point[3]) = 0;
130 /** The minimum in eta */
131 Double_t fEtaMin; // The minimum in eta
133 /** The maximum in eta */
134 Double_t fEtaMax; // The maximum in eta
136 /** The minimum in phi */
137 Double_t fPhiMin; // The minimum in phi
139 /** The maximum in phi */
140 Double_t fPhiMax; // The maximum in phi
142 /** Name of the (sub-)detector */
143 TString fName; // Name of the (sub-)detector
148 * The point which together with a normal vector
149 * defines the plane of the (sub-)detector
151 Double_t fInitalPoint[3]; // Point representing the plane
154 * The normal vector which together with a point
155 * defines the plane of the (sub-)detector
157 Double_t fNormVector[3]; // Normal vector representing the plane
159 ClassDef(AliHLTTriggerDetectorGeom, 1);