Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
SmearedTrack.cxx
1/*
2 * TrackSmeared.cxx
3 *
4 * Created on: 20 lis 2016
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "SmearedTrack.h"
10
11namespace Hal {
12 SmearedTrack::SmearedTrack() : McTrack(), fTrack(NULL) { fTrueMomenta = new TLorentzVector(); }
13
14 SmearedTrack::~SmearedTrack() {}
15
16 SmearedTrack::SmearedTrack(Track* track) : SmearedTrack() { fTrack = track; }
17
18 void SmearedTrack::CopyData(Track* other) {
19 McTrack::CopyData(other);
20 if (((SmearedTrack*) other)->fTrack) { fTrack = ((SmearedTrack*) other)->fTrack; }
21 *fTrueMomenta = *((SmearedTrack*) other)->fTrueMomenta;
22 }
23} // namespace Hal