12#include "DataFormat.h"
14#include <TLorentzVector.h>
18 ExpEvent::ExpEvent() : Event(), fRunInfoId(0), fEventTrigger(0), fNTofTracks(0) {
19 fVertexError =
new TLorentzVector();
20 fMagField =
new TVector3;
23 ExpEvent::ExpEvent(
const ExpEvent& other) : Event(other) {
24 fRunInfoId = other.fRunInfoId;
25 fEventTrigger = other.fEventTrigger;
26 fVertexError =
new TLorentzVector(*other.fVertexError);
27 fMagField =
new TVector3(*other.fMagField);
28 fNTofTracks = other.fNTofTracks;
31 ExpEvent::ExpEvent(TString track_class, TString v0_class, TString xi_class) :
32 Event(track_class, v0_class, xi_class), fRunInfoId(0), fEventTrigger(0), fNTofTracks(0) {
33 fVertexError =
new TLorentzVector();
34 fMagField =
new TVector3;
37 void ExpEvent::ShallowCopyEvent(
Event* event) {
38 Event::ShallowCopyEvent(event);
40 fRunInfoId = ev->fRunInfoId;
41 fEventTrigger = ev->fEventTrigger;
42 *fVertexError = *ev->fVertexError;
43 *fMagField = *ev->fMagField;
47 Float_t ExpEvent::GetFieldVal(Int_t fieldID)
const {
49 case DataFieldID::Event::EExp::kTofTracksNo:
return fNTofTracks;
break;
50 default:
return Event::GetFieldVal(fieldID);
break;
54 TString ExpEvent::GetFieldName(Int_t fieldID)
const {
56 case DataFieldID::Event::EExp::kTofTracksNo:
return "N_{TOF tracks} [N]";
break;
57 default:
return Event::GetFieldName(fieldID);
break;
61 ExpEvent::~ExpEvent() {
68 ExpEventHelix::ExpEventHelix(TString track_class, TString v0_class) : ExpEvent(track_class, v0_class) {}
70 ExpEventHelix::ExpEventHelix() : ExpEvent() {}
72 ExpEventHelix::ExpEventHelix(
const ExpEventHelix& other) : ExpEvent(other) {}
74 ExpEventHelix::~ExpEventHelix() {}
Int_t GetNTofTracks() const