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
 base thickness More...
 
Float_t eDown
 Down side | (normally should be the same) More...
 
Int_t eID
 plate ID More...
 
Float_t eShrinkageD
 srinkage of the Down side (measured in the test run) More...
 
Float_t eShrinkageU
 srinkage of the Up side (measured in the test run) More...
 
Float_t eUp
 Up side | nominal emulsion thickness before shrinkage (on the beam) More...
 

Detailed Description

//////////////////////////////////////////////////////////////////////// // EdbRunHeader // // header data assocoated with 1 run // // ////////////////////////////////////////////////////////////////////////

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
40 :
41 eID(id), eUp(u), eBase(b), eDown(d), eShrinkageU(su), eShrinkageD(sd) {}
void d()
Definition: RecDispEX.C:381
Int_t eID
plate ID
Definition: EdbRunHeader.h:30
Float_t eDown
Down side | (normally should be the same)
Definition: EdbRunHeader.h:34
Float_t eShrinkageU
srinkage of the Up side (measured in the test run)
Definition: EdbRunHeader.h:36
Float_t eUp
Up side | nominal emulsion thickness before shrinkage (on the beam)
Definition: EdbRunHeader.h:32
Float_t eBase
base thickness
Definition: EdbRunHeader.h:33
Float_t eShrinkageD
srinkage of the Down side (measured in the test run)
Definition: EdbRunHeader.h:37
void sd()
Definition: check_vertex.C:185

◆ ~EdbPlate()

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

Member Function Documentation

◆ GetBase()

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

◆ GetDown()

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

◆ GetEmulsion()

Float_t EdbPlate::GetEmulsion ( ) const


Returns the nominal thickness of both emulsion sides if they are the same
if not - return 0

173{
178
179 if( eUp == eDown ) return eUp;
180 else {
181 printf(
182 "WARNING: EdbPlate::GetEmulsion(): Up and Down has different thickness!");
183 return 0;
184 }
185}

◆ GetID()

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

◆ GetShrinkageD()

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

◆ GetShrinkageU()

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

◆ GetUp()

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

◆ Print()

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

◆ ReadParameters()

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

◆ Set()

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

◆ SetBase()

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

◆ SetDown()

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

◆ SetEmulsion()

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

◆ SetID()

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

◆ SetSrinkageD()

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

◆ SetSrinkageU()

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

◆ SetUp()

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

Member Data Documentation

◆ eBase

Float_t EdbPlate::eBase
private

base thickness

◆ eDown

Float_t EdbPlate::eDown
private

Down side | (normally should be the same)

◆ eID

Int_t EdbPlate::eID
private

plate ID

◆ eShrinkageD

Float_t EdbPlate::eShrinkageD
private

srinkage of the Down side (measured in the test run)

◆ eShrinkageU

Float_t EdbPlate::eShrinkageU
private

srinkage of the Up side (measured in the test run)

◆ eUp

Float_t EdbPlate::eUp
private

Up side | nominal emulsion thickness before shrinkage (on the beam)


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