evtgen is hosted by Hepforge, IPPP Durham
EvtGen  2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.

#include <EvtGenBase/EvtSpinAmp.hh>

Public Member Functions

 EvtSpinAmp ()
 
 EvtSpinAmp (const vector< EvtSpinType::spintype > &)
 
 EvtSpinAmp (const vector< EvtSpinType::spintype > &, const EvtComplex &)
 
 EvtSpinAmp (const vector< EvtSpinType::spintype > &, const vector< EvtComplex > &)
 
 EvtSpinAmp (const EvtSpinAmp &)
 
 ~EvtSpinAmp ()
 
EvtComplexoperator() (const vector< int > &)
 
const EvtComplexoperator() (const vector< int > &) const
 
EvtComplexoperator() (int,...)
 
const EvtComplexoperator() (int,...) const
 
EvtSpinAmpoperator= (const EvtSpinAmp &)
 
EvtSpinAmp operator+ (const EvtSpinAmp &) const
 
EvtSpinAmpoperator+= (const EvtSpinAmp &)
 
EvtSpinAmp operator- (const EvtSpinAmp &) const
 
EvtSpinAmpoperator-= (const EvtSpinAmp &)
 
EvtSpinAmp operator * (const EvtSpinAmp &) const
 
EvtSpinAmpoperator *= (const EvtSpinAmp &)
 
EvtSpinAmpoperator *= (const EvtComplex &)
 
EvtSpinAmpoperator/= (const EvtComplex &)
 
void intcont (size_t, size_t)
 
void extcont (const EvtSpinAmp &, int, int)
 
void assign (const EvtComplex &val)
 
size_t rank () const
 
const vector< unsigned int > & dims () const
 
void addspin (int twospin)
 
void setelem (const vector< EvtComplex > &elem)
 
bool iterate (vector< int > &index) const
 
vector< int > iterinit () const
 
bool allowed (const vector< int > &index) const
 
bool iterateallowed (vector< int > &index) const
 
vector< int > iterallowedinit () const
 

Private Member Functions

void checkindexargs (const vector< int > &index) const
 
void checktwospin (const vector< unsigned int > &twospin) const
 
int findtrueindex (const vector< int > &index) const
 
vector< unsigned int > calctwospin (const vector< EvtSpinType::spintype > &type) const
 

Private Attributes

vector< EvtSpinType::spintype_type
 
vector< unsigned int > _twospin
 
vector< EvtComplex_elem
 

Friends

EvtSpinAmp operator * (const EvtComplex &, const EvtSpinAmp &)
 
EvtSpinAmp operator * (const EvtSpinAmp &, const EvtComplex &)
 
EvtSpinAmp operator/ (const EvtSpinAmp &, const EvtComplex &)
 
std::ostream & operator<< (std::ostream &, const EvtSpinAmp &)
 

Detailed Description

Definition at line 37 of file EvtSpinAmp.hh.

Constructor & Destructor Documentation

◆ EvtSpinAmp() [1/5]

EvtSpinAmp::EvtSpinAmp ( )
inline

Definition at line 44 of file EvtSpinAmp.hh.

◆ EvtSpinAmp() [2/5]

EvtSpinAmp::EvtSpinAmp ( const vector< EvtSpinType::spintype > &  type)

Definition at line 85 of file EvtSpinAmp.cpp.

◆ EvtSpinAmp() [3/5]

EvtSpinAmp::EvtSpinAmp ( const vector< EvtSpinType::spintype > &  type,
const EvtComplex val 
)

Definition at line 97 of file EvtSpinAmp.cpp.

◆ EvtSpinAmp() [4/5]

EvtSpinAmp::EvtSpinAmp ( const vector< EvtSpinType::spintype > &  type,
const vector< EvtComplex > &  elem 
)

Definition at line 110 of file EvtSpinAmp.cpp.

◆ EvtSpinAmp() [5/5]

EvtSpinAmp::EvtSpinAmp ( const EvtSpinAmp copy)

Definition at line 131 of file EvtSpinAmp.cpp.

◆ ~EvtSpinAmp()

EvtSpinAmp::~EvtSpinAmp ( )
inline

Definition at line 50 of file EvtSpinAmp.hh.

Member Function Documentation

◆ addspin()

void EvtSpinAmp::addspin ( int  twospin)
inline

Definition at line 88 of file EvtSpinAmp.hh.

◆ allowed()

bool EvtSpinAmp::allowed ( const vector< int > &  index) const

Definition at line 416 of file EvtSpinAmp.cpp.

◆ assign()

void EvtSpinAmp::assign ( const EvtComplex val)
inline

Definition at line 78 of file EvtSpinAmp.hh.

◆ calctwospin()

vector< unsigned int > EvtSpinAmp::calctwospin ( const vector< EvtSpinType::spintype > &  type) const
private

Definition at line 73 of file EvtSpinAmp.cpp.

◆ checkindexargs()

void EvtSpinAmp::checkindexargs ( const vector< int > &  index) const
private

Definition at line 149 of file EvtSpinAmp.cpp.

◆ checktwospin()

void EvtSpinAmp::checktwospin ( const vector< unsigned int > &  twospin) const
private

Definition at line 138 of file EvtSpinAmp.cpp.

