CSPadPixCoords::CSPad2x2NDArrReshape Class Reference
[CSPadPixCoords package]

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

#include <CSPad2x2NDArrReshape.h>

List of all members.

Public Member Functions

 CSPad2x2NDArrReshape (const std::string &name)
virtual ~CSPad2x2NDArrReshape ()
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.
bool procEvent (Event &evt)
bool procCalib (Env &env)
void put_keys_in_vectors ()
void print_in_out_keys ()


Detailed Description

CSPad2x2NDArrReshape 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: CSPad2x2NDArrReshape.h 9169 2014-10-28 00:37:53Z dubrovin@SLAC.STANFORD.EDU $
Author:
Mikhail S. Dubrovin

Definition at line 76 of file CSPad2x2NDArrReshape.h.


Constructor & Destructor Documentation

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

Definition at line 51 of file CSPad2x2NDArrReshape.cpp.

References put_keys_in_vectors().

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

Definition at line 75 of file CSPad2x2NDArrReshape.cpp.


Member Function Documentation

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

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

Definition at line 131 of file CSPad2x2NDArrReshape.cpp.

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

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

Definition at line 99 of file CSPad2x2NDArrReshape.cpp.

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

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

Method which is called at the beginning of the run.

Definition at line 124 of file CSPad2x2NDArrReshape.cpp.

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

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

Definition at line 132 of file CSPad2x2NDArrReshape.cpp.

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

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

Definition at line 134 of file CSPad2x2NDArrReshape.cpp.

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

Method which is called at the end of the run.

Definition at line 133 of file CSPad2x2NDArrReshape.cpp.

void CSPadPixCoords::CSPad2x2NDArrReshape::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 111 of file CSPad2x2NDArrReshape.cpp.

References procCalib(), and procEvent().

void CSPadPixCoords::CSPad2x2NDArrReshape::print_in_out_keys (  )  [protected]

Definition at line 197 of file CSPad2x2NDArrReshape.cpp.

Referenced by beginJob().

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

Print input parameters.

Definition at line 83 of file CSPad2x2NDArrReshape.cpp.

Referenced by beginJob().

bool CSPadPixCoords::CSPad2x2NDArrReshape::procCalib ( Env &  env  )  [protected]

Definition at line 238 of file CSPad2x2NDArrReshape.cpp.

Referenced by event().

bool CSPadPixCoords::CSPad2x2NDArrReshape::procEvent ( Event &  evt  )  [protected]

Definition at line 215 of file CSPad2x2NDArrReshape.cpp.

Referenced by event().

void CSPadPixCoords::CSPad2x2NDArrReshape::put_keys_in_vectors (  )  [protected]

Definition at line 139 of file CSPad2x2NDArrReshape.cpp.

Referenced by CSPad2x2NDArrReshape().


Member Data Documentation

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

Definition at line 83 of file CSPad2x2NDArrReshape.h.

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

Definition at line 82 of file CSPad2x2NDArrReshape.h.

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

Definition at line 81 of file CSPad2x2NDArrReshape.h.


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