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 | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
magfieldparam::poly2d_base Class Reference

#include <poly2d_base.h>

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

Public Member Functions

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 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)
 

Static Protected Member Functions

static void AdjustTab ()
 
static void FillTable (const double r, const double z)
 
static void SetTabSize (const unsigned N)
 

Protected Attributes

std::vector< poly2d_termdata
 
unsigned max_pwr
 

Static Protected Attributes

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 44 of file poly2d_base.h.

Constructor & Destructor Documentation

magfieldparam::poly2d_base::poly2d_base ( )
inline

Definition at line 79 of file poly2d_base.h.

References max_pwr, and poly2d_base_set.

79  {
80  max_pwr = 0;
81  poly2d_base_set.insert(this);
82  }
static std::set< poly2d_base * > poly2d_base_set
Definition: poly2d_base.h:59
magfieldparam::poly2d_base::poly2d_base ( const poly2d_base S)
inline

Definition at line 83 of file poly2d_base.h.

References data, max_pwr, and poly2d_base_set.

83  {
84  data = S.data;
85  max_pwr = S.max_pwr;
86  poly2d_base_set.insert(this);
87  }
std::vector< poly2d_term > data
Definition: poly2d_base.h:68
static std::set< poly2d_base * > poly2d_base_set
Definition: poly2d_base.h:59
double S(const TLorentzVector &, const TLorentzVector &)
Definition: Particle.cc:99
poly2d_base::~poly2d_base ( )
virtual

Definition at line 49 of file poly2d_base.cc.

Member Function Documentation

void poly2d_base::AdjustTab ( )
staticprotected

Definition at line 115 of file poly2d_base.cc.

void poly2d_base::Collect ( )

Definition at line 166 of file poly2d_base.cc.

Referenced by Compress().

void magfieldparam::poly2d_base::Compress ( )
inline

Definition at line 95 of file poly2d_base.h.

References Collect().

static unsigned magfieldparam::poly2d_base::Count ( )
inlinestatic

Definition at line 74 of file poly2d_base.h.

References poly2d_base_set.

Referenced by magfieldparam::rz_harm_poly::ParentCount().

74 { return poly2d_base_set.size();}
static std::set< poly2d_base * > poly2d_base_set
Definition: poly2d_base.h:59
void poly2d_base::DecPow ( int  nvar)

Definition at line 272 of file poly2d_base.cc.

Referenced by magfieldparam::rz_harm_poly::GetDecPow().

void poly2d_base::Diff ( int  nvar)

Definition at line 222 of file poly2d_base.cc.

Referenced by magfieldparam::rz_harm_poly::GetDiff().

double poly2d_base::Eval ( )
void poly2d_base::FillTable ( const double  r,
const double  z 
)
staticprotected

Definition at line 89 of file poly2d_base.cc.

int poly2d_base::GetMaxPow ( )
static

Definition at line 102 of file poly2d_base.cc.

double magfieldparam::poly2d_base::GetVal ( )
inline

Definition at line 106 of file poly2d_base.h.

References Eval(), and rz_set.

106 {if (rz_set) return Eval(); else return 0.;}
double magfieldparam::poly2d_base::GetVal ( const double  r,
const double  z 
)
inline

Definition at line 107 of file poly2d_base.h.

References Eval(), and SetPoint().

107 { SetPoint(r,z); return Eval();}
static void SetPoint(const double r, const double z)
Definition: poly2d_base.cc:148
static void magfieldparam::poly2d_base::IncNPwr ( const unsigned  N)
inlinestatic

Definition at line 72 of file poly2d_base.h.

References N, and NPwr.

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

72 {if (N > NPwr) NPwr = N;}
#define N
Definition: blowfish.cc:9
static unsigned NPwr
Definition: poly2d_base.h:54
void poly2d_base::IncPow ( int  nvar)

Definition at line 260 of file poly2d_base.cc.

Referenced by magfieldparam::rz_harm_poly::GetIncPow().

void poly2d_base::Int ( int  nvar)

Definition at line 246 of file poly2d_base.cc.

Referenced by magfieldparam::rz_harm_poly::GetInt().

bool magfieldparam::poly2d_base::IsOn ( )
inline

Definition at line 91 of file poly2d_base.h.

References data.

91 { return bool(data.size());}
std::vector< poly2d_term > data
Definition: poly2d_base.h:68
bool magfieldparam::poly2d_base::IsRZSet ( )
inline

Definition at line 92 of file poly2d_base.h.

References rz_set.

92 { return rz_set;}
void poly2d_base::Print ( std::ostream &  out = std::cout,
const std::streamsize  prec = 5 
)

Definition at line 204 of file poly2d_base.cc.

Referenced by magfieldparam::rz_harm_poly::Print().

void poly2d_base::PrintTab ( std::ostream &  out = std::cout,
const std::streamsize  prec = 5 
)
static

Definition at line 122 of file poly2d_base.cc.

void poly2d_base::Scale ( const double  C)

Definition at line 296 of file poly2d_base.cc.

void poly2d_base::SetPoint ( const double  r,
const double  z 
)
static

Definition at line 148 of file poly2d_base.cc.

Referenced by GetVal(), and magfieldparam::rz_harm_poly::SetPoint().

void poly2d_base::SetTabSize ( const unsigned  N)
staticprotected

Definition at line 69 of file poly2d_base.cc.

Member Data Documentation

std::vector<poly2d_term> magfieldparam::poly2d_base::data
protected

Definition at line 68 of file poly2d_base.h.

Referenced by IsOn(), and poly2d_base().

unsigned magfieldparam::poly2d_base::max_pwr
protected

Definition at line 69 of file poly2d_base.h.

Referenced by poly2d_base().

const double poly2d_base::MIN_COEFF = DBL_EPSILON
staticprotected

Definition at line 57 of file poly2d_base.h.

unsigned poly2d_base::NPwr = 0
staticprotected

Definition at line 54 of file poly2d_base.h.

Referenced by IncNPwr().

unsigned poly2d_base::NTab = 0
staticprotected

Definition at line 53 of file poly2d_base.h.

std::set< poly2d_base * > poly2d_base::poly2d_base_set
staticprotected

Definition at line 59 of file poly2d_base.h.

Referenced by Count(), and poly2d_base().

double poly2d_base::rval = 0.
staticprotected

Definition at line 49 of file poly2d_base.h.

double ** poly2d_base::rz_pow = 0
staticprotected

Definition at line 52 of file poly2d_base.h.

bool poly2d_base::rz_set = false
staticprotected

Definition at line 55 of file poly2d_base.h.

Referenced by GetVal(), and IsRZSet().

double poly2d_base::zval = 0.
staticprotected

Definition at line 50 of file poly2d_base.h.