FEDRA emulsion software from the OPERA Collaboration
EdbFrame Class Reference

#include <EdbFrame.h>

Inheritance diagram for EdbFrame:
Collaboration diagram for EdbFrame:

Public Member Functions

 EdbFrame ()
 
 EdbFrame (int frame, float z=0, int ncl=0, int npix=0)
 
 EdbFrame (int frame, int columns, int rows, char *image, float z=0)
 
char * GetBuffer () const
 
TH1F * GetHist1 () const
 
TH2F * GetHist2 (int flip=0) const
 
int GetID () const
 
EdbImageGetImage () const
 
int GetNcl () const
 
int GetNpix () const
 
float GetZ () const
 
char Pixel (int r, int c) const
 
void Print (Option_t *opt="") const
 
void Set0 ()
 
void SetID (int id)
 
void SetImage (EdbImage *image)
 
void SetZ (float z)
 
virtual ~EdbFrame ()
 

Private Attributes

Int_t eFrameID
 
EdbImageeImage
 
Int_t eNcl
 
Int_t eNpix
 
Float_t eZframe
 

Constructor & Destructor Documentation

◆ EdbFrame() [1/3]

EdbFrame::EdbFrame ( )

◆ EdbFrame() [2/3]

EdbFrame::EdbFrame ( int  frame,
float  z = 0,
int  ncl = 0,
int  npix = 0 
)
34 {
35  Set0();
36  eFrameID = frame;
37  eZframe = z;
38  eNcl = ncl;
39  eNpix = npix;
40 }
Float_t eZframe
Definition: EdbFrame.h:25
Int_t eNcl
Definition: EdbFrame.h:26
Int_t eFrameID
Definition: EdbFrame.h:24
Int_t eNpix
Definition: EdbFrame.h:27
void Set0()
Definition: EdbFrame.cxx:75

◆ EdbFrame() [3/3]

EdbFrame::EdbFrame ( int  frame,
int  columns,
int  rows,
char *  image,
float  z = 0 
)
25 {
26  Set0();
27  eFrameID = frame;
28  eZframe = z;
29  eImage = new EdbImage(columns,rows,image);
30 }
EdbImage * eImage
Definition: EdbFrame.h:28
Definition: EdbImage.h:23

◆ ~EdbFrame()

EdbFrame::~EdbFrame ( )
virtual
44 {
45  if(eImage) delete eImage;
46 }

Member Function Documentation

◆ GetBuffer()

char* EdbFrame::GetBuffer ( ) const
inline
48 { return eImage->GetBuffer(); }
char * GetBuffer() const
Definition: EdbImage.h:48

◆ GetHist1()

TH1F* EdbFrame::GetHist1 ( ) const
inline
51 { return eImage->GetHist1(); }
TH1F * GetHist1() const
Definition: EdbImage.cxx:139

◆ GetHist2()

TH2F* EdbFrame::GetHist2 ( int  flip = 0) const
inline
50 { return eImage->GetHist2(flip); }
TH2F * GetHist2(int flip=0) const
Definition: EdbImage.cxx:157

◆ GetID()

int EdbFrame::GetID ( ) const
inline
41 { return eFrameID; }

◆ GetImage()

EdbImage* EdbFrame::GetImage ( ) const
inline
45 { return eImage; }

◆ GetNcl()

int EdbFrame::GetNcl ( ) const
inline
43 { return eNcl; }

◆ GetNpix()

int EdbFrame::GetNpix ( ) const
inline
44 { return eNpix; }

◆ GetZ()

float EdbFrame::GetZ ( void  ) const
inline
42 { return eZframe; }

◆ Pixel()

char EdbFrame::Pixel ( int  r,
int  c 
) const
inline
49 { return eImage->Pixel(r,c); }
int Pixel(int c, int r) const
Definition: EdbImage.h:50
void r(int rid=2)
Definition: test.C:201

◆ Print()

void EdbFrame::Print ( Option_t *  opt = "") const
86 {
87  printf("Frame: %d at z = %f\n", eFrameID,eZframe);
88  if(eImage) eImage->Print();
89 }
virtual void Print(Option_t *opt="") const
Definition: EdbImage.cxx:133

◆ Set0()

void EdbFrame::Set0 ( )
76 {
77  eFrameID = 0;
78  eZframe = 0;
79  eNcl = 0;
80  eNpix = 0;
81  eImage = 0;
82 }

◆ SetID()

void EdbFrame::SetID ( int  id)
inline
37 {eFrameID=id;}
UInt_t id
Definition: tlg2pattern.C:118

◆ SetImage()

void EdbFrame::SetImage ( EdbImage image)
inline
39 {eImage=image;}

◆ SetZ()

void EdbFrame::SetZ ( float  z)
inline
38 {eZframe=z;}

Member Data Documentation

◆ eFrameID

Int_t EdbFrame::eFrameID
private

◆ eImage

EdbImage* EdbFrame::eImage
private

◆ eNcl

Int_t EdbFrame::eNcl
private

◆ eNpix

Int_t EdbFrame::eNpix
private

◆ eZframe

Float_t EdbFrame::eZframe
private

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