er
dev
|
Class for reconsruction ion's coordinate and momentum direction on target. More...
#include <ERBeamDetTrackFinder.h>
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 | |
ERBeamDetSetup * | fBeamDetSetup = 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 | |
ERBeamDetTrack * | AddTrack (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. | |
Class for reconsruction ion's coordinate and momentum direction on target.
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.
ERBeamDetTrackFinder::ERBeamDetTrackFinder | ( | Int_t | verbose | ) |
|
private |
Calculates an arithmetic average value in array of consequent wires.
digiArray | collection of digies |
coordType | type of coordinate (can take values 'X', 'Y' or 'Z') |
Definition at line 74 of file ERBeamDetTrackFinder.cxx.
|
private |
Checks if the collection of digies contatains only neigbour wires.
digiArray | collection of digies. |
Definition at line 60 of file ERBeamDetTrackFinder.cxx.
|
inline |
Defines position of interaction - final position of beamdet track.
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.