er  dev
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
ERBeamDetTrackFinder Class Reference

Class for reconsruction ion's coordinate and momentum direction on target. More...

#include <ERBeamDetTrackFinder.h>

Inheritance diagram for ERBeamDetTrackFinder:
Inheritance graph
[legend]
Collaboration diagram for ERBeamDetTrackFinder:
Collaboration graph
[legend]

Public Member Functions

 ERBeamDetTrackFinder ()
 Default constructor.
 
 ERBeamDetTrackFinder (Int_t verbose)
 Constructor. More...
 
 ~ERBeamDetTrackFinder ()=default
 Destructor.
 
void SetInteractionPosition (const TString &volume_name, float depth_ratio=0.5)
 Defines position of interaction - final position of beamdet track. More...
 
void SetTargetVolume (const TString &volume_name)
 
virtual InitStatus Init ()
 Defines all input and output object colletions participates in track finding.
 
virtual void Exec (Option_t *opt)
 Defines the transformation actions for all input data (MWPCDigi) to output data (Track) for each event.
 
virtual void Reset ()
 Resets all output data.
 
- Public Member Functions inherited from ERTask
 ERTask (TString name)
 
 ERTask (TString name, Int_t verbose)
 Constructor. More...
 
 ~ERTask ()
 
virtual void Finish ()
 

Protected Attributes

ERBeamDetSetupfBeamDetSetup = nullptr
 access to ERBeamDetSetup class instance
 
TClonesArray * fBeamDetMWPCDigiX1 = nullptr
 
TClonesArray * fBeamDetMWPCDigiX2 = nullptr
 
TClonesArray * fBeamDetMWPCDigiY1 = nullptr
 
TClonesArray * fBeamDetMWPCDigiY2 = nullptr
 input collection of MWPC Digi
 
TClonesArray * fBeamDetTrack = nullptr
 output collection of tracks
 
Int_t fMultipicityMWPCX1 = -1
 
Int_t fMultipicityMWPCY1 = -1
 
Int_t fMultipicityMWPCX2 = -1
 
Int_t fMultipicityMWPCY2 = -1
 
TRandom3 * fRand = nullptr
 
TString interaction_volume_name_ = "target"
 
float depth_ratio_ = 0.5
 
- Protected Attributes inherited from ERTask
FairRun * fRun
 Pointer to run manager object.
 
std::vector< TString > fAvailibleRunManagers
 Run managers that are availible for this task.
 

Private Member Functions

ERBeamDetTrackAddTrack (Double_t xt, Double_t yt, Double_t zt, TVector3 v)
 Adds a ERBeamDetTrack to the output Collection.
 
Bool_t IsCluster (TClonesArray *digiArray)
 Checks if the collection of digies contatains only neigbour wires. More...
 
Double_t CalcCoordinateAvg (const TString &digi_branch_name, const TClonesArray *digiArray, char coordType)
 Calculates an arithmetic average value in array of consequent wires. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ERTask
InitStatus CheckRunManager ()
 Check is instance of run manager availible for this task.
 
virtual void SetParContainers ()
 Initializes runtime database for getting parameters from .par file.
 

Detailed Description

Class for reconsruction ion's coordinate and momentum direction on target.

Author
M.Kozlov kozlo.nosp@m.v.m..nosp@m.your@.nosp@m.yand.nosp@m.ex.ru
Version
1.0

The ERBeamDetTrackFinder reconsructs the ion coordinate and momentum direction on the target by means of the digitization output data and ERBeamDetSetup class. It is assumed that we have events with a multiplicity more than one after the digitization stage in each array of wires. In this way, we can calculate an arithmetic average for each cordinate in MWPC stations where all activated wires are neigbours between each other. Through number of wires we get coordinates ( \(X_1, Y_1, X_2, Y_2\)) for each wire by means of global geo manager in ERBeamDetSetup. After that calculate arithmetic averages ( \(<X_1>, <Y_1>, <X_2>, <Y_2>\)) . Ion track approximated by straight line passing through ( \(<X_1>,<Y_1>\)) and ( \(<X_2>, <Y_2>\)) points.

Definition at line 34 of file ERBeamDetTrackFinder.h.

Constructor & Destructor Documentation

ERBeamDetTrackFinder::ERBeamDetTrackFinder ( Int_t  verbose)

Constructor.

Parameters
verbositylevel

Definition at line 31 of file ERBeamDetTrackFinder.cxx.

Member Function Documentation

Double_t ERBeamDetTrackFinder::CalcCoordinateAvg ( const TString &  digi_branch_name,
const TClonesArray *  digiArray,
char  coordType 
)
private

Calculates an arithmetic average value in array of consequent wires.

Parameters
digiArraycollection of digies
coordTypetype of coordinate (can take values 'X', 'Y' or 'Z')

Definition at line 74 of file ERBeamDetTrackFinder.cxx.

Bool_t ERBeamDetTrackFinder::IsCluster ( TClonesArray *  digiArray)
private

Checks if the collection of digies contatains only neigbour wires.

Parameters
digiArraycollection of digies.

Definition at line 60 of file ERBeamDetTrackFinder.cxx.

void ERBeamDetTrackFinder::SetInteractionPosition ( const TString &  volume_name,
float  depth_ratio = 0.5 
)
inline

Defines position of interaction - final position of beamdet track.

Parameters
volume_name- name of volume to propagate track for.
depth_ration- ratio of track range in interaction volume to max track range in this volume with track direction.

Definition at line 48 of file ERBeamDetTrackFinder.h.


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