CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
magfieldparam::rz_harm_poly Class Reference

#include <rz_harm_poly.h>

Inheritance diagram for magfieldparam::rz_harm_poly:
magfieldparam::poly2d_base

Public Member Functions

void CheatL (const unsigned newL)
 
double GetCos ()
 
rz_harm_poly GetDecPow (int nvar)
 
rz_harm_poly GetDiff (int nvar)
 
rz_harm_poly GetIncPow (int nvar)
 
rz_harm_poly GetInt (int nvar)
 
unsigned GetL ()
 
int GetM ()
 
double GetSin ()
 
bool IsPhiSet ()
 
rz_harm_poly LadderDwn ()
 
rz_harm_poly LadderUp ()
 
void Print (std::ostream &out=std::cout, const std::streamsize prec=5)
 
 rz_harm_poly ()
 
 rz_harm_poly (const poly2d_base &S)
 
 rz_harm_poly (const rz_harm_poly &S)
 
 rz_harm_poly (const unsigned N)
 
 ~rz_harm_poly ()
 
- Public Member Functions inherited from magfieldparam::poly2d_base
void Collect ()
 
void Compress ()
 
void DecPow (int nvar)
 
void Diff (int nvar)
 
double Eval ()
 
double GetVal ()
 
double GetVal (const double r, const double z)
 
void IncPow (int nvar)
 
void Int (int nvar)
 
bool IsOn ()
 
bool IsRZSet ()
 
 poly2d_base ()
 
 poly2d_base (const poly2d_base &S)
 
void Print (std::ostream &out=std::cout, const std::streamsize prec=5)
 
void Scale (const double C)
 
virtual ~poly2d_base ()
 

Static Public Member Functions

static unsigned Count ()
 
static int GetMaxM ()
 
static unsigned ParentCount ()
 
static void PrintTrigArr (std::ostream &out=std::cout, const std::streamsize prec=5)
 
static void SetPhi (const double phi)
 
static void SetPoint (const double r, const double z, const double phi)
 
- Static Public Member Functions inherited from magfieldparam::poly2d_base
static unsigned Count ()
 
static int GetMaxPow ()
 
static void IncNPwr (const unsigned N)
 
static void PrintTab (std::ostream &out=std::cout, const std::streamsize prec=5)
 
static void SetPoint (const double r, const double z)
 

Private Member Functions

void PrintLM (std::ostream &out=std::cout)
 

Static Private Member Functions

static void FillTrigArr (const double phi)
 
static void SetTrigArrSize (const unsigned N)
 

Private Attributes

unsigned L
 
int M
 

Static Private Attributes

static unsigned Cnt = 0
 
static unsigned MaxM = 0
 
static bool phi_set = false
 
static double phival = -11111.
 
static unsigned TASize = 0
 
static trig_pairTrigArr = 0
 

Additional Inherited Members

- Static Protected Member Functions inherited from magfieldparam::poly2d_base
static void AdjustTab ()
 
static void FillTable (const double r, const double z)
 
static void SetTabSize (const unsigned N)
 
- Protected Attributes inherited from magfieldparam::poly2d_base
std::vector< poly2d_termdata
 
unsigned max_pwr
 
- Static Protected Attributes inherited from magfieldparam::poly2d_base
static const double MIN_COEFF = DBL_EPSILON
 
static unsigned NPwr = 0
 
static unsigned NTab = 0
 
static std::set< poly2d_base * > poly2d_base_set
 
static double rval = 0.
 
static double ** rz_pow = 0
 
static bool rz_set = false
 
static double zval = 0.
 

Detailed Description

Definition at line 38 of file rz_harm_poly.h.

Constructor & Destructor Documentation

magfieldparam::rz_harm_poly::rz_harm_poly ( )
inline

Definition at line 72 of file rz_harm_poly.h.

References Cnt.

magfieldparam::rz_harm_poly::rz_harm_poly ( const poly2d_base S)
inline

Definition at line 73 of file rz_harm_poly.h.

References Cnt.

73 : poly2d_base(S), L(0), M(0) {++Cnt;}
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:99
magfieldparam::rz_harm_poly::rz_harm_poly ( const rz_harm_poly S)
inline

Definition at line 74 of file rz_harm_poly.h.

References Cnt.

74 : poly2d_base(S), L(S.L), M(S.M) {++Cnt;}
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:99
rz_harm_poly::rz_harm_poly ( const unsigned  N)

Definition at line 23 of file rz_harm_poly.cc.

rz_harm_poly::~rz_harm_poly ( )

Definition at line 54 of file rz_harm_poly.cc.

Member Function Documentation

void magfieldparam::rz_harm_poly::CheatL ( const unsigned  newL)
inline

Definition at line 97 of file rz_harm_poly.h.

References L.

97 { L = newL;}
static unsigned magfieldparam::rz_harm_poly::Count ( )
inlinestatic

Definition at line 65 of file rz_harm_poly.h.

References Cnt.

65 { return Cnt;}
void rz_harm_poly::FillTrigArr ( const double  phi)
staticprivate

Definition at line 113 of file rz_harm_poly.cc.

double magfieldparam::rz_harm_poly::GetCos ( )
inline
rz_harm_poly magfieldparam::rz_harm_poly::GetDecPow ( int  nvar)
inline

Definition at line 83 of file rz_harm_poly.h.

References magfieldparam::poly2d_base::DecPow(), and dttmaxenums::R.

