CSPadPixCoords::CSPadImageProducer Class Reference

#include <CSPadImageProducer.h>

List of all members.

Public Types

 NQuadsMax = Psana::CsPad::MaxQuadsPerSensor
 N2x1 = Psana::CsPad::SectorsPerQuad
 NCols2x1 = Psana::CsPad::ColumnsPerASIC
 NRows2x1 = Psana::CsPad::MaxRowsPerASIC * 2
 SizeOf2x1Arr = NRows2x1 * NCols2x1
enum  { NQuadsMax = Psana::CsPad::MaxQuadsPerSensor }
enum  { N2x1 = Psana::CsPad::SectorsPerQuad }
enum  { NCols2x1 = Psana::CsPad::ColumnsPerASIC }
enum  { NRows2x1 = Psana::CsPad::MaxRowsPerASIC * 2 }
enum  { SizeOf2x1Arr = NRows2x1 * NCols2x1 }

Public Member Functions

 CSPadImageProducer (const std::string &name)
 Default constructor.
virtual ~CSPadImageProducer ()
 Destructor.
virtual void beginJob (Event &evt, Env &env)
 Method which is called once at the beginning of the job.
virtual void beginRun (Event &evt, Env &env)
 Method which is called at the beginning of the run.
virtual void beginCalibCycle (Event &evt, Env &env)
 Method which is called at the beginning of the calibration cycle.
virtual void event (Event &evt, Env &env)
virtual void endCalibCycle (Event &evt, Env &env)
 Method which is called at the end of the calibration cycle.
virtual void endRun (Event &evt, Env &env)
 Method which is called at the end of the run.
virtual void endJob (Event &evt, Env &env)
 Method which is called once at the end of the job.

Static Public Attributes

static const uint32_t ARR_SIZE = 32*SizeOf2x1Arr

Protected Member Functions

void printInputParameters ()
 Print input parameters.
void getConfigPars (Env &env)
bool getGeometryPars (const std::string &calib_dir, const int runnum, const unsigned prbits)
void getCalibPars (Event &evt, Env &env)
 Method which is called at the beginning of the run.
void procEvent (Event &evt, Env &env)
void getCSPadConfigFromData (Event &evt)
void checkTypeImplementation ()
void cspadImgActivePixelMask (Env &env)


Detailed Description

Definition at line 85 of file CSPadImageProducer.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
NQuadsMax 

Definition at line 88 of file CSPadImageProducer.h.

anonymous enum

Enumerator:
N2x1 

Definition at line 89 of file CSPadImageProducer.h.

anonymous enum

Enumerator:
NCols2x1 

Definition at line 90 of file CSPadImageProducer.h.

anonymous enum

Enumerator:
NRows2x1 

Definition at line 91 of file CSPadImageProducer.h.

anonymous enum

Enumerator:
SizeOf2x1Arr 

Definition at line 92 of file CSPadImageProducer.h.


Constructor & Destructor Documentation

CSPadPixCoords::CSPadImageProducer::CSPadImageProducer ( const std::string &  name  ) 

Default constructor.

Definition at line 55 of file CSPadImageProducer.cpp.

CSPadPixCoords::CSPadImageProducer::~CSPadImageProducer (  )  [virtual]

Destructor.

Definition at line 88 of file CSPadImageProducer.cpp.


Member Function Documentation

void CSPadPixCoords::CSPadImageProducer::beginCalibCycle ( Event &  evt,
Env &  env 
) [virtual]

Method which is called at the beginning of the calibration cycle.

Definition at line 137 of file CSPadImageProducer.cpp.

void CSPadPixCoords::CSPadImageProducer::beginJob ( Event &  evt,
Env &  env 
) [virtual]

Method which is called once at the beginning of the job.

Definition at line 118 of file CSPadImageProducer.cpp.

References printInputParameters(), and CSPadPixCoords::printSizeOfTypes().

void CSPadPixCoords::CSPadImageProducer::beginRun ( Event &  evt,
Env &  env 
) [virtual]

