GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gw::Spin Class Reference

A spin is defined by two integers: a numerator and a denominator. More...

#include <Spin.h>

Inheritance diagram for Gw::Spin:

Public Types

enum  EData { kKnown = 0, kUnknown = 1, kTentative = 2, kTheo = 3, kAbout = 4 }
 flags that qualify a given data More...
 
enum  EQtype { kParity = 0, kSpin = 1, kK = 2, kSignature = 3, kSimplex = 4 }
 label type for any possible quantum number More...
 

Public Member Functions

 ClassDef (QNumber, 0)
 
 ClassDef (InfoData, 1)
 rootcint dictionary More...
 
 ClassDef (Spin, 1)
 rootcint dictionary More...
 
Float_t Get () const
 To get the spin as a float. More...
 
Int_t GetD () const
 To get the spin (denominator) More...
 
Int_t GetInTwoHalfUnit () const
 to get the spin in two half unit More...
 
Int_t GetN () const
 To get the spin (numerator) More...
 
const Char_t * GetString () const
 To get the spin as a string. More...
 
virtual bool IsData (UShort_t) const
 to get some information about this data More...
 
Bool_t IsHalfInt () const
 To get the spin as a float. More...
 
virtual Bool_t IsQNumber (QNumber::EQtype) const
 QNumber members. More...
 
Spinoperator++ ()
 
Spin operator++ (int)
 
Spinoperator+= (Int_t value)
 operator += More...
 
Spinoperator+= (Spin sp)
 operator += More...
 
Spin operator- () const
 
Spinoperator-- ()
 
Spin operator-- (int)
 
bool operator< (const Spin &s) const
 
bool operator<= (const Spin &s) const
 
bool operator== (const Spin &s) const
 comparison More...
 
bool operator> (const Spin &s) const
 
bool operator>= (const Spin &s) const
 
void Set (Int_t n, Int_t d=1)
 To set the spin. More...
 
virtual void Set (const char *s)
 to set some information about this data More...
 
virtual void SetInfo (InfoData::EData)
 to set some information about this data More...
 
 Spin ()
 
 Spin (Int_t, Int_t)
 
 Spin (const Spin &spin)
 
virtual ~Spin ()
 

Static Public Member Functions

static EData WhatIs (const char *)
 It deduces from a string the kind of data. More...
 

Protected Attributes

Int_t fD
 
UShort_t fInfo
 
Int_t fN
 

Detailed Description

A spin is defined by two integers: a numerator and a denominator.

Author
Olivier Stezowski

Definition at line 46 of file Spin.h.


The documentation for this class was generated from the following files: