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

Simple detectorhit creator. More...

#include <delayline_non_sorting.h>

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

Public Member Functions

 DelaylineNonSorting ()
 constructor More...
 
detectorHits_toperator() (detectorHits_t &hits)
 retrieve detector hits from signals More...
 
void loadSettings (CASSSettings &, DelaylineDetector &)
 load the settings of the analyzer More...
 
- Public Member Functions inherited from cass::ACQIRIS::DetectorAnalyzerBackend
virtual ~DetectorAnalyzerBackend ()
 virtual destructor More...
 

Private Attributes

std::pair< std::pair< SignalProducer *, SignalProducer * >, std::pair< SignalProducer *, SignalProducer * > > _layerCombination
 the layer combination More...
 
std::tr1::shared_ptr< PositionCalculator_poscalc
 the calculator to calc the position for the correlated wireend signals More...
 
std::pair< double, double > _sf
 the scalefactor for the two layers (convert ns -> mm) More...
 

Additional Inherited Members

- Public Types inherited from cass::ACQIRIS::DetectorAnalyzerBackend
typedef std::tr1::shared_ptr< DetectorAnalyzerBackendshared_pointer
 typedef this as a shared pointer More...
 
- Static Public Member Functions inherited from cass::ACQIRIS::DetectorAnalyzerBackend
static shared_pointer instance (const DetectorAnalyzerType &type)
 create an instance of the right analyzer type More...
 

Detailed Description

Simple detectorhit creator.

this class will just go through the anodewire signals and create positions without any checks

User definable Parameters:

.../NonSorting/{LayersToUse}
Layers that should be used for sorting. Default is 0. Possible choises are:

  • 0: Layers X and Y (Quad Anode)
  • 1: Layers U and V (Hex Anode)
  • 2: Layers U and W (Hex Anode)
  • 3: Layers V and W (Hex Anode)

.../NonSorting/{ScalefactorFirstLayer|ScalefactorSecondLayer}
the scalefactors that convert ns to mm for the two layers. Default is 0.4 | 0.4

Author
Lutz Foucar

Definition at line 42 of file delayline_non_sorting.h.

Constructor & Destructor Documentation

DelaylineNonSorting::DelaylineNonSorting ( )

constructor

Definition at line 21 of file delayline_non_sorting.cpp.

Member Function Documentation

void DelaylineNonSorting::loadSettings ( CASSSettings s,
DelaylineDetector d 
)
virtual

load the settings of the analyzer

load where to find the signals that we need to sort

Parameters
sreference to the CASSSettings object
dthe detector object that we the analyzer belongs to

Implements cass::ACQIRIS::DetectorAnalyzerBackend.

Definition at line 87 of file delayline_non_sorting.cpp.

References _layerCombination, _poscalc, _sf, QSettings::beginGroup(), QSettings::endGroup(), cass::ACQIRIS::Hex, cass::ACQIRIS::DelaylineDetector::layers(), cass::ACQIRIS::Quad, and QSettings::value().

detectorHits_t & DelaylineNonSorting::operator() ( detectorHits_t hits)
virtual

retrieve detector hits from signals

goes through the anodewire signals and calculates positions without any checks.

Returns
reference to the container containing the found hits
Parameters
[out]hitsthe container where the found hits will go

extract the signal arrays from the signal producers

extract the iterators from the arrays

find out which array is the shortest and assign the iterators of that array to the loop variables

go linear through all hits and create detectorhits for each entry in the array

Implements cass::ACQIRIS::DetectorAnalyzerBackend.

Definition at line 25 of file delayline_non_sorting.cpp.

References _layerCombination, _poscalc, _sf, hit, hits, cass::ACQIRIS::NbrDetectorHitDefinitions, cass::ACQIRIS::t, cass::ACQIRIS::time, cass::ACQIRIS::x, and cass::ACQIRIS::y.

Member Data Documentation

std::pair<std::pair<SignalProducer *,SignalProducer *> , std::pair<SignalProducer *,SignalProducer *> > cass::ACQIRIS::DelaylineNonSorting::_layerCombination
private

the layer combination

Definition at line 71 of file delayline_non_sorting.h.

Referenced by loadSettings(), and operator()().

std::tr1::shared_ptr<PositionCalculator> cass::ACQIRIS::DelaylineNonSorting::_poscalc
private

the calculator to calc the position for the correlated wireend signals

Definition at line 74 of file delayline_non_sorting.h.

Referenced by loadSettings(), and operator()().

std::pair<double,double> cass::ACQIRIS::DelaylineNonSorting::_sf
private

the scalefactor for the two layers (convert ns -> mm)

Definition at line 77 of file delayline_non_sorting.h.

Referenced by loadSettings(), and operator()().


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