Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
McEvent.h
1/*
2 * MCEvent.h
3 *
4 * Created on: 04-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HALMCEVENT_H_
10#define HALMCEVENT_H_
11
12#include "Event.h"
16namespace Hal {
17 class McEvent : public Event {
18 protected:
22 Double_t fB;
23 virtual void ShallowCopyEvent(Event* event);
24 virtual void ShallowCopyTracks(Event* event);
25 McEvent(TString track_classname, TString v0_class = "Hal::V0Track", TString xi_class = "Hal::XiTrack");
26
27 public:
28 McEvent();
29 McEvent(const McEvent& other);
30 virtual void Update(EventInterface* interface);
31 inline Double_t GetImpactParameter() const { return fB; };
32 virtual EFormatType GetFormatType() const { return EFormatType::kSim; };
33 inline McEvent* GetMC() const { return const_cast<McEvent*>(this); };
34 virtual Float_t GetFieldVal(Int_t fieldID) const;
35 virtual TString GetFieldName(Int_t fieldID) const;
36 virtual ~McEvent();
37 ClassDef(McEvent, 1)
38 };
39} // namespace Hal
40
41#endif /* HALMCEVENT_H_ */
virtual void ShallowCopyTracks(Event *event)
Definition McEvent.cxx:29
virtual Float_t GetFieldVal(Int_t fieldID) const
Definition McEvent.cxx:59
virtual EFormatType GetFormatType() const
Definition McEvent.h:32
Double_t fB
Definition McEvent.h:22
virtual void Update(EventInterface *interface)
Definition McEvent.cxx:43
virtual TString GetFieldName(Int_t fieldID) const
Definition McEvent.cxx:66
virtual void ShallowCopyEvent(Event *event)
Definition McEvent.cxx:20