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

a radius position condition More...

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

Public Member Functions

virtual ~RadCond ()
 
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 > _center
 the center of the radius More...
 
double _maxradius
 the maximum radius of the condtion 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 radius position condition

checks whether the position of the detectorhit on the detector is in a given radius around a predefined center.

User definable Parameters:

AcqirisDetectors/%detectorname%/%particlename%/RadiusCondition/{CenterX|CenterY}
The position of the center of the radius to check for in mm Default is 0|0.

AcqirisDetectors/%detectorname%/%particlename%/RadiusCondition/{MaximumRadius}
The maximum radius the position is checked for in mm. Default is 100.

Author
Lutz Foucar

Definition at line 109 of file particle.cpp.

Constructor & Destructor Documentation

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

Definition at line 112 of file particle.cpp.

Member Function Documentation

void cass::ACQIRIS::RadCond::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 122 of file particle.cpp.

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

bool cass::ACQIRIS::RadCond::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 113 of file particle.cpp.

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

Member Data Documentation

std::pair<double,double> cass::ACQIRIS::RadCond::_center
private

the center of the radius

Definition at line 134 of file particle.cpp.

double cass::ACQIRIS::RadCond::_maxradius
private

the maximum radius of the condtion

Definition at line 137 of file particle.cpp.


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