FEDRA emulsion software from the OPERA Collaboration
EdbPlate Class Reference

#include <EdbRunHeader.h>

Inheritance diagram for EdbPlate:
Collaboration diagram for EdbPlate:

Public Member Functions

 EdbPlate (int id=0, float u=0, float b=0, float d=0, float su=0, float sd=0)
 
Float_t GetBase () const
 
Float_t GetDown () const
 
Float_t GetEmulsion () const
 
Int_t GetID () const
 
Float_t GetShrinkageD () const
 
Float_t GetShrinkageU () const
 
Float_t GetUp () const
 
void Print () const
 
int ReadParameters (const char *str)
 
void Set (int id, float u, float b, float d, float su, float sd)
 
void SetBase (float base)
 
void SetDown (float down)
 
void SetEmulsion (float thickness)
 
void SetID (int id)
 
void SetSrinkageD (float sd)
 
void SetSrinkageU (float su)
 
void SetUp (float up)
 
virtual ~EdbPlate ()
 

Private Attributes

Float_t eBase
 
Float_t eDown
 
Int_t eID
 
Float_t eShrinkageD
 
Float_t eShrinkageU
 
Float_t eUp
 

Constructor & Destructor Documentation

◆ EdbPlate()

EdbPlate::EdbPlate ( int  id = 0,
float  u = 0,
float  b = 0,
float  d = 0,
float  su = 0,
float  sd = 0 
)
inline
39  :
40  eID(id), eUp(u), eBase(b), eDown(d), eShrinkageU(su), eShrinkageD(sd) {}
void d()
Definition: RecDispEX.C:381
void sd()
Definition: check_vertex.C:185
Int_t eID
Definition: EdbRunHeader.h:29
Float_t eDown
Definition: EdbRunHeader.h:33
Float_t eShrinkageU
Definition: EdbRunHeader.h:35
Float_t eUp
Definition: EdbRunHeader.h:31
Float_t eBase
Definition: EdbRunHeader.h:32
Float_t eShrinkageD
Definition: EdbRunHeader.h:36

◆ ~EdbPlate()

virtual EdbPlate::~EdbPlate ( )
inlinevirtual
41 {}

Member Function Documentation

◆ GetBase()

Float_t EdbPlate::GetBase ( ) const
inline
47 { return eBase; }

◆ GetDown()

Float_t EdbPlate::GetDown ( ) const
inline
49 { return eDown; }

◆ GetEmulsion()

Float_t EdbPlate::GetEmulsion ( ) const
172 {
173  //
174  // Returns the nominal thickness of both emulsion sides if they are the same
175  // if not - return 0
176  //
177 
178  if( eUp == eDown ) return eUp;
179  else {
180  printf(
181  "WARNING: EdbPlate::GetEmulsion(): Up and Down has different thickness!");
182  return 0;
183  }
184 }

◆ GetID()

Int_t EdbPlate::GetID ( ) const
inline
46 { return eID; }

◆ GetShrinkageD()

Float_t EdbPlate::GetShrinkageD ( ) const
inline
51 { return eShrinkageD; }

◆ GetShrinkageU()

Float_t EdbPlate::GetShrinkageU ( ) const
inline
50 { return eShrinkageU; }

◆ GetUp()

Float_t EdbPlate::GetUp ( ) const
inline
48 { return eUp; }

◆ Print()

void EdbPlate::Print ( ) const
207 {
208  printf("\nEdbPlate: \t\t %s \n", GetTitle() );
209  printf("%s: \t\t\t %d %d/%d/%d %f %f \n", GetName(),
210  eID, (int)eUp, (int)eBase, (int)eDown, eShrinkageU, eShrinkageD);
211 }

◆ ReadParameters()

int EdbPlate::ReadParameters ( const char *  str)
188 {
189  char name[256];
190  char title[256];
191  int npar = 0;
192 
193  int id;
194  float u,b,d,su,sd;
195 
196  npar = sscanf(str,"%d %f %f %f %f %f %s %s", &id, &u, &b, &d, &su, &sd, name, title );
197 
198  Set( id,u,b,d,su,sd );
199  SetName(name);
200  SetTitle(title);
201 
202  return npar;
203 }
graph SetName("Graph")
NbBT SetTitle("Number of BT per shower")
void Set(int id, float u, float b, float d, float su, float sd)
Definition: EdbRunHeader.cxx:214
const char * name
Definition: merge_Energy_SytematicSources_Electron.C:24
UInt_t id
Definition: tlg2pattern.C:118

◆ Set()

void EdbPlate::Set ( int  id,
float  u,
float  b,
float  d,
float  su,
float  sd 
)
217 {
218  eID = id;
219  eUp = u;
220  eBase = b;
221  eDown = d;
222  eShrinkageU = su;
223  eShrinkageD = sd;
224 }

◆ SetBase()

void EdbPlate::SetBase ( float  base)
inline
57 { eBase = base; }

◆ SetDown()

void EdbPlate::SetDown ( float  down)
inline
59 { eDown = down; }

◆ SetEmulsion()

void EdbPlate::SetEmulsion ( float  thickness)
162 {
163  //
164  // To set the nominal thickness of both emulsion sides if they are the same
165  //
166  eUp = thickness;
167  eDown = thickness;
168 }

◆ SetID()

void EdbPlate::SetID ( int  id)
inline
56 { eID = id; }

◆ SetSrinkageD()

void EdbPlate::SetSrinkageD ( float  sd)
inline
61 { eShrinkageD = sd; }

◆ SetSrinkageU()

void EdbPlate::SetSrinkageU ( float  su)
inline
60 { eShrinkageU = su; }

◆ SetUp()

void EdbPlate::SetUp ( float  up)
inline
58 { eUp = up; }

Member Data Documentation

◆ eBase

Float_t EdbPlate::eBase
private

◆ eDown

Float_t EdbPlate::eDown
private

◆ eID

Int_t EdbPlate::eID
private

◆ eShrinkageD

Float_t EdbPlate::eShrinkageD
private

◆ eShrinkageU

Float_t EdbPlate::eShrinkageU
private

◆ eUp

Float_t EdbPlate::eUp
private

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