CFEL - ASG Software Suite
2.5.0
CASS
|
a radius position condition More...
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... | |
![]() | |
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 | |
![]() | |
enum | ConditionType { tofcond, radcond, rectcond, tofradcond, tofrectcond } |
typedef defining the types of available conditions More... | |
![]() | |
static tr1::shared_ptr< IsParticleHit > | instance (const ConditionType &type) |
create an instance of the chosen class More... | |
a radius position condition
checks whether the position of the detectorhit on the detector is in a given radius around a predefined center.
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.
Definition at line 109 of file particle.cpp.
|
inlinevirtual |
Definition at line 112 of file particle.cpp.
|
inlinevirtual |
read the parameters of the condition from the .ini file
s | the 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().
|
inlinevirtual |
the comparison
dethit | the 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.
|
private |
the center of the radius
Definition at line 134 of file particle.cpp.
|
private |
the maximum radius of the condtion
Definition at line 137 of file particle.cpp.