CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
cass::ACQIRIS::RectCond Class Reference

a simple position condition More...

+ Inheritance diagram for cass::ACQIRIS::RectCond:
+ Collaboration diagram for cass::ACQIRIS::RectCond:

Public Member Functions

virtual ~RectCond ()
 
bool operator() (const detectorHit_t &dethit) const
 the comparison More...
 
void loadSettings (CASSSettings &s)
 read the parameters of the condition from the .ini file More...
 
- Public Member Functions inherited from cass::ACQIRIS::IsParticleHit
virtual ~IsParticleHit ()
 virtual destructor since this is a base class More...
 

Private Attributes

std::pair< double, double > _xrange
 the range in x More...
 
std::pair< double, double > _yrange
 the range in y More...
 

Additional Inherited Members

- Public Types inherited from cass::ACQIRIS::IsParticleHit
enum  ConditionType {
  tofcond, radcond, rectcond, tofradcond,
  tofrectcond
}
 typedef defining the types of available conditions More...
 
- Static Public Member Functions inherited from cass::ACQIRIS::IsParticleHit
static tr1::shared_ptr< IsParticleHitinstance (const ConditionType &type)
 create an instance of the chosen class More...
 

Detailed Description

a simple position condition

checks whether the detector hit falls in a simple rectangular condition

User definable Parameters:

AcqirisDetectors/%detectorname%/%particlename%/SimplePositionCondition/{XLow|XHigh}
The range in the x-axis to check in mm. Default is -10|10.

AcqirisDetectors/%detectorname%/%particlename%/SimplePositionCondition/{YLow|YHigh}
The range in the y-axis to check in mm. Default is -10|10.

Author
Lutz Foucar

Definition at line 151 of file particle.cpp.

Constructor & Destructor Documentation

virtual cass::ACQIRIS::RectCond::~RectCond ( )
inlinevirtual

Definition at line 154 of file particle.cpp.

Member Function Documentation

void cass::ACQIRIS::RectCond::loadSettings ( CASSSettings s)
inlinevirtual

read the parameters of the condition from the .ini file

Parameters
sthe CASSSettings object to read the information from

Implements cass::ACQIRIS::IsParticleHit.

Definition at line 164 of file particle.cpp.

References QSettings::beginGroup(), QSettings::endGroup(), and QSettings::value().

bool cass::ACQIRIS::RectCond::operator() ( const detectorHit_t dethit) const
inlinevirtual

the comparison

Returns
true when dethit fullfilles the condition
Parameters
dethitthe detector hit to check for the condition

Implements cass::ACQIRIS::IsParticleHit.

Definition at line 155 of file particle.cpp.

References cass::ACQIRIS::x, and cass::ACQIRIS::y.

Member Data Documentation

std::pair<double,double> cass::ACQIRIS::RectCond::_xrange
private

the range in x

Definition at line 177 of file particle.cpp.

std::pair<double,double> cass::ACQIRIS::RectCond::_yrange
private

the range in y

Definition at line 180 of file particle.cpp.


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