ARTEMIS-CRIB
 
Loading...
Searching...
No Matches
art::crib::TMUXData Class Reference

Represents data from the MUX module (E1, E2, P1, P2, T). More...

#include <TMUXData.h>

Inheritance diagram for art::crib::TMUXData:
[legend]
Collaboration diagram for art::crib::TMUXData:
[legend]

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.
 
TMUXDataoperator= (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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TMUXData() [1/2]

art::crib::TMUXData::TMUXData ( )

Constructor.

Initializes all member variables to default values.

Definition at line 18 of file TMUXData.cc.

◆ ~TMUXData()

art::crib::TMUXData::~TMUXData ( )
overridedefault

Destructor.

◆ TMUXData() [2/2]

art::crib::TMUXData::TMUXData ( const TMUXData & rhs)

Copy constructor.

Parameters
rhsThe object to copy from.

Definition at line 27 of file TMUXData.cc.

Member Function Documentation

◆ ClassDefOverride()

art::crib::TMUXData::ClassDefOverride ( TMUXData ,
2  )
private

◆ Clear()

void art::crib::TMUXData::Clear ( Option_t * opt = "")
override

Clear the object's contents.

Parameters
optOptional arguments for the clear operation.

Definition at line 65 of file TMUXData.cc.

◆ Copy()

void art::crib::TMUXData::Copy ( TObject & dest) const
override

Copy the contents of this object to another TObject.

Parameters
destThe destination TObject.

Definition at line 50 of file TMUXData.cc.

◆ GetE1()

Double_t art::crib::TMUXData::GetE1 ( ) const
inline

Get the first energy value.

Definition at line 54 of file TMUXData.h.

◆ GetE2()

Double_t art::crib::TMUXData::GetE2 ( ) const
inline

Get the second energy value.

Definition at line 57 of file TMUXData.h.

◆ GetP1()

Double_t art::crib::TMUXData::GetP1 ( ) const
inline

Get the first position value.

Definition at line 63 of file TMUXData.h.

◆ GetP2()

Double_t art::crib::TMUXData::GetP2 ( ) const
inline

Get the second position value.

Definition at line 66 of file TMUXData.h.

◆ GetT()

Double_t art::crib::TMUXData::GetT ( Int_t index = 0) const

Get the timing value at a specific index.

Parameters
indexThe index of the timing value to retrieve.
Returns
The timing value if valid, otherwise kInvalidD.

Definition at line 81 of file TMUXData.cc.

◆ GetTrig()

Double_t art::crib::TMUXData::GetTrig ( ) const
inline

Get the timing value.

Definition at line 72 of file TMUXData.h.

◆ operator=()

TMUXData & art::crib::TMUXData::operator= ( const TMUXData & rhs)

Copy assignment operator.

Parameters
rhsThe object to assign from.
Returns
A reference to the assigned object.

Definition at line 37 of file TMUXData.cc.

◆ PushTiming()

void art::crib::TMUXData::PushTiming ( Double_t value)

Add a new timing value.

Parameters
valueThe timing value to add.

Definition at line 77 of file TMUXData.cc.

◆ SetE1()

void art::crib::TMUXData::SetE1 ( Double_t value)
inline

Set the first energy value.

Definition at line 55 of file TMUXData.h.

◆ SetE2()

void art::crib::TMUXData::SetE2 ( Double_t value)
inline

Set the second energy value.

Definition at line 58 of file TMUXData.h.

◆ SetP1()

void art::crib::TMUXData::SetP1 ( Double_t value)
inline

Set the first position value.

Definition at line 64 of file TMUXData.h.

◆ SetP2()

void art::crib::TMUXData::SetP2 ( Double_t value)
inline

Set the second position value.

Definition at line 67 of file TMUXData.h.

◆ SetTrig()

void art::crib::TMUXData::SetTrig ( Double_t value)
inline

Set the timing value.

Definition at line 73 of file TMUXData.h.

Member Data Documentation

◆ fE1

Double_t art::crib::TMUXData::fE1
private

First energy value.

Definition at line 105 of file TMUXData.h.

◆ fE2

Double_t art::crib::TMUXData::fE2
private

Second energy value.

Definition at line 106 of file TMUXData.h.

◆ fP1

Double_t art::crib::TMUXData::fP1
private

First position value.

Definition at line 107 of file TMUXData.h.

◆ fP2

Double_t art::crib::TMUXData::fP2
private

Second position value.

Definition at line 108 of file TMUXData.h.

◆ fTiming

Double_t art::crib::TMUXData::fTiming
private

Timing value for the trigger.

Definition at line 109 of file TMUXData.h.

◆ fTVec

std::vector<Double_t> art::crib::TMUXData::fTVec
private

Vector of timing values from MHTDC.

Definition at line 111 of file TMUXData.h.

◆ kNRAW

const Int_t art::crib::TMUXData::kNRAW = 5
static

Number of raw data elements (E1, E2, P1, P2, Trigger).

Definition at line 102 of file TMUXData.h.


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