CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition > Class Template Reference

a combination of conditions More...

+ Inheritance diagram for cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >:
+ Collaboration diagram for cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >:

Public Member Functions

 CombineConditions ()
 
virtual ~CombineConditions ()
 
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< IsParticleHit *, IsParticleHit * > _conditions
 

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

template<class FirstCondition, class SecondCondition>
class cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >

a combination of conditions

this class combines two of the IsParticleHit conditions

User definable Parameters:
see TofCond, RadCond and RectCond for possible settings
Template Parameters
FistConditionclass that defines the first condition
SecondConditionclass that defines the second condition
Author
Lutz Foucar

Definition at line 195 of file particle.cpp.

Constructor & Destructor Documentation

template<class FirstCondition , class SecondCondition >
cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >::CombineConditions ( )
inline

Definition at line 198 of file particle.cpp.

template<class FirstCondition , class SecondCondition >
virtual cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >::~CombineConditions ( )
inlinevirtual

Definition at line 202 of file particle.cpp.

Member Function Documentation

template<class FirstCondition , class SecondCondition >
void cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >::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 211 of file particle.cpp.

template<class FirstCondition , class SecondCondition >
bool cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >::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 204 of file particle.cpp.

Member Data Documentation

template<class FirstCondition , class SecondCondition >
std::pair<IsParticleHit*,IsParticleHit*> cass::ACQIRIS::CombineConditions< FirstCondition, SecondCondition >::_conditions
private

Definition at line 218 of file particle.cpp.


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