1 #ifndef TimePixXYReaderProcessor_h
2 #define TimePixXYReaderProcessor_h 1
6 #include "marlin/DataSourceProcessor.h"
18 class LCCollectionVec;
100 int getChipID(
const int& col,
const int& row )
const;
103 IMPL::LCCollectionVec*
readXYFile(
const std::string& fileName );
143 #endif // TimePixXYReaderProcessor_h
std::string _listName
Name of the file containing the list of data files.
Definition: TimePixXYReaderProcessor.h:108
int _runNr
Run number, set to 0 per default.
Definition: TimePixXYReaderProcessor.h:124
std::ifstream _inFile
Reads list of data files.
Definition: TimePixXYReaderProcessor.h:113
bool _noChipHeaders
set to true if frames have no header lines separating data of different chips, default is false ...
Definition: TimePixXYReaderProcessor.h:121
const int _nPixels
Number of pixels per row and column on each chip, fixed to 256.
Definition: TimePixXYReaderProcessor.h:131
std::string _dataDescription
Description of the data (optional).
Definition: TimePixXYReaderProcessor.h:111
int _nChipRow
Number of chips in each row.
Definition: TimePixXYReaderProcessor.h:126
int _charsAfterTimestamp
number of characters following the timestamp in Timepix frame file name
Definition: TimePixXYReaderProcessor.h:119
virtual void readDataSource(int numEvents)
Creates events with TrackerRawData collections from the TimePix raw data input files and calls all ac...
Definition: TimePixXYReaderProcessor.cc:173
int _minPixels
Minimum number of activated pixels in an event. Events with less pixels are skipped.
Definition: TimePixXYReaderProcessor.h:128
int _lengthOfTimestamp
number of digits of timestamp
Definition: TimePixXYReaderProcessor.h:118
std::string _subDetName
Name of the subdetector (optional).
Definition: TimePixXYReaderProcessor.h:110
int _nChipColumn
Number of chips in each row.
Definition: TimePixXYReaderProcessor.h:127
bool _enableTimeStamps
if true timestamp from Timepix frames will be stored in corresponding events
Definition: TimePixXYReaderProcessor.h:117
const int _nChipsPerBoard
Number of chips per board, fixed to 8.
Definition: TimePixXYReaderProcessor.h:133
std::vector< int > _chipIDs
Contains the IDs of the different chips.
Definition: TimePixXYReaderProcessor.h:115
std::string _detName
Name of the detector (optional).
Definition: TimePixXYReaderProcessor.h:109
bool _outputIsTransient
Transient collections are not written to disc.
Definition: TimePixXYReaderProcessor.h:136
int _evtNr
Number of the current event.
Definition: TimePixXYReaderProcessor.h:125
std::string _outputColName
Name of the output collection.
Definition: TimePixXYReaderProcessor.h:107
int _maxPixelsPerChip
maximum number of pixels read out per chip, depends on readout system, default is 4096 ...
Definition: TimePixXYReaderProcessor.h:122
Writes data to TrackerRawDataCollection named TimePixRawData.
Definition: TimePixXYReaderProcessor.h:76
const int _nBoardsPerFec
Number of boards per FEC, fixed to 4.
Definition: TimePixXYReaderProcessor.h:132
int getChipID(const int &col, const int &row) const
Returns the chip ID for a given x and y position of a pixel.
Definition: TimePixXYReaderProcessor.cc:465
unsigned _activatedPixels
Number of activated pixels in the current event.
Definition: TimePixXYReaderProcessor.h:129
bool _isFirstEvent
Before the first event a run header is added to the data stream.
Definition: TimePixXYReaderProcessor.h:135
IMPL::LCCollectionVec * readXYFile(const std::string &fileName)
Returns a collection with all (zero-suppressed) pixels in one event, read from a file of the format x...
Definition: TimePixXYReaderProcessor.cc:281
TimePixXYReaderProcessor()
C'tor.
Definition: TimePixXYReaderProcessor.cc:24