G4ErrorSurfaceTrajParam.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id: G4ErrorSurfaceTrajParam.hh 69766 2013-05-14 14:33:55Z gcosmo $
00028 //
00029 //
00030 // Class Description:
00031 //
00032 // Holds the 5 independent variables of the trajectory for a
00033 // G4ErrorSurfaceTrajState object. It is not used for anything but for
00034 // printing, but anyhow it is updated everytime the position and momentum
00035 // are updated 
00036 
00037 // History:
00038 // - Created:  P. Arce
00039 // --------------------------------------------------------------------
00040 
00041 #ifndef G4ErrorSurfaceTrajParam_hh
00042 #define G4ErrorSurfaceTrajParam_hh
00043 
00044 #include "G4Point3D.hh"
00045 #include "G4Vector3D.hh"
00046 #include "G4Plane3D.hh"
00047 #include "G4ThreeVector.hh"
00048 
00049 #include "globals.hh"
00050 #include "G4Track.hh"
00051 
00052 class G4ErrorSurfaceTrajParam
00053 {
00054  public:  // with description
00055 
00056   G4ErrorSurfaceTrajParam()
00057    : fInvP(0.), fPV(0.), fPW(0.), fV(0.), fW(0.) {}
00058   G4ErrorSurfaceTrajParam( const G4Point3D& pos, const G4Vector3D& mom,
00059                            const G4Vector3D& vecV, const G4Vector3D& vecW );
00060   G4ErrorSurfaceTrajParam( const G4Point3D& pos, const G4Vector3D& mom,
00061                            const G4Plane3D& plane );
00062   virtual ~G4ErrorSurfaceTrajParam(){}
00063 
00064   friend
00065     std::ostream& operator<<(std::ostream&, const G4ErrorSurfaceTrajParam& ts);
00066   
00067   // Get and Set methods 
00068 
00069   void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
00070                       const G4Vector3D& vecV, const G4Vector3D& vecW );
00071   void SetParameters( const G4Point3D& pos, const G4Vector3D& mom,
00072                       const G4Plane3D& plane );
00073 
00074   G4Vector3D GetDirection() const { return fDir; }
00075   G4Vector3D GetPlaneNormal() const { return fVectorV.cross(fVectorW); }
00076   G4Vector3D GetVectorV() const { return fVectorV; }
00077   G4Vector3D GetVectorW() const { return fVectorW; }
00078   G4double GetPV() const{ return fPV; }
00079   G4double GetPW() const{ return fPW; }
00080   G4double GetV() const{ return fV; }
00081   G4double GetW() const{ return fW; }
00082   G4double GetInvP() const{ return fInvP; }
00083 
00084  private:
00085 
00086   G4ThreeVector fDir;
00087   G4Vector3D fVectorV; //one of the vectors defining the plane
00088   G4Vector3D fVectorW; //one of the vectors defining the plane
00089   G4double fInvP; // inverse of momentum
00090   G4double fPV; // projection of momentum in one direction
00091   G4double fPW; // projection of momentum in one direction
00092   G4double fV; // projection of position in one direction
00093   G4double fW; // projection of position in one direction
00094 
00095 };
00096 
00097 #endif

Generated on Mon May 27 17:48:12 2013 for Geant4 by  doxygen 1.4.7