Represents data from the MUX module (E1, E2, P1, P2, T). More...
#include <TMUXData.h>
Public Member Functions | |
| TMUXData () | |
| Constructor. | |
| TMUXData (const TMUXData &rhs) | |
| Copy constructor. | |
| ~TMUXData () override | |
| Destructor. | |
| void | Clear (Option_t *opt="") override |
| Clear the object's contents. | |
| void | Copy (TObject &dest) const override |
| Copy the contents of this object to another TObject. | |
| TMUXData & | operator= (const TMUXData &rhs) |
| Copy assignment operator. | |
Energy Accessors | |
| Double_t | GetE1 () const |
| Get the first energy value. | |
| void | SetE1 (Double_t value) |
| Set the first energy value. | |
| Double_t | GetE2 () const |
| Get the second energy value. | |
| void | SetE2 (Double_t value) |
| Set the second energy value. | |
Position Accessors | |
| Double_t | GetP1 () const |
| Get the first position value. | |
| void | SetP1 (Double_t value) |
| Set the first position value. | |
| Double_t | GetP2 () const |
| Get the second position value. | |
| void | SetP2 (Double_t value) |
| Set the second position value. | |
Timing Accessors | |
| Double_t | GetTrig () const |
| Get the timing value. | |
| void | SetTrig (Double_t value) |
| Set the timing value. | |
| Double_t | GetT (Int_t index=0) const |
| Get the timing value at a specific index. | |
| void | PushTiming (Double_t value) |
| Add a new timing value. | |
Static Public Attributes | |
| static const Int_t | kNRAW = 5 |
| Number of raw data elements (E1, E2, P1, P2, Trigger). | |
Private Member Functions | |
| ClassDefOverride (TMUXData, 2) | |
Private Attributes | |
| Double_t | fE1 |
| First energy value. | |
| Double_t | fE2 |
| Second energy value. | |
| Double_t | fP1 |
| First position value. | |
| Double_t | fP2 |
| Second position value. | |
| Double_t | fTiming |
| Timing value for the trigger. | |
| std::vector< Double_t > | fTVec |
| Vector of timing values from MHTDC. | |
Represents data from the MUX module (E1, E2, P1, P2, T).
The TMUXData class is used to store and manipulate energy, position, and timing values from the MUX module. It is derived from TDataObject and can be stored in ROOT files as part of a TTree.
Definition at line 25 of file TMUXData.h.
| art::crib::TMUXData::TMUXData | ( | ) |
Constructor.
Initializes all member variables to default values.
Definition at line 18 of file TMUXData.cc.
|
overridedefault |
Destructor.
| art::crib::TMUXData::TMUXData | ( | const TMUXData & | rhs | ) |
|
private |
|
override |
Clear the object's contents.
| opt | Optional arguments for the clear operation. |
Definition at line 65 of file TMUXData.cc.
|
override |
Copy the contents of this object to another TObject.
| dest | The destination TObject. |
Definition at line 50 of file TMUXData.cc.
|
inline |
Get the first energy value.
Definition at line 54 of file TMUXData.h.
|
inline |
Get the second energy value.
Definition at line 57 of file TMUXData.h.
|
inline |
Get the first position value.
Definition at line 63 of file TMUXData.h.
|
inline |
Get the second position value.
Definition at line 66 of file TMUXData.h.
| Double_t art::crib::TMUXData::GetT | ( | Int_t | index = 0 | ) | const |
Get the timing value at a specific index.
| index | The index of the timing value to retrieve. |
kInvalidD. Definition at line 81 of file TMUXData.cc.
|
inline |
Get the timing value.
Definition at line 72 of file TMUXData.h.
Copy assignment operator.
| rhs | The object to assign from. |
Definition at line 37 of file TMUXData.cc.
| void art::crib::TMUXData::PushTiming | ( | Double_t | value | ) |
Add a new timing value.
| value | The timing value to add. |
Definition at line 77 of file TMUXData.cc.
|
inline |
Set the first energy value.
Definition at line 55 of file TMUXData.h.
|
inline |
Set the second energy value.
Definition at line 58 of file TMUXData.h.
|
inline |
Set the first position value.
Definition at line 64 of file TMUXData.h.
|
inline |
Set the second position value.
Definition at line 67 of file TMUXData.h.
|
inline |
Set the timing value.
Definition at line 73 of file TMUXData.h.
|
private |
First energy value.
Definition at line 105 of file TMUXData.h.
|
private |
Second energy value.
Definition at line 106 of file TMUXData.h.
|
private |
First position value.
Definition at line 107 of file TMUXData.h.
|
private |
Second position value.
Definition at line 108 of file TMUXData.h.
|
private |
Timing value for the trigger.
Definition at line 109 of file TMUXData.h.
|
private |
Vector of timing values from MHTDC.
Definition at line 111 of file TMUXData.h.
|
static |
Number of raw data elements (E1, E2, P1, P2, Trigger).
Definition at line 102 of file TMUXData.h.