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
14
namespace
Hal
{
15
16
TrackStartPositionCut::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
23
Bool_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
32
TrackStartPositionCut::~TrackStartPositionCut() {}
33
}
Hal::McTrack
Definition
McTrack.h:17
Hal::McTrack::GetStartPosition
const TLorentzVector & GetStartPosition() const
Definition
McTrack.h:40
Hal::Track
Definition
Track.h:29
Hal
Definition
EventAnaChain.cxx:28
cuts
trackcuts
mc
TrackStartPositionCut.cxx
Generated on Wed Oct 23 2024 15:07:51 for Heavy ion Analysis Libriares by
1.12.0