FEDRA emulsion software from the OPERA Collaboration
EdbObjective Class Reference

objective affine parameters More...

#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
 from CCD pixels to stage microns More...
 
Float_t eMagnification
 

Detailed Description

objective affine parameters

Constructor & Destructor Documentation

◆ EdbObjective()

EdbObjective::EdbObjective ( float  mag = 0)
141{
143 eCCD2Stage = new EdbAffine2D();
144}
T mag(const SVector< T, D > &rhs)
Definition: Functions.hh:216
Definition: EdbAffine.h:17
Float_t eMagnification
Definition: EdbStage.h:53
EdbAffine2D * eCCD2Stage
from CCD pixels to stage microns
Definition: EdbStage.h:55

◆ ~EdbObjective()

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

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
172{
173 printf("\nEdbObjective: \t\t %s \n", GetTitle() );
174 printf( "%s: \t\t %f \n", GetName(),
176 eCCD2Stage->Print();
177}
void Print(Option_t *opt="") const
Definition: EdbAffine.cxx:52

◆ ReadParameters()

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

from CCD pixels to stage microns

◆ eMagnification

Float_t EdbObjective::eMagnification
private

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