Method which is called at the beginning of the run.

Definition at line 128 of file CSPadImageProducer.cpp.

void CSPadPixCoords::CSPadImageProducer::checkTypeImplementation (  )  [protected]

Definition at line 338 of file CSPadImageProducer.cpp.

References CSPadPixCoords::DOUBLE, CSPadPixCoords::FLOAT, CSPadPixCoords::INT, CSPadPixCoords::INT16, and GeometryAccess::msg.

void CSPadPixCoords::CSPadImageProducer::cspadImgActivePixelMask ( Env &  env  )  [protected]

Definition at line 353 of file CSPadImageProducer.cpp.

References ARR_SIZE, GeometryAccess::msg, and CalibPars::shape().

Referenced by event().

void CSPadPixCoords::CSPadImageProducer::endCalibCycle ( Event &  evt,
Env &  env 
) [virtual]

Method which is called at the end of the calibration cycle.

Definition at line 182 of file CSPadImageProducer.cpp.

void CSPadPixCoords::CSPadImageProducer::endJob ( Event &  evt,
Env &  env 
) [virtual]

Method which is called once at the end of the job.

Definition at line 198 of file CSPadImageProducer.cpp.

void CSPadPixCoords::CSPadImageProducer::endRun ( Event &  evt,
Env &  env 
) [virtual]

Method which is called at the end of the run.

Definition at line 190 of file CSPadImageProducer.cpp.

void CSPadPixCoords::CSPadImageProducer::event ( Event &  evt,
Env &  env 
) [virtual]

Method which is called with event data, this is the only required method, all other methods are optional

Definition at line 146 of file CSPadImageProducer.cpp.

References cspadImgActivePixelMask(), getCalibPars(), getConfigPars(), CSPadPixCoords::printTimeStamp(), procEvent(), and CalibPars::status().

void CSPadPixCoords::CSPadImageProducer::getCalibPars ( Event &  evt,
Env &  env 
) [protected]

Method which is called at the beginning of the run.

Definition at line 268 of file CSPadImageProducer.cpp.

References GlobalUtils::calib_dir(), getGeometryPars(), CSPadPixCoords::getRunNumber(), CalibPars::printCalibPars(), and ex-ipython::runnum.

Referenced by event().

void CSPadPixCoords::CSPadImageProducer::getConfigPars ( Env &  env  )  [protected]

Definition at line 205 of file CSPadImageProducer.cpp.

Referenced by event().

void CSPadPixCoords::CSPadImageProducer::getCSPadConfigFromData ( Event &  evt  )  [protected]

Definition at line 296 of file CSPadImageProducer.cpp.

Referenced by procEvent().

bool CSPadPixCoords::CSPadImageProducer::getGeometryPars ( const std::string &  calib_dir,
const int  runnum,
const unsigned  prbits 
) [protected]

Definition at line 222 of file CSPadImageProducer.cpp.

References PSCalib::CalibFileFinder::findCalibFile(), GeometryAccess::geometry, PSCalib::SegGeometryCspad2x1V1::PIX_SCALE_SIZE, CalibPars::size, and PSCalib::SegGeometryCspad2x1V1::UM_TO_PIX.

Referenced by getCalibPars().

void CSPadPixCoords::CSPadImageProducer::printInputParameters (  )  [protected]

Print input parameters.

Definition at line 96 of file CSPadImageProducer.cpp.

Referenced by beginJob().

void CSPadPixCoords::CSPadImageProducer::procEvent ( Event &  evt,
Env &  env 
) [protected]

Definition at line 312 of file CSPadImageProducer.cpp.

References getCSPadConfigFromData().

Referenced by event().


Member Data Documentation

const uint32_t CSPadPixCoords::CSPadImageProducer::ARR_SIZE = 32*SizeOf2x1Arr [static]

Definition at line 93 of file CSPadImageProducer.h.

Referenced by cspadImgActivePixelMask().


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7