FEDRA emulsion software from the OPERA Collaboration
EdbObjective Class Reference

#include <EdbStage.h>

Inheritance diagram for EdbObjective:
Collaboration diagram for EdbObjective:

Public Member Functions

 EdbObjective (float mag=0)
 
EdbAffine2DGetCCD2Stage () const
 
Float_t GetMagnification () const
 
Float_t PixelX () const
 
Float_t PixelY () const
 
void Print (Option_t *opt="") const
 
int ReadParameters (const char *str)
 
void Set (float mag, float a, float b, float c, float d, float p, float q)
 
void SetCCD2Stage (float a, float b, float c, float d, float p, float q)
 
void SetMagnification (float mag)
 
virtual ~EdbObjective ()
 

Private Attributes

EdbAffine2DeCCD2Stage
 
Float_t eMagnification
 

Constructor & Destructor Documentation

◆ EdbObjective()

EdbObjective::EdbObjective ( float  mag = 0)
140 {
142  eCCD2Stage = new EdbAffine2D();
143 }
T mag(const SVector< T, D > &rhs)
Definition: Functions.hh:216
Definition: EdbAffine.h:17
Float_t eMagnification
Definition: EdbStage.h:53
EdbAffine2D * eCCD2Stage
Definition: EdbStage.h:55

◆ ~EdbObjective()

EdbObjective::~EdbObjective ( )
virtual
147 {
148  delete eCCD2Stage;
149 }

Member Function Documentation

◆ GetCCD2Stage()

EdbAffine2D* EdbObjective::GetCCD2Stage ( ) const
inline
72 { return eCCD2Stage; }

◆ GetMagnification()

Float_t EdbObjective::GetMagnification ( ) const
inline
71 { return eMagnification; }

◆ PixelX()

Float_t EdbObjective::PixelX ( ) const
inline
74 { return TMath::Abs(eCCD2Stage->A11()); }
Float_t A11() const
Definition: EdbAffine.h:43

◆ PixelY()

Float_t EdbObjective::PixelY ( ) const
inline
75 { return TMath::Abs(eCCD2Stage->A22()); }
Float_t A22() const
Definition: EdbAffine.h:46

◆ Print()

void EdbObjective::Print ( Option_t *  opt = "") const
171 {
172  printf("\nEdbObjective: \t\t %s \n", GetTitle() );
173  printf( "%s: \t\t %f \n", GetName(),
174  eMagnification );
175  eCCD2Stage->Print();
176 }
void Print(Option_t *opt="") const
Definition: EdbAffine.cxx:52

◆ ReadParameters()

int EdbObjective::ReadParameters ( const char *  str)
153 {
154  char name[256];
155  char title[256];
156  int npar = 0;
157 
158  float mag, a,b,c,d,p,q;
159 
160  npar = sscanf(str,"%f %f %f %f %f %f %f %s %s", &mag, &a, &b, &c, &d, &p, &q, name, title );
161 
162  Set(int(mag),a,b,c,d,p,q);
163  SetName(name);
164  SetTitle(title);
165 
166  return npar;
167 }
graph SetName("Graph")
void d()
Definition: RecDispEX.C:381
void a()
Definition: check_aligned.C:59
NbBT SetTitle("Number of BT per shower")
void Set(float mag, float a, float b, float c, float d, float p, float q)
Definition: EdbStage.h:61
const char * name
Definition: merge_Energy_SytematicSources_Electron.C:24
q
Definition: testBGReduction_AllMethods.C:55
p
Definition: testBGReduction_AllMethods.C:8

◆ Set()

void EdbObjective::Set ( float  mag,
float  a,
float  b,
float  c,
float  d,
float  p,
float  q 
)
inline
64  eCCD2Stage->Set(a,b,c,d,p,q); }
void Set(EdbAffine2D &a)
Definition: EdbAffine.h:36

◆ SetCCD2Stage()

void EdbObjective::SetCCD2Stage ( float  a,
float  b,
float  c,
float  d,
float  p,
float  q 
)
inline
69  { eCCD2Stage->Set(a,b,c,d,p,q); }

◆ SetMagnification()

void EdbObjective::SetMagnification ( float  mag)
inline

Member Data Documentation

◆ eCCD2Stage

EdbAffine2D* EdbObjective::eCCD2Stage
private

◆ eMagnification

Float_t EdbObjective::eMagnification
private

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