StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StEmcMath.h
1 //
3 // Author: Aleksei Pavlinov, WSU 08-mar-2001
4 //
5 // StEmcMath.h => Encapsulate math routines for special EMC case.
6 //
8 #ifndef STAR_StEmcMath
9 #define STAR_StEmcMath
10 
11 #ifndef ROOT_Rtypes
12 #include "Rtypes.h"
13 #endif
14 #include "StDetectorId.h" // see $STAR/include
15 
16 class StMeasuredPoint;
17 class TArrayD;
18 
19 class StEmcMath {
20 
21 private:
22 public:
23  static Bool_t etaPhi(StMeasuredPoint* point, StMeasuredPoint* vertex,
24  Double_t &eta, Double_t &phi);
25  static Double_t pseudoRapidity(StMeasuredPoint* point, StMeasuredPoint* vertex=0);
26  static Double_t eta(StMeasuredPoint* point, StMeasuredPoint* vertex=0)
27  {return pseudoRapidity(point,vertex);}
28  static Double_t phi(StMeasuredPoint* point, StMeasuredPoint* vertex=0);
29 
30  static UInt_t detectorId(const StDetectorId);
31  static StDetectorId detectorId(const UInt_t);
32 
33  static Double_t getPhiPlusMinusPi(const Double_t phi);
34  static TArrayD *binForSmde(Bool_t kprint=kFALSE);
35 
36  ClassDef(StEmcMath, 1) // Definition of patch
37 };
38 #endif
39 // $Id: StEmcMath.h,v 1.1 2003/01/23 01:30:49 suaide Exp $
40 // $Log: StEmcMath.h,v $
41 // Revision 1.1 2003/01/23 01:30:49 suaide
42 // moving to sub directories
43 //
44 // Revision 1.5 2001/04/17 23:44:22 pavlinov
45 // Clean up
46 //
47 // Revision 1.4 2001/04/16 22:02:08 pavlinov
48 // added function StEmcMath::getPhiPlusMinusPi
49 //
50 // Revision 1.3 2001/04/03 16:13:05 pavlinov
51 // Added function from STAR detector Id to internal EMC Id
52 //
53 // Revision 1.2 2001/03/15 20:56:16 pavlinov
54 // Jose's scheme is default
55 //