83 { rz_harm_poly R(*this); R.DecPow(nvar); return R;}
rz_harm_poly magfieldparam::rz_harm_poly::GetDiff ( int  nvar)
inline

Definition at line 80 of file rz_harm_poly.h.

References magfieldparam::poly2d_base::Diff(), and dttmaxenums::R.

80 { rz_harm_poly R(*this); R.Diff (nvar); return R;}
rz_harm_poly magfieldparam::rz_harm_poly::GetIncPow ( int  nvar)
inline

Definition at line 82 of file rz_harm_poly.h.

References magfieldparam::poly2d_base::IncPow(), and dttmaxenums::R.

82 { rz_harm_poly R(*this); R.IncPow(nvar); return R;}
rz_harm_poly magfieldparam::rz_harm_poly::GetInt ( int  nvar)
inline

Definition at line 81 of file rz_harm_poly.h.

References magfieldparam::poly2d_base::Int(), and dttmaxenums::R.

81 { rz_harm_poly R(*this); R.Int (nvar); return R;}
unsigned magfieldparam::rz_harm_poly::GetL ( )
inline

Definition at line 88 of file rz_harm_poly.h.

References L.

88 { return L;}
int magfieldparam::rz_harm_poly::GetM ( )
inline

Definition at line 89 of file rz_harm_poly.h.

References M.

89 { return M;}
int rz_harm_poly::GetMaxM ( )
static

Definition at line 72 of file rz_harm_poly.cc.

double magfieldparam::rz_harm_poly::GetSin ( )
inline
bool magfieldparam::rz_harm_poly::IsPhiSet ( )
inline

Definition at line 78 of file rz_harm_poly.h.

References phi_set.

78 { return phi_set;}
rz_harm_poly rz_harm_poly::LadderDwn ( )

Definition at line 193 of file rz_harm_poly.cc.

rz_harm_poly rz_harm_poly::LadderUp ( )

Definition at line 155 of file rz_harm_poly.cc.

static unsigned magfieldparam::rz_harm_poly::ParentCount ( )
inlinestatic

Definition at line 64 of file rz_harm_poly.h.

References magfieldparam::poly2d_base::Count().

64 { return poly2d_base::Count();}
static unsigned Count()
Definition: poly2d_base.h:74
void magfieldparam::rz_harm_poly::Print ( std::ostream &  out = std::cout,
const std::streamsize  prec = 5 
)
inline

Definition at line 98 of file rz_harm_poly.h.

References GenerateHcalLaserBadRunList::out, magfieldparam::poly2d_base::Print(), and PrintLM().

99  { PrintLM(out); poly2d_base::Print(out, prec);}
void Print(std::ostream &out=std::cout, const std::streamsize prec=5)
Definition: poly2d_base.cc:204
void PrintLM(std::ostream &out=std::cout)
Definition: rz_harm_poly.h:55
void magfieldparam::rz_harm_poly::PrintLM ( std::ostream &  out = std::cout)
inlineprivate

Definition at line 55 of file rz_harm_poly.h.

References L, M, and GenerateHcalLaserBadRunList::out.

Referenced by Print().

56  {
57  out << "L=" << std::setw(3) << std::left << L
58  <<", M=" << std::setw(3) << std::left << M << "; ";
59  }
void rz_harm_poly::PrintTrigArr ( std::ostream &  out = std::cout,
const std::streamsize  prec = 5 
)
static

Definition at line 123 of file rz_harm_poly.cc.

void rz_harm_poly::SetPhi ( const double  phi)
static

Definition at line 88 of file rz_harm_poly.cc.

Referenced by SetPoint().

static void magfieldparam::rz_harm_poly::SetPoint ( const double  r,
const double  z,
const double  phi 
)
inlinestatic

Definition at line 67 of file rz_harm_poly.h.

References SetPhi(), and magfieldparam::poly2d_base::SetPoint().

Referenced by magfieldparam::HarmBasis3DCyl::SetPoint().

68  {
70  }
static void SetPhi(const double phi)
Definition: rz_harm_poly.cc:88
static void SetPoint(const double r, const double z)
Definition: poly2d_base.cc:148
void rz_harm_poly::SetTrigArrSize ( const unsigned  N)
staticprivate

Definition at line 100 of file rz_harm_poly.cc.

Member Data Documentation

unsigned rz_harm_poly::Cnt = 0
staticprivate

Definition at line 44 of file rz_harm_poly.h.

Referenced by Count(), and rz_harm_poly().

unsigned magfieldparam::rz_harm_poly::L
private

Definition at line 41 of file rz_harm_poly.h.

Referenced by CheatL(), GetL(), and PrintLM().

int magfieldparam::rz_harm_poly::M
private

Definition at line 42 of file rz_harm_poly.h.

Referenced by GetCos(), GetM(), GetSin(), and PrintLM().

unsigned rz_harm_poly::MaxM = 0
staticprivate

Definition at line 47 of file rz_harm_poly.h.

bool rz_harm_poly::phi_set = false
staticprivate

Definition at line 46 of file rz_harm_poly.h.

Referenced by IsPhiSet().

double rz_harm_poly::phival = -11111.
staticprivate

Definition at line 45 of file rz_harm_poly.h.

unsigned rz_harm_poly::TASize = 0
staticprivate

Definition at line 49 of file rz_harm_poly.h.

trig_pair * rz_harm_poly::TrigArr = 0
staticprivate

Definition at line 50 of file rz_harm_poly.h.

Referenced by GetCos(), and GetSin().