Fork me on GitHub

Ignore:
Timestamp:
Nov 2, 2011, 5:39:26 PM (13 years ago)
Author:
cp3-support
Message:

upgrade HepMC to version 2.06.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/HepMC/interface/Polarization.h

    r349 r572  
    3434    public:
    3535        /// 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 );
    3739        /// construct from another polarization object
    3840        Polarization( const Polarization& inpolar );
     
    5961        double        phi() const;      //!< returns azimuthal angle in radians
    6062        ThreeVector   normal3d() const; //!< unit 3 vector for easy manipulation
     63        bool          is_defined() const;   //!< returns true if the Polarization has been defined
    6164
    6265        /// set polar angle in radians
     
    6871        /// sets polarization according to direction of 3 vec
    6972        ThreeVector   set_normal3d( const ThreeVector& vec3in );
     73        /// declares the Polarization as undefined and zeros the values
     74        void          set_undefined();
    7075
    7176    private:
     
    7883        double m_theta; //polar angle of polarization in radians 0< theta <pi
    7984        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
    8086    };
    8187
     
    9399    inline bool Polarization::operator==( const Polarization& a ) const
    94100    {
    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() );
    96102    }
    97103
Note: See TracChangeset for help on using the changeset viewer.