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
 frame identifier More...
 
EdbImageeImage
 CCD image. More...
 
Int_t eNcl
 total number of clusters found in the frame More...
 
Int_t eNpix
 total number of nonzero pixels found in the frame More...
 
Float_t eZframe
 Z-coordinate of the frame. More...
 

Constructor & Destructor Documentation

◆ EdbFrame() [1/3]

EdbFrame::EdbFrame ( )

◆ EdbFrame() [2/3]

EdbFrame::EdbFrame ( int  frame,
float  z = 0,
int  ncl = 0,
int  npix = 0 
)
35{
36 Set0();
37 eFrameID = frame;
38 eZframe = z;
39 eNcl = ncl;
40 eNpix = npix;
41}
Float_t eZframe
Z-coordinate of the frame.
Definition: EdbFrame.h:25
Int_t eNcl
total number of clusters found in the frame
Definition: EdbFrame.h:26
Int_t eFrameID
frame identifier
Definition: EdbFrame.h:24
Int_t eNpix
total number of nonzero pixels found in the frame
Definition: EdbFrame.h:27
void Set0()
Definition: EdbFrame.cxx:76

◆ EdbFrame() [3/3]

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

◆ ~EdbFrame()

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

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:140

◆ GetHist2()

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

◆ 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
87{
88 printf("Frame: %d at z = %f\n", eFrameID,eZframe);
89 if(eImage) eImage->Print();
90}
virtual void Print(Option_t *opt="") const
Definition: EdbImage.cxx:134

◆ Set0()

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

◆ SetID()

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

◆ 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

frame identifier

◆ eImage

EdbImage* EdbFrame::eImage
private

CCD image.

◆ eNcl

Int_t EdbFrame::eNcl
private

total number of clusters found in the frame

◆ eNpix

Int_t EdbFrame::eNpix
private

total number of nonzero pixels found in the frame

◆ eZframe

Float_t EdbFrame::eZframe
private

Z-coordinate of the frame.


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