CSPadPixCoords::CSPad2x2NDArrProducer Class Reference
[CSPadPixCoords package]

CSPad2x2NDArrProducer produces the CSPad data ndarray<T,3> array for each event and add it to the event in psana framework. More...

#include <CSPad2x2NDArrProducer.h>

List of all members.

Public Types

typedef CSPadPixCoords::CSPad2x2ConfigPars CONFIG

Public Member Functions

 CSPad2x2NDArrProducer (const std::string &name)
virtual ~CSPad2x2NDArrProducer ()
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 NRows2x1 = 185
static const uint32_t NCols2x1 = 388
static const uint32_t N2x1 = 2

Protected Member Functions

void printInputParameters ()
 Print input parameters.
void procEvent (Event &evt, Env &env)
void checkTypeImplementation ()


Detailed Description

CSPad2x2NDArrProducer produces the CSPad data ndarray<T,3> array for each event and add it to the event in psana framework.

1) get cspad configuration and data from the event, 2) produce the CSPad data ndarray<T,3> array, 3) save array in the event for further modules.

This class should not be used directly in the code of users modules. Instead, it should be added as a module in the psana.cfg file with appropriate parameters. Then, the produced Image2D object can be extracted from event and used in other modules.

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

See also:
PixCoords2x1, PixCoordsQuad, PixCoordsCSPad, CSPadImageGetTest
Version:
$Id: CSPad2x2NDArrProducer.h 8040 2014-04-19 01:00:36Z dubrovin@SLAC.STANFORD.EDU $
Author:
Mikhail S. Dubrovin

Definition at line 68 of file CSPad2x2NDArrProducer.h.


Member Typedef Documentation

typedef CSPadPixCoords::CSPad2x2ConfigPars CSPadPixCoords::CSPad2x2NDArrProducer::CONFIG

Definition at line 71 of file CSPad2x2NDArrProducer.h.


Constructor & Destructor Documentation

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

Definition at line 50 of file CSPad2x2NDArrProducer.cpp.

References checkTypeImplementation().

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

Definition at line 76 of file CSPad2x2NDArrProducer.cpp.


Member Function Documentation

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

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

Definition at line 137 of file CSPad2x2NDArrProducer.cpp.

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

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

Definition at line 103 of file CSPad2x2NDArrProducer.cpp.

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

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

Method which is called at the beginning of the run.

Definition at line 136 of file CSPad2x2NDArrProducer.cpp.

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

Definition at line 157 of file CSPad2x2NDArrProducer.cpp.

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

Referenced by CSPad2x2NDArrProducer().

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

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

Definition at line 138 of file CSPad2x2NDArrProducer.cpp.

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

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

Definition at line 140 of file CSPad2x2NDArrProducer.cpp.

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

Method which is called at the end of the run.

Definition at line 139 of file CSPad2x2NDArrProducer.cpp.

void CSPadPixCoords::CSPad2x2NDArrProducer::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 114 of file CSPad2x2NDArrProducer.cpp.

References procEvent(), and CalibPars::status().

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

Print input parameters.

Definition at line 84 of file CSPad2x2NDArrProducer.cpp.

Referenced by beginJob().

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

Definition at line 145 of file CSPad2x2NDArrProducer.cpp.

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

Referenced by event().


Member Data Documentation

const uint32_t CSPadPixCoords::CSPad2x2NDArrProducer::N2x1 = 2 [static]

Definition at line 75 of file CSPad2x2NDArrProducer.h.

const uint32_t CSPadPixCoords::CSPad2x2NDArrProducer::NCols2x1 = 388 [static]

Definition at line 74 of file CSPad2x2NDArrProducer.h.

const uint32_t CSPadPixCoords::CSPad2x2NDArrProducer::NRows2x1 = 185 [static]

Definition at line 73 of file CSPad2x2NDArrProducer.h.


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