9 #ifndef ERBeamDetTrackFinder_H 10 #define ERBeamDetTrackFinder_H 12 #include "TClonesArray.h" 16 #include "ERBeamDetTrack.h" 17 #include "ERBeamDetSetup.h" 49 interaction_volume_name_ = volume_name; depth_ratio_ = depth_ratio;
51 void SetTargetVolume(
const TString& volume_name) { interaction_volume_name_ = volume_name; }
55 virtual InitStatus
Init();
58 virtual void Exec(Option_t* opt);
65 TClonesArray* fBeamDetMWPCDigiX1 =
nullptr;
66 TClonesArray* fBeamDetMWPCDigiX2 =
nullptr;
67 TClonesArray* fBeamDetMWPCDigiY1 =
nullptr;
71 Int_t fMultipicityMWPCX1 = -1;
72 Int_t fMultipicityMWPCY1 = -1;
73 Int_t fMultipicityMWPCX2 = -1;
74 Int_t fMultipicityMWPCY2 = -1;
75 TRandom3* fRand =
nullptr;
76 TString interaction_volume_name_ =
"target";
77 float depth_ratio_ = 0.5;
83 Bool_t
IsCluster(TClonesArray* digiArray);
87 Double_t
CalcCoordinateAvg(
const TString& digi_branch_name,
const TClonesArray* digiArray,
virtual void Exec(Option_t *opt)
Defines the transformation actions for all input data (MWPCDigi) to output data (Track) for each even...
Double_t CalcCoordinateAvg(const TString &digi_branch_name, const TClonesArray *digiArray, char coordType)
Calculates an arithmetic average value in array of consequent wires.
virtual InitStatus Init()
Defines all input and output object colletions participates in track finding.
Class for reconsruction ion's coordinate and momentum direction on target.
ERBeamDetSetup * fBeamDetSetup
access to ERBeamDetSetup class instance
ERBeamDetTrackFinder()
Default constructor.
void SetInteractionPosition(const TString &volume_name, float depth_ratio=0.5)
Defines position of interaction - final position of beamdet track.
TClonesArray * fBeamDetMWPCDigiY2
input collection of MWPC Digi
Bool_t IsCluster(TClonesArray *digiArray)
Checks if the collection of digies contatains only neigbour wires.
virtual void Reset()
Resets all output data.
ERBeamDetTrack * AddTrack(Double_t xt, Double_t yt, Double_t zt, TVector3 v)
Adds a ERBeamDetTrack to the output Collection.
TClonesArray * fBeamDetTrack
output collection of tracks
Base abstract class for all tasks in er.
~ERBeamDetTrackFinder()=default
Destructor.