CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/SimRomanPot/SimFP420/interface/EnergySegmentFP420.h

Go to the documentation of this file.
00001 #ifndef EnergySegmentFP420_h
00002 #define EnergySegmentFP420_h
00003 
00004 
00005 #include<vector>
00006 
00007 #include "G4StepPoint.hh"
00008 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
00009 
00010 // define a quantum of energy and position.
00011 class EnergySegmentFP420{
00012  public:
00013   EnergySegmentFP420(): _energy(0),_position(0,0,0){}
00014 
00015     EnergySegmentFP420(float energy,float x, float y, float z):
00016       _energy(energy),_position(x,y,z){}
00017 
00018       //      EnergySegmentFP420(float energy, G4ThreeVector position):
00019       //        _energy(energy),_position(position){}
00020 
00021       EnergySegmentFP420(float energy, Local3DPoint position):
00022         _energy(energy),_position(position){}
00023 
00024         float x() const{return _position.x();}
00025         float y() const{return _position.y();}
00026         float z() const{return _position.z();}
00027         float energy() const { return _energy;}
00028  private:
00029         float _energy;
00030         //      G4ThreeVector  _position;
00031         Local3DPoint  _position;
00032 };
00033 
00034 
00035 #endif