|
BmnRoot
|
Class characterising one event by a collection of links (indices) to data objects,. More...
#include <BmnEvent.h>
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) |
| BmnMatch * | GetMatch () 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 |
| BmnVertex * | GetVertex () |
Class characterising one event by a collection of links (indices) to data objects,.
Definition at line 26 of file BmnEvent.h.
|
inline |
Default constructor
Definition at line 31 of file BmnEvent.h.
|
inline |
Constructor with event number and time
| [in] | number | Event number |
| [in] | startTime | Event start time [ns] |
| [in] | endTime | Event start time [ns] |
Definition at line 38 of file BmnEvent.h.
|
inlinevirtual |
Destructor
Definition at line 44 of file BmnEvent.h.
| void BmnEvent::AddData | ( | DataType | type, |
| UInt_t | index | ||
| ) |
Add a data object to the index map
| DataType | Type of data (for values see BmnDetectorList.h) |
| Index | Index of the data object in its TClonesArray |
Definition at line 17 of file BmnEvent.cxx.
Referenced by AddSsdTrack(), and BmnSsdSensor::CreateHit().
|
inline |
Add an SSD track to the event
| Index | of SSD track in its TClonesArray |
Definition at line 59 of file BmnEvent.h.
|
inline |
Get event end time @value End time of event [ns]
Definition at line 112 of file BmnEvent.h.
| UInt_t BmnEvent::GetIndex | ( | DataType | type, |
| UInt_t | iData | ||
| ) |
Get the index of a data object in its TClonesArray
| DataType | Type of data (for values see BmnDetectorList.h) |
| iData | Running 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().
|
inline |
Get match object @value Pointer to match object
Definition at line 73 of file BmnEvent.h.
|
inline |
Get total number of data (of all types) in the event
Definition at line 77 of file BmnEvent.h.
Referenced by GetNofSsdTracks().
| Int_t BmnEvent::GetNofData | ( | DataType | type | ) | const |
Get number of data objects of a given type in this event
| DataType | Type 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.
|
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.
|
inline |
Get event number @value Event number
Definition at line 97 of file BmnEvent.h.
|
inline |
Get SSD track index
| iTrack | Running 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.
|
inline |
Get event start time @value Start time of event [ns]
Definition at line 118 of file BmnEvent.h.
|
inline |
Get event vertex @value Pointer to vertex object
Definition at line 171 of file BmnEvent.h.
|
inline |
|
inline |
Set a match object
| match | Pointer to a match object |
Definition at line 130 of file BmnEvent.h.
|
inline |
Sets the index array for SSD tracks. Old content will be overwritten.
Set the SSD track index array
| indexVector | Vector with indices of SSD tracks |
Definition at line 144 of file BmnEvent.h.
References kSsdTrack.
|
inline |
Set start time
| endTime | Start time of event [ns] |
Definition at line 136 of file BmnEvent.h.
| 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
| x | x coordinate [cm] |
| y | y coordinate [cm] |
| z | z coordinate [cm] |
| chi2 | chi square of vertex fit |
| ndf | Number of degrees of freedom of vertex fit |
| nTracks | Number of tracks used for vertex fit |
| covMat | Covariance Matrix (symmetric, 3x3) |
Definition at line 51 of file BmnEvent.cxx.
References BmnVertex::SetVertex().
| std::string BmnEvent::ToString | ( | ) | const |
String output
Definition at line 60 of file BmnEvent.cxx.