Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
OTFData.cxx
1/*
2 * OTFData.cxx
3 *
4 * Created on: 28 maj 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "OTFData.h"
10
11void OTF::RecoEvent::AddTrack(const RecoTrack& track) {
12 Int_t pos = fTracks->GetEntriesFast();
13 RecoTrack* last = (RecoTrack*) fTracks->ConstructedAt(pos);
14 *last = track;
15}
16
17void OTF::McEvent::AddTrack(const McTrack& track) {
18 Int_t pos = fTracks->GetEntriesFast();
19 McTrack* last = (McTrack*) fTracks->ConstructedAt(pos);
20 *last = track;
21}