2 #ifndef E_FIELDVECTOR_H
3 #define E_FIELDVECTOR_H 1
11 #include "UTIL/LCFixedObject.h"
13 #define EFieldVectorNINTVals 3
14 #define EFieldVectorNFLOATVals 3
15 #define EFieldVectorNDOUBLEVals 0
19 class EFieldVector :
public UTIL::LCFixedObject<EFieldVectorNINTVals,
20 EFieldVectorNFLOATVals,
21 EFieldVectorNDOUBLEVals> {
25 EFieldVector(
int xBin=0.,
int yBin=0.,
int zBin = 0.,
float Ex = 0. ,
float Ey = 0. ,
float Ez = 0. );
27 EFieldVector(EVENT::LCObject* obj): UTIL::LCFixedObject<EFieldVectorNINTVals,
28 EFieldVectorNFLOATVals,
29 EFieldVectorNDOUBLEVals>(obj) { }
33 : UTIL::LCFixedObject<EFieldVectorNINTVals,
34 EFieldVectorNFLOATVals,
35 EFieldVectorNDOUBLEVals>(original)
38 _obj =
new LCGenericObjectImpl(*(original._obj));
81 void print ( std::ostream& os = std::cout )
const;
86 return std::string(
"EFieldVector");
92 return std::string(
"i:xBin,i:yBin,i:zBin,f:Ex,f:Ey,f:Ez");
108 std::ostream &
operator<<(std::ostream &os,
const EFieldVector &efv);
111 #endif // TPC_VOXEL2_H
void print(std::ostream &os=std::cout) const
Print the vector information.
Definition: EFieldVector.cc:92
int getXBin() const
Returns the xBin of the vector.
Definition: EFieldVector.cc:18
static std::string getRevision()
returns the svn revision of the code
Definition: EFieldVector.cc:139
bool operator<(const EFieldVector &right) const
< operator for e.g. sorting in STL containers.
Definition: EFieldVector.cc:58
void setZBin(int zBin)
Set the zBin, only called from the constructor.
Definition: EFieldVector.cc:117
virtual const std::string getTypeName() const
Implementation of the getTypeName method of LCGenericObject.
Definition: EFieldVector.h:85
void setXBin(int xBin)
Set the xBin, only called from the constructor.
Definition: EFieldVector.cc:106
bool operator==(const EFieldVector &right) const
Two voxels are equal if their pad index and time index are equal.
Definition: EFieldVector.cc:51
int getYBin() const
Returns the yBin of the vector.
Definition: EFieldVector.cc:24
std::ostream & operator<<(std::ostream &os, const EFieldVector &efv)
Operator to stream the vector information to an outstream:
Definition: EFieldVector.cc:101
int getZBin() const
Returns the zBin of the vector.
Definition: EFieldVector.cc:30
virtual const std::string getDataDescription() const
Implementation of the getDataDescripton method of LCGenericObject PadIndex, zBinare all ints...
Definition: EFieldVector.h:91
void setEx(float Ex)
Set the EField in the voxel.
Definition: EFieldVector.cc:123
void setYBin(int xBin)
Set the yBin, only called from the constructor.
Definition: EFieldVector.cc:111
Definition: EFieldVector.h:19