BmnRoot
Loading...
Searching...
No Matches
BmnEvent Class Reference

Class characterising one event by a collection of links (indices) to data objects,. More...

#include <BmnEvent.h>

Inheritance diagram for BmnEvent:
[legend]
Collaboration diagram for BmnEvent:
[legend]

Public Member Functions

 BmnEvent ()
 
 BmnEvent (Int_t number, Double_t startTime=0., Double_t endTime=0.)
 
virtual ~BmnEvent ()
 
void AddData (DataType type, UInt_t index)
 
void AddSsdTrack (UInt_t index)
 
UInt_t GetIndex (DataType type, UInt_t iData)
 
BmnMatchGetMatch () const
 
Int_t GetNofData () const
 
Int_t GetNofData (DataType type) const
 
Int_t GetNofSsdTracks () const
 
Int_t GetNumber () const
 
Int_t GetSsdTrackIndex (Int_t iTrack)
 
Double_t GetEndTime () const
 
Double_t GetStartTime () const
 
void SetEndTime (Double_t endTime)
 
void SetMatch (BmnMatch *match)
 
void SetStartTime (Double_t startTime)
 
void SetSsdTracks (std::vector< UInt_t > &indexVector)
 Sets the index array for SSD tracks. Old content will be overwritten.
 
void SetVertex (Double_t x, Double_t y, Double_t z, Double_t chi2, Int_t ndf, Int_t nTracks, const TMatrixFSym &covMat)
 
std::string ToString () const
 
BmnVertexGetVertex ()
 

Detailed Description

Class characterising one event by a collection of links (indices) to data objects,.

Version
1.0

Definition at line 26 of file BmnEvent.h.

Constructor & Destructor Documentation

◆ BmnEvent() [1/2]

BmnEvent::BmnEvent ( )
inline

Default constructor

Definition at line 31 of file BmnEvent.h.

◆ BmnEvent() [2/2]

BmnEvent::BmnEvent ( Int_t  number,
Double_t  startTime = 0.,
Double_t  endTime = 0. 
)
inline

Constructor with event number and time

Parameters
[in]numberEvent number
[in]startTimeEvent start time [ns]
[in]endTimeEvent start time [ns]

Definition at line 38 of file BmnEvent.h.

◆ ~BmnEvent()

virtual BmnEvent::~BmnEvent ( )
inlinevirtual

Destructor

Definition at line 44 of file BmnEvent.h.

Member Function Documentation

◆ AddData()

void BmnEvent::AddData ( DataType  type,
UInt_t  index 
)

Add a data object to the index map

Parameters
DataTypeType of data (for values see BmnDetectorList.h)
IndexIndex of the data object in its TClonesArray

BmnEvent.cxx

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
D. Baranov
Since
13.12.2018
Version
1.0

Definition at line 17 of file BmnEvent.cxx.

Referenced by AddSsdTrack(), and BmnSsdSensor::CreateHit().

◆ AddSsdTrack()

void BmnEvent::AddSsdTrack ( UInt_t  index)
inline

Add an SSD track to the event

Parameters
Indexof SSD track in its TClonesArray

Definition at line 59 of file BmnEvent.h.

References AddData(), and kSsdTrack.

◆ GetEndTime()

Double_t BmnEvent::GetEndTime ( ) const
inline

Get event end time @value End time of event [ns]

Definition at line 112 of file BmnEvent.h.

◆ GetIndex()

UInt_t BmnEvent::GetIndex ( DataType  type,
UInt_t  iData 
)

Get the index of a data object in its TClonesArray

Parameters
DataTypeType of data (for values see BmnDetectorList.h)
iDataRunning number of data object in event @value Index of data object in its TClonesArray

Definition at line 28 of file BmnEvent.cxx.

Referenced by GetSsdTrackIndex().

◆ GetMatch()

BmnMatch * BmnEvent::GetMatch ( ) const
inline

Get match object @value Pointer to match object

Definition at line 73 of file BmnEvent.h.

◆ GetNofData() [1/2]

Int_t BmnEvent::GetNofData ( ) const
inline

Get total number of data (of all types) in the event

Definition at line 77 of file BmnEvent.h.

Referenced by GetNofSsdTracks().

◆ GetNofData() [2/2]

Int_t BmnEvent::GetNofData ( DataType  type) const

Get number of data objects of a given type in this event

Parameters
DataTypeType of data (for values see BmnDetectorList.h) @value Number of objects of type DataType in the event. -1 is data type is not registered.

Definition at line 40 of file BmnEvent.cxx.

◆ GetNofSsdTracks()

Int_t BmnEvent::GetNofSsdTracks ( ) const
inline

Get number of SSD tracks @value Number of SSD tracks in the event. -1 if not registered.

Definition at line 91 of file BmnEvent.h.

References GetNofData(), and kSsdTrack.

◆ GetNumber()

Int_t BmnEvent::GetNumber ( ) const
inline

Get event number @value Event number

Definition at line 97 of file BmnEvent.h.

◆ GetSsdTrackIndex()

Int_t BmnEvent::GetSsdTrackIndex ( Int_t  iTrack)
inline

Get SSD track index

Parameters
iTrackRunning number of SSD track in the event @value index Index of SSD track in TClonesArray

Definition at line 104 of file BmnEvent.h.

References GetIndex(), and kSsdTrack.

◆ GetStartTime()

Double_t BmnEvent::GetStartTime ( ) const
inline

Get event start time @value Start time of event [ns]

Definition at line 118 of file BmnEvent.h.

◆ GetVertex()

BmnVertex * BmnEvent::GetVertex ( )
inline

Get event vertex @value Pointer to vertex object

Definition at line 171 of file BmnEvent.h.

◆ SetEndTime()

void BmnEvent::SetEndTime ( Double_t  endTime)
inline

Set end time

Parameters
endTimeEnd time of event [ns]

Definition at line 124 of file BmnEvent.h.

◆ SetMatch()

void BmnEvent::SetMatch ( BmnMatch match)
inline

Set a match object

Parameters
matchPointer to a match object

Definition at line 130 of file BmnEvent.h.

◆ SetSsdTracks()

void BmnEvent::SetSsdTracks ( std::vector< UInt_t > &  indexVector)
inline

Sets the index array for SSD tracks. Old content will be overwritten.

Set the SSD track index array

Parameters
indexVectorVector with indices of SSD tracks

Definition at line 144 of file BmnEvent.h.

References kSsdTrack.

◆ SetStartTime()

void BmnEvent::SetStartTime ( Double_t  startTime)
inline

Set start time

Parameters
endTimeStart time of event [ns]

Definition at line 136 of file BmnEvent.h.

◆ SetVertex()

void BmnEvent::SetVertex ( Double_t  x,
Double_t  y,
Double_t  z,
Double_t  chi2,
Int_t  ndf,
Int_t  nTracks,
const TMatrixFSym &  covMat 
)

Set the event vertex variables

Parameters
xx coordinate [cm]
yy coordinate [cm]
zz coordinate [cm]
chi2chi square of vertex fit
ndfNumber of degrees of freedom of vertex fit
nTracksNumber of tracks used for vertex fit
covMatCovariance Matrix (symmetric, 3x3)

Definition at line 51 of file BmnEvent.cxx.

References BmnVertex::SetVertex().

◆ ToString()

std::string BmnEvent::ToString ( ) const

String output

Definition at line 60 of file BmnEvent.cxx.


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