ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitCommon/DataFormats/interface/Vect3C.h
Revision: 1.5
Committed: Mon Jul 20 03:12:22 2009 UTC (15 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, ConvRejection-10-06-09, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_008
Changes since 1.4: +2 -2 lines
Log Message:
Changes for docu.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.5 // $Id: Vect3C.h,v 1.4 2009/03/20 18:52:08 bendavid Exp $
3 loizides 1.1 //
4     // Vect3C
5     //
6     // Implementation of our own ThreeVectorC32.
7     //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITCOMMON_DATAFORMATS_VECT3C_H
12     #define MITCOMMON_DATAFORMATS_VECT3C_H
13    
14     #include "MitCommon/DataFormats/interface/Types.h"
15    
16     namespace mithep
17     {
18     class Vect3C
19     {
20     public:
21     Vect3C() :
22     fRho(0), fEta(0), fPhi(0) {}
23     Vect3C(Double_t rho, Double_t eta, Double_t phi) :
24     fRho(rho), fEta(eta), fPhi(phi) {}
25     Vect3C(const ThreeVector pos) :
26     fRho(pos.Rho()), fEta(pos.Eta()), fPhi(pos.Phi()) {}
27     Vect3C(const ThreeVectorC pos) :
28     fRho(pos.Rho()), fEta(pos.Eta()), fPhi(pos.Phi()) {}
29    
30     Double_t Eta() const { return fEta; }
31     Double_t Phi() const { return fPhi; }
32     Double_t Rho() const { return fRho; }
33 loizides 1.3 ThreeVectorC V() const { return ThreeVectorC(fRho,fEta,fPhi); }
34 bendavid 1.4 void Set(Double_t rho, Double_t eta, Double_t phi);
35 loizides 1.1 void SetXYZ(Double_t x, Double_t y, Double_t z);
36    
37     protected:
38 loizides 1.2 Double32_t fRho; //[0,0,12]rho-component
39     Double32_t fEta; //[0,0,10]eta-component
40     Double32_t fPhi; //[0,0,10]phi-component
41 loizides 1.1
42 loizides 1.5 ClassDef(Vect3C, 1) // Implementation of our own ThreeVectorC32
43 loizides 1.1 };
44     }
45    
46     //--------------------------------------------------------------------------------------------------
47     inline void mithep::Vect3C::SetXYZ(Double_t x, Double_t y, Double_t z)
48     {
49     // Set four vector.
50    
51     ThreeVector tmp(x, y, z);
52     fRho=tmp.Rho();
53     fEta=tmp.Eta();
54     fPhi=tmp.Phi();
55     }
56 bendavid 1.4
57     //--------------------------------------------------------------------------------------------------
58     inline void mithep::Vect3C::Set(Double_t rho, Double_t eta, Double_t phi)
59     {
60     // Set four vector.
61    
62     fRho = rho;
63     fEta = eta;
64     fPhi = phi;
65     }
66 loizides 1.1 #endif