Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::ComplexEvent Class Reference
Inheritance diagram for Hal::ComplexEvent:
Hal::Event Hal::SmearedEvent HalDbg::ComplexEvent HalOTF::ComplexEvent

Public Member Functions

 ComplexEvent (Event *real=NULL, Event *img=NULL)
 
 ComplexEvent (const ComplexEvent &other)
 
EventInterfaceCreateInterface () const
 
virtual void Clear (Option_t *opt=" ")
 
virtual void Update (EventInterface *interface)
 
virtual Bool_t HasHiddenSettings () const
 
virtual Bool_t ExistInTree () const
 
virtual Bool_t IsCompatible (const Event *non_buffered) const
 
virtual Float_t GetFieldVal (Int_t fieldID) const
 
virtual TString GetFieldName (Int_t fieldID) const
 
virtual EFormatType GetFormatType () const
 
EventGetImgEvent () const
 
EventGetRealEvent () const
 
TrackGetNewImgTrack () const
 
TrackGetNewRealTrack () const
 
- Public Member Functions inherited from Hal::Event
 Event ()
 
 Event (const Event &other)
 
void Build (Event *event, const CompressionMap &map)
 
void Build (Event *event)
 
void Compress (const CompressionMap &map)
 
void SetEventID (Int_t newID)
 
void SetPhi (Double_t phi, Double_t phi_error=0)
 
virtual void RotateZ (Double_t phi)
 
virtual void Print (Option_t *opt="") const
 
TrackGetTrack (Int_t i) const
 
TrackAddTrack ()
 
Int_t GetEventID () const
 
Int_t GetTotalTrackNo () const
 
Int_t GetTotalV0No () const
 
Int_t GetMutliplicity () const
 
Double_t GetPhi () const
 
Double_t GetPhiError () const
 
TLorentzVector * GetVertex () const
 
virtual TString GetFormatName () const
 
TrackGetNewTrack () const
 
TClonesArray * GetV0HiddenInfo () const
 
virtual ~Event ()
 
virtual void CopyHiddenSettings (const Event *)
 
virtual void Boost (Double_t vx, Double_t vy, Double_t vz)
 
virtual EventGetNewEvent () const
 
virtual Int_t GetMaxExpectedLinks () const
 
virtual PackageReport () const
 

Protected Member Functions

void CalculateCompressionMapImg (const CompressionMap &map, ComplexEvent *event)
 
void ShallowCopyTracks (Event *event)
 
void ShallowCopyCompressTracks (Event *event, const CompressionMap &map)
 
void ShallowCopyEvent (Event *event)
 
 ComplexEvent (TString track_class, Event *real, Event *img)
 
- Protected Member Functions inherited from Hal::Event
Double_t CalculateCharge (Int_t pdg) const
 
void ResetHiddenInfoCounter ()
 
void CopyData (Event *event)
 
void CopyCompress (Event *event, const CompressionMap &map)
 
void Compress (TClonesArray *array, const CompressionMap &map)
 
Bool_t CheckBranches (Int_t n...) const
 
Bool_t CheckBranches (std::initializer_list< TString > list) const
 
 Event (TString track_class, TString v0_class="Hal::V0Track", TString xi_class="Hal::XiTrack")
 

Protected Attributes

EventfRealEvent
 
EventfImgEvent
 
- Protected Attributes inherited from Hal::Event
TDatabasePDG * fPDG
 
TClonesArray * fTracks
 
TClonesArray * fV0sHiddenInfo
 
TClonesArray * fXisHiddenInfo
 
TLorentzVector * fVertex
 
Double_t fPhi
 
Double_t fPhiError
 
Int_t fEventId
 
Int_t fTotalTracksNo
 
Int_t fMultiplicity
 

Static Protected Attributes

static CompressionMap fgCompressionMap
 

Detailed Description

Definition at line 25 of file ComplexEvent.h.

Constructor & Destructor Documentation

◆ ComplexEvent() [1/3]

Hal::ComplexEvent::ComplexEvent ( TString track_class,
Event * real,
Event * img )
protected

Definition at line 28 of file ComplexEvent.cxx.

◆ ComplexEvent() [2/3]

Hal::ComplexEvent::ComplexEvent ( Event * real = NULL,
Event * img = NULL )

Definition at line 26 of file ComplexEvent.cxx.

◆ ComplexEvent() [3/3]

Hal::ComplexEvent::ComplexEvent ( const ComplexEvent & other)

Definition at line 61 of file ComplexEvent.cxx.

◆ ~ComplexEvent()

Hal::ComplexEvent::~ComplexEvent ( )
virtual

Definition at line 86 of file ComplexEvent.cxx.

Member Function Documentation

◆ CalculateCompressionMapImg()

void Hal::ComplexEvent::CalculateCompressionMapImg ( const CompressionMap & map,
ComplexEvent * event )
protected

Definition at line 130 of file ComplexEvent.cxx.

◆ Clear()

void Hal::ComplexEvent::Clear ( Option_t * opt = " ")
virtual

