Changeset 572 in svn for trunk/Utilities/HepMC/interface/Polarization.h
- Timestamp:
- Nov 2, 2011, 5:39:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/HepMC/interface/Polarization.h
r349 r572 34 34 public: 35 35 /// default constructor 36 Polarization( double theta = 0, double phi = 0 ); 36 Polarization( ); 37 /// constructor requiring at least one value 38 Polarization( double theta, double phi = 0 ); 37 39 /// construct from another polarization object 38 40 Polarization( const Polarization& inpolar ); … … 59 61 double phi() const; //!< returns azimuthal angle in radians 60 62 ThreeVector normal3d() const; //!< unit 3 vector for easy manipulation 63 bool is_defined() const; //!< returns true if the Polarization has been defined 61 64 62 65 /// set polar angle in radians … … 68 71 /// sets polarization according to direction of 3 vec 69 72 ThreeVector set_normal3d( const ThreeVector& vec3in ); 73 /// declares the Polarization as undefined and zeros the values 74 void set_undefined(); 70 75 71 76 private: … … 78 83 double m_theta; //polar angle of polarization in radians 0< theta <pi 79 84 double m_phi; //azimuthal angle of polarization in rad. 0< phi <2pi 85 bool m_defined; //used to flag if the Polarization has been defined 80 86 }; 81 87 … … 93 99 inline bool Polarization::operator==( const Polarization& a ) const 94 100 { 95 return ( a.theta() == this->theta() && a.phi() == this->phi() );101 return ( a.theta() == this->theta() && a.phi() == this->phi() && a.is_defined() == this->is_defined() ); 96 102 } 97 103
Note:
See TracChangeset
for help on using the changeset viewer.