Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
VirtualEvent.h
1
/*
2
* EventVirtual.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 HALVIRTUALEVENT_H_
10
#define HALVIRTUALEVENT_H_
11
12
#include "Event.h"
13
#include "EventInterface.h"
14
#include "VirtualTrack.h"
15
16
#include <TClonesArray.h>
17
#include <TString.h>
18
19
namespace
Hal
{
20
21
22
class
VirtualEventInterface
:
public
EventInterface
{
23
protected
:
24
virtual
void
ConnectToTreeInternal(eMode
/*mode*/
) {};
25
26
public
:
27
VirtualEventInterface
() {};
28
virtual
~VirtualEventInterface
() {};
29
ClassDef(
VirtualEventInterface
, 1)
30
};
31
32
class
VirtualEvent
:
public
Event
{
33
Event
* fVirtualEvent;
34
35
public
:
36
VirtualEvent
();
37
VirtualEvent
(
const
VirtualEvent
& other);
38
Hal::EventInterface
*
CreateInterface
()
const
{
return
new
VirtualEventInterface
(); };
39
void
Update
(
Hal::EventInterface
* interface);
40
void
RegisterInTree(TString prefix, Bool_t save = kTRUE);
41
Bool_t
ExistInTree
()
const
;
42
Track
* GetTrackSafely(Int_t i) {
return
(
Track
*) fTracks->ConstructedAt(i); };
43
Event
*
GetNewEvent
()
const
{
return
new
VirtualEvent
(*
this
); };
44
Track
* GetNewTrack()
const
{
return
new
VirtualTrack
(); };
45
virtual
~VirtualEvent();
46
ClassDef(VirtualEvent, 1)
47
};
48
}
// namespace Hal
49
#endif
/* HALVIRTUALEVENT_H_ */
Hal::EventInterface
Definition
EventInterface.h:16
Hal::Event
Definition
Event.h:50
Hal::Track
Definition
Track.h:29
Hal::VirtualEventInterface
Definition
VirtualEvent.h:22
Hal::VirtualEvent
Definition
VirtualEvent.h:32
Hal::VirtualEvent::ExistInTree
Bool_t ExistInTree() const
Definition
VirtualEvent.cxx:38
Hal::VirtualEvent::GetNewEvent
Event * GetNewEvent() const
Definition
VirtualEvent.h:43
Hal::VirtualEvent::Update
void Update(Hal::EventInterface *interface)
Definition
VirtualEvent.cxx:17
Hal::VirtualEvent::CreateInterface
Hal::EventInterface * CreateInterface() const
Definition
VirtualEvent.h:38
Hal::VirtualTrack
Definition
VirtualTrack.h:13
Hal
Definition
EventAnaChain.cxx:28
data
dataformat
VirtualEvent.h
Generated on Wed Oct 23 2024 15:07:51 for Heavy ion Analysis Libriares by
1.12.0