9 #ifndef _PIXELDETECTORNEW_H_
10 #define _PIXELDETECTORNEW_H_
29 class FrameProcessorBase;
30 class PixelFinderBase;
54 return std::make_pair(columns,rows);
68 if (name.find(
"PnCCD") != string::npos)
69 shape = make_pair(1024,1024);
70 else if (name.find(
"CsPad2x2") != string::npos)
71 shape = make_pair(2*194,2*185);
72 else if (name.find(
"CsPad") != string::npos)
73 shape = make_pair(2*194,4*8*185);
74 else if (name.find(
"Opal1k") != string::npos)
75 shape = make_pair(1024,1024);
76 else if (name.find(
"Opal2k") != string::npos)
77 shape = make_pair(1920,1080);
78 else if (name.find(
"Opal4k") != string::npos)
79 shape = make_pair(2048,2048);
95 :
x(0),
y(0),z(0),nbrPixels(0)
206 const Frame& frame();
215 const pixels_t& pixels();
227 const hits_t&
hits();
249 std::tr1::shared_ptr<PixelFinderBase>
_find;
std::vector< Hit > hits_t
define the list of coalesced pixels
Event to store all LCLS Data.
float x
the x coordinate of hit
std::tr1::shared_ptr< CommonData > _common
container for data common for all detectors with this name
int32_t _detector
the detector within the device
std::vector< Pixel > pixels_t
std::tr1::shared_ptr< PixelFinderBase > _find
functor to extract the pixel list
Frame _frame
the frame of the detector
std::pair< size_t, size_t > shape_t
define a shape of an image columnsxrows
Average out the iShit status to get the avererage hits
bool _hitListCreated
flag whether hit list has been created already
std::string _name
the name of this detector
hits_t _hits
hits on the detector
Detector::shape_t shape() const
return the shape of the frame
std::tr1::shared_ptr< CoalescingBase > _coalesce
functor that will do the coalescing
std::vector< pixel_t > frame_t
a frame is a vector of pixels
uint16_t rows
how many rows
uint16_t columns
how many columns
contains base class for all pixel finders.
A Hit on a pixel detector.
std::tr1::shared_ptr< FrameProcessorBase > _process
functor to extract the frame from the CASSEvent
bool _frameExtracted
flag to tell whether the frame has been extracted already
An Advanced Pixel Detector.
float y
the x coordinate of hit
A Frame of an advance Pixel Detector.
size_t nbrPixels
number of pixels that this hit consists of
Detector::frame_t data
the frame data
contains container for simple pixel detector data
bool _pixellistCreated
flag to tell whether the pixel list has been created
void loadSettings(CASSSettings &s, CFDParameters &p, uint32_t &instrument, size_t &channelNbr)
implementation of loading settings for both CFD classes
uint64_t z
the value of the hit
Hit()
default constructor.
static Detector::shape_t shapeFromName(const std::string &name)
try to retrive the right shape of the detector from the name
pixels_t _pixels
the list of pixels