lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
detector::DataSourceSimulator Class Reference

File-based data source for tests: detector() gets a Detector from getDetector() and events() iterates over array files in a directory. More...

#include <DataSourceSimulator.hh>

Public Member Functions

 DataSourceSimulator (const char *dirname="/reg/neh/home/dubrovin/LCLS/con-detector/work/", const char *pattern=0)
 Create the event iterator over dirname and pattern.
 
virtual ~DataSourceSimulator ()
 Destructor; does nothing.
 
Detector * detector (const std::string &detname)
 Return getDetector(detname), which gives NULL for names that are not area detectors.
 
EventIteratorSimulator & events ()
 Return the event iterator.
 
 DataSourceSimulator (const DataSourceSimulator &)=delete
 Copy construction is disabled.
 
DataSourceSimulator & operator= (DataSourceSimulator const &)=delete
 Copy assignment is disabled.
 

Detailed Description

File-based data source for tests: detector() gets a Detector from getDetector() and events() iterates over array files in a directory.

Constructor & Destructor Documentation

◆ DataSourceSimulator() [1/2]

detector::DataSourceSimulator::DataSourceSimulator ( const char *  dirname = "/reg/neh/home/dubrovin/LCLS/con-detector/work/",
const char *  pattern = 0 
)
inline

Create the event iterator over dirname and pattern.

The default dirname is a hard-coded /reg/neh/home/dubrovin path.

◆ ~DataSourceSimulator()

virtual detector::DataSourceSimulator::~DataSourceSimulator ( )
inlinevirtual

Destructor; does nothing.

◆ DataSourceSimulator() [2/2]

detector::DataSourceSimulator::DataSourceSimulator ( const DataSourceSimulator &  )
delete

Copy construction is disabled.

Member Function Documentation

◆ detector()

Detector * detector::DataSourceSimulator::detector ( const std::string &  detname)
inline

Return getDetector(detname), which gives NULL for names that are not area detectors.

◆ events()

EventIteratorSimulator & detector::DataSourceSimulator::events ( )
inline

Return the event iterator.

◆ operator=()

DataSourceSimulator & detector::DataSourceSimulator::operator= ( DataSourceSimulator const &  )
delete

Copy assignment is disabled.


The documentation for this class was generated from the following file: