CFEL - ASG Software Suite
2.5.0
CASS
|
a simple position condition More...
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... | |
![]() | |
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 | |
![]() | |
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 simple position condition
checks whether the detector hit falls in a simple rectangular condition
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.
Definition at line 151 of file particle.cpp.
|
inlinevirtual |
Definition at line 154 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 164 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 155 of file particle.cpp.
References cass::ACQIRIS::x, and cass::ACQIRIS::y.
|
private |
the range in x
Definition at line 177 of file particle.cpp.
|
private |
the range in y
Definition at line 180 of file particle.cpp.