◆ dims()

const vector<unsigned int>& EvtSpinAmp::dims ( ) const
inline

Definition at line 84 of file EvtSpinAmp.hh.

◆ extcont()

void EvtSpinAmp::extcont ( const EvtSpinAmp cont,
int  a,
int  b 
)

Definition at line 522 of file EvtSpinAmp.cpp.

◆ findtrueindex()

int EvtSpinAmp::findtrueindex ( const vector< int > &  index) const
private

Definition at line 182 of file EvtSpinAmp.cpp.

◆ intcont()

void EvtSpinAmp::intcont ( size_t  a,
size_t  b 
)

Definition at line 462 of file EvtSpinAmp.cpp.

◆ iterallowedinit()

vector< int > EvtSpinAmp::iterallowedinit ( ) const

Definition at line 452 of file EvtSpinAmp.cpp.

◆ iterate()

bool EvtSpinAmp::iterate ( vector< int > &  index) const

Definition at line 399 of file EvtSpinAmp.cpp.

◆ iterateallowed()

bool EvtSpinAmp::iterateallowed ( vector< int > &  index) const

Definition at line 442 of file EvtSpinAmp.cpp.

◆ iterinit()

vector< int > EvtSpinAmp::iterinit ( ) const

Definition at line 389 of file EvtSpinAmp.cpp.

◆ operator *()

EvtSpinAmp EvtSpinAmp::operator * ( const EvtSpinAmp amp2) const

Definition at line 329 of file EvtSpinAmp.cpp.

◆ operator *=() [1/2]

EvtSpinAmp & EvtSpinAmp::operator *= ( const EvtSpinAmp cont)

Definition at line 366 of file EvtSpinAmp.cpp.

◆ operator *=() [2/2]

EvtSpinAmp & EvtSpinAmp::operator *= ( const EvtComplex real)

Definition at line 373 of file EvtSpinAmp.cpp.

◆ operator()() [1/4]

EvtComplex & EvtSpinAmp::operator() ( const vector< int > &  index)

Definition at line 196 of file EvtSpinAmp.cpp.

◆ operator()() [2/4]

const EvtComplex & EvtSpinAmp::operator() ( const vector< int > &  index) const

Definition at line 220 of file EvtSpinAmp.cpp.

◆ operator()() [3/4]

EvtComplex & EvtSpinAmp::operator() ( int  i,
  ... 
)

Definition at line 244 of file EvtSpinAmp.cpp.

◆ operator()() [4/4]

const EvtComplex & EvtSpinAmp::operator() ( int  i,
  ... 
) const

Definition at line 260 of file EvtSpinAmp.cpp.

◆ operator+()

EvtSpinAmp EvtSpinAmp::operator+ ( const EvtSpinAmp cont) const

Definition at line 285 of file EvtSpinAmp.cpp.

◆ operator+=()

EvtSpinAmp & EvtSpinAmp::operator+= ( const EvtSpinAmp cont)

Definition at line 297 of file EvtSpinAmp.cpp.

◆ operator-()

EvtSpinAmp EvtSpinAmp::operator- ( const EvtSpinAmp cont) const

Definition at line 307 of file EvtSpinAmp.cpp.

◆ operator-=()

EvtSpinAmp & EvtSpinAmp::operator-= ( const EvtSpinAmp cont)

Definition at line 318 of file EvtSpinAmp.cpp.

◆ operator/=()

EvtSpinAmp & EvtSpinAmp::operator/= ( const EvtComplex real)

Definition at line 381 of file EvtSpinAmp.cpp.

◆ operator=()

EvtSpinAmp & EvtSpinAmp::operator= ( const EvtSpinAmp cont)

Definition at line 276 of file EvtSpinAmp.cpp.

◆ rank()

size_t EvtSpinAmp::rank ( ) const
inline

Definition at line 81 of file EvtSpinAmp.hh.

◆ setelem()

void EvtSpinAmp::setelem ( const vector< EvtComplex > &  elem)
inline

Definition at line 89 of file EvtSpinAmp.hh.

Friends And Related Function Documentation

◆ operator * [1/2]

EvtSpinAmp operator * ( const EvtComplex real,
const EvtSpinAmp cont 
)
friend

Definition at line 46 of file EvtSpinAmp.cpp.

◆ operator * [2/2]

EvtSpinAmp operator * ( const EvtSpinAmp cont,
const EvtComplex real 
)
friend

Definition at line 57 of file EvtSpinAmp.cpp.

◆ operator/

EvtSpinAmp operator/ ( const EvtSpinAmp cont,
const EvtComplex real 
)
friend

Definition at line 62 of file EvtSpinAmp.cpp.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const EvtSpinAmp amp 
)
friend

Definition at line 30 of file EvtSpinAmp.cpp.

Member Data Documentation

◆ _elem

vector<EvtComplex> EvtSpinAmp::_elem
private

Definition at line 107 of file EvtSpinAmp.hh.

◆ _twospin

vector<unsigned int> EvtSpinAmp::_twospin
private

Definition at line 106 of file EvtSpinAmp.hh.

◆ _type

vector<EvtSpinType::spintype> EvtSpinAmp::_type
private

Definition at line 105 of file EvtSpinAmp.hh.


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