Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
TrackStartPositionCut.cxx
1/*
2 * TrackStartPositionCut.cxx
3 *
4 * Created on: 4 lip 2017
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "TrackStartPositionCut.h"
10
11#include "McTrack.h"
12#include "DataFormatManager.h"
13
14namespace Hal{
15
16TrackStartPositionCut::TrackStartPositionCut() : TrackMCCut(4) {
17 SetUnitName("StartX [cm]", 0);
18 SetUnitName("StartY [cm]", 1);
19 SetUnitName("StartZ [cm]", 2);
20 SetUnitName("StartY [ns]", 3);
21}
22
23Bool_t TrackStartPositionCut::Pass(Track* track) {
24 McTrack* mc = (McTrack*) track;
25 SetValue(mc->GetStartPosition().X(), 0);
26 SetValue(mc->GetStartPosition().Y(), 1);
27 SetValue(mc->GetStartPosition().Z(), 2);
28 SetValue(mc->GetStartPosition().T(), 3);
29 return Validate();
30}
31
32TrackStartPositionCut::~TrackStartPositionCut() {}
33}
const TLorentzVector & GetStartPosition() const
Definition McTrack.h:40