ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitCommon/DataFormats/interface/Vect3.h
Revision: 1.4
Committed: Mon Jul 20 03:12:21 2009 UTC (15 years, 9 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, V07-05-00, Mit_016, Mit_015b, Mit_015a, 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, HEAD
Branch point for: Mit_025c_branch
Changes since 1.3: +2 -2 lines
Log Message:
Changes for docu.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.4 // $Id: Vect3.h,v 1.3 2009/03/20 12:54:20 loizides Exp $
3 loizides 1.1 //
4     // Vect3C
5     //
6     // Implementation of our own ThreeVector32.
7     //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITCOMMON_DATAFORMATS_VECT3_H
12     #define MITCOMMON_DATAFORMATS_VECT3_H
13    
14     #include "MitCommon/DataFormats/interface/Types.h"
15    
16     namespace mithep
17     {
18     class Vect3
19     {
20     public:
21     Vect3() :
22     fX(0), fY(0), fZ(0) {}
23     Vect3(Double_t x, Double_t y, Double_t z) :
24     fX(x), fY(y), fZ(z) {}
25     Vect3(const ThreeVector pos) :
26     fX(pos.X()), fY(pos.Y()), fZ(pos.Z()) {}
27     Vect3(const ThreeVectorC pos) :
28     fX(pos.X()), fY(pos.Y()), fZ(pos.Z()) {}
29    
30     Double_t X() const { return fX; }
31     Double_t Y() const { return fY; }
32     Double_t Z() const { return fZ; }
33 loizides 1.3 ThreeVector V() const { return ThreeVector(fX,fY,fZ); }
34 loizides 1.1 void SetXYZ(Double_t x, Double_t y, Double_t z);
35    
36     protected:
37 loizides 1.2 Double32_t fX; //[0,0,14]x-component
38     Double32_t fY; //[0,0,14]y-component
39     Double32_t fZ; //[0,0,14]z-component
40 loizides 1.1
41 loizides 1.4 ClassDef(Vect3, 1) // Implementation of our own ThreeVector32
42 loizides 1.1 };
43     }
44    
45     //--------------------------------------------------------------------------------------------------
46     inline void mithep::Vect3::SetXYZ(Double_t x, Double_t y, Double_t z)
47     {
48     // Set three vector.
49    
50     fX=x;
51     fY=y;
52     fZ=z;
53     }
54     #endif