used for clear (usually track array)

Parameters
optoption of Clear

Reimplemented from Hal::Event.

Reimplemented in Hal::SmearedEvent.

Definition at line 68 of file ComplexEvent.cxx.

◆ CreateInterface()

EventInterface * Hal::ComplexEvent::CreateInterface ( ) const
virtual

create interface - original structure of event, by allocating memory

Implements Hal::Event.

Definition at line 80 of file ComplexEvent.cxx.

◆ ExistInTree()

Bool_t Hal::ComplexEvent::ExistInTree ( ) const
virtual
Returns
true if needed branches exist in tree

Reimplemented from Hal::Event.

Definition at line 54 of file ComplexEvent.cxx.

◆ GetFieldName()

TString Hal::ComplexEvent::GetFieldName ( Int_t fieldID) const
virtual

return name of the track property by ID

Parameters
fieldID
Returns

Reimplemented from Hal::Event.

Definition at line 209 of file ComplexEvent.cxx.

◆ GetFieldVal()

Float_t Hal::ComplexEvent::GetFieldVal ( Int_t fieldID) const
virtual

return track property by ID, this should be positive number larger than 200 (for ID outside of framework)

Parameters
fieldID
Returns

Reimplemented from Hal::Event.

Definition at line 167 of file ComplexEvent.cxx.

◆ GetFormatType()

virtual EFormatType Hal::ComplexEvent::GetFormatType ( ) const
inlinevirtual
Returns
format type

Reimplemented from Hal::Event.

Definition at line 47 of file ComplexEvent.h.

◆ GetImgEvent()

Event * Hal::ComplexEvent::GetImgEvent ( ) const
inline

Definition at line 48 of file ComplexEvent.h.

◆ GetNewImgTrack()

Track * Hal::ComplexEvent::GetNewImgTrack ( ) const
inline

Definition at line 50 of file ComplexEvent.h.

◆ GetNewRealTrack()

Track * Hal::ComplexEvent::GetNewRealTrack ( ) const
inline

Definition at line 51 of file ComplexEvent.h.

◆ GetRealEvent()

Event * Hal::ComplexEvent::GetRealEvent ( ) const
inline

Definition at line 49 of file ComplexEvent.h.

◆ HasHiddenSettings()

Bool_t Hal::ComplexEvent::HasHiddenSettings ( ) const
virtual

this function should be reimplemented only if hidden settings are used - the settings that are used during calculation of event properties

Returns
true if this format have some hidden settings that doesn't depend on data stored in tree

Reimplemented from Hal::Event.

Definition at line 152 of file ComplexEvent.cxx.

◆ IsCompatible()

Bool_t Hal::ComplexEvent::IsCompatible ( const Event * non_buffered) const
virtual

check if this buffered and "non-buffered" format are compatible this function should be reimplemented only if user want to copy data from other format

Parameters
bufferedreturn true if formats are compatible
Returns

Reimplemented from Hal::Event.

Definition at line 158 of file ComplexEvent.cxx.

◆ ShallowCopyCompressTracks()

void Hal::ComplexEvent::ShallowCopyCompressTracks ( Event * event,
const CompressionMap & map )
protectedvirtual

copy only track data from "event" into this

Parameters
eventevent to copy
compressionmap

Reimplemented from Hal::Event.

Definition at line 109 of file ComplexEvent.cxx.

◆ ShallowCopyEvent()

void Hal::ComplexEvent::ShallowCopyEvent ( Event * event)
protectedvirtual

copy only event data from "event" into this

Parameters
eventevent to copy

Reimplemented from Hal::Event.

Definition at line 74 of file ComplexEvent.cxx.

◆ ShallowCopyTracks()

void Hal::ComplexEvent::ShallowCopyTracks ( Event * event)
protectedvirtual

copy only track data from "event" into this

Parameters
eventevent to copy

Reimplemented from Hal::Event.

Definition at line 91 of file ComplexEvent.cxx.

◆ Update()

void Hal::ComplexEvent::Update ( EventInterface * interface)
virtual

update fields by using "source event", it's better to implement this method due to improve performance. In such case you can use directly getters/setters from oryginal structure instead of calling virtual methods from EventInterface

Parameters
interface- interface to event stored in tree

Reimplemented from Hal::Event.

Reimplemented in Hal::SmearedEvent, HalDbg::ComplexEvent, and HalOTF::ComplexEvent.

Definition at line 31 of file ComplexEvent.cxx.

Member Data Documentation

◆ fgCompressionMap

CompressionMap Hal::ComplexEvent::fgCompressionMap
staticprotected

Definition at line 27 of file ComplexEvent.h.

◆ fImgEvent

Event* Hal::ComplexEvent::fImgEvent
protected

Definition at line 29 of file ComplexEvent.h.

◆ fRealEvent

Event* Hal::ComplexEvent::fRealEvent
protected

Definition at line 28 of file ComplexEvent.h.


The documentation for this class was generated from the following files: