Berkeley Nuclear Data Software
Public Member Functions | Public Attributes | List of all members
MDPPCloverEvent Class Reference

#include <DetectorDataStructures.h>

Collaboration diagram for MDPPCloverEvent:
Collaboration graph
[legend]

Public Member Functions

 MDPPCloverEvent ()
 
 MDPPCloverEvent (const std::vector< MDPP16Event > &a_daqEvs, const CloverInfo &a_config, int a_trigInd=0, int a_rfInd=1)
 
 MDPPCloverEvent (MDPP16Event *a_daqEvs, int a_num, const CloverInfo &a_config, vector< uint16_t > &a_trigArray, int a_trigInd=0)
 
void defineClass (MDPP16Event *a_daqEvs, int a_num, const CloverInfo &a_config, vector< uint16_t > &a_trigArray, int a_trigInd=0)
 
unsigned int getcloverID () const
 
vector< uint16_t > getADC () const
 
vector< uint16_t > getTDC () const
 
vector< uint16_t > gettdcBGO () const
 
vector< uint16_t > getadcBGO () const
 
vector< uint8_t > getleafNumber () const
 
vector< uint8_t > getbgoNumber () const
 
vector< uint16_t > gettdcTriggers () const
 
vector< uint16_t > getRFs () const
 
uint32_t getendEventWord () const
 
uint16_t getextTime () const
 
void setcloverID (uint8_t a_cloverID)
 
void setADC (vector< uint16_t > a_ADC)
 
void setTDC (vector< uint16_t > a_TDC)
 
void settdcBGO (vector< uint16_t > a_tdcBGO)
 
void setadcBGO (vector< uint16_t > a_adcBGO)
 
void setleafNumber (vector< uint8_t > a_leafNumber)
 
void setbgoNumber (vector< uint8_t > a_bgoNumber)
 
void settdcTrigger (vector< uint16_t > a_tdcTrigger)
 
void setendEventWord (uint32_t a_endEventWord)
 
void setextTime (uint16_t a_extTime)
 
double getGlobalTriggerTime ()
 
double getGlobalHitTime (int a_hitNum)
 
int getFirstHitLeaf (const CloverInfo &a_config) const
 
double getEnergy (int a_hitNum, const CloverInfo &a_config) const
 get the energy associated with a single hit in the event More...
 
double getTotalED (const CloverInfo &a_config, int &a_multiplicity) const
 
double getTotalED (const CloverInfo &a_config, int &a_multiplicity, int &a_minTimeHit, std::vector< int > &a_rejHits) const
 
bool rejectBGO (const CloverInfo &a_config) const
 
vector< uint16_t > getTDC (int a_leafNumber) const
 overloaded function returning just the tdc hits for a given leaf ID More...
 
int getMinTDCValue (int &a_leafID)
 
double getBGODtTDC ()
 
bool constructed ()
 
bool hasGamma ()
 
bool hasBGO ()
 
std::ostream & print (std::ostream &a_stream=std::cout)
 prints info about the internal state of the class More...
 

Public Attributes

uint8_t m_cloverID
 
vector< uint16_t > m_ADC
 
vector< uint16_t > m_TDC
 
vector< uint16_t > m_tdcBGO
 
vector< uint16_t > m_adcBGO
 
vector< uint8_t > m_leafNumber
 
vector< uint8_t > m_bgoNumber
 
vector< uint16_t > m_nearestRF
 
vector< uint16_t > m_tdcTrigger
 
uint32_t m_endEventWord
 
uint16_t m_extTime
 

Detailed Description

class to hold "clover" events has charge (ADC value), TDC value

Constructor & Destructor Documentation

◆ MDPPCloverEvent() [1/3]

MDPPCloverEvent::MDPPCloverEvent ( )

◆ MDPPCloverEvent() [2/3]

MDPPCloverEvent::MDPPCloverEvent ( const std::vector< MDPP16Event > &  a_daqEvs,
const CloverInfo a_config,
int  a_trigInd = 0,
int  a_rfInd = 1 
)

this constructor is designed to create a functional MDPPClover event from either a single or coincident daq event allowing for the separation of channels onto different modules a single event should be added using a vector of size 1

◆ MDPPCloverEvent() [3/3]

MDPPCloverEvent::MDPPCloverEvent ( MDPP16Event a_daqEvs,
int  a_num,
const CloverInfo a_config,
vector< uint16_t > &  a_trigArray,
int  a_trigInd = 0 
)

this constructor is designed to create a functional MDPPClover event from an arbitrary numver of MDPP16Events store at the supplied pointer

this constructor is designed to create a functional MDPPClover event from either a single or coincident daq event allowing for the separation of channels onto different modules a single event should be added using a vector of size 1

Here is the call graph for this function:

Member Function Documentation

◆ constructed()

bool MDPPCloverEvent::constructed ( )
Here is the caller graph for this function:

◆ defineClass()

void MDPPCloverEvent::defineClass ( MDPP16Event a_daqEvs,
int  a_num,
const CloverInfo a_config,
vector< uint16_t > &  a_trigArray,
int  a_trigInd = 0 
)

this constructor is designed to create a functional MDPPClover event from an arbitrary numver of MDPP16Events store at the supplied pointer

not sure why this doesn't actually provide an offset? I guess maybe its

!!!this should get managed earlier in the parse probably!!!!!

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getADC()

vector< uint16_t > MDPPCloverEvent::getADC ( ) const
Here is the caller graph for this function:

◆ getadcBGO()

vector< uint16_t > MDPPCloverEvent::getadcBGO ( ) const

◆ getBGODtTDC()

double MDPPCloverEvent::getBGODtTDC ( )

◆ getbgoNumber()

vector< uint8_t > MDPPCloverEvent::getbgoNumber ( ) const

◆ getcloverID()

unsigned int MDPPCloverEvent::getcloverID ( ) const

◆ getendEventWord()

uint32_t MDPPCloverEvent::getendEventWord ( ) const

◆ getEnergy()

double MDPPCloverEvent::getEnergy ( int  a_hitNum,
const CloverInfo a_config 
) const

get the energy associated with a single hit in the event

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getextTime()

uint16_t MDPPCloverEvent::getextTime ( ) const

◆ getFirstHitLeaf()

int MDPPCloverEvent::getFirstHitLeaf ( const CloverInfo a_config) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGlobalHitTime()

double MDPPCloverEvent::getGlobalHitTime ( int  a_hitNum)

◆ getGlobalTriggerTime()

double MDPPCloverEvent::getGlobalTriggerTime ( )
Here is the caller graph for this function:

◆ getleafNumber()

vector< uint8_t > MDPPCloverEvent::getleafNumber ( ) const
Here is the caller graph for this function:

◆ getMinTDCValue()

int MDPPCloverEvent::getMinTDCValue ( int &  a_leafID)

this function finds the minimum tdc value and associates the int passed to it to the corresponding leafID;

Here is the caller graph for this function:

◆ getRFs()

vector< uint16_t > MDPPCloverEvent::getRFs ( ) const
Here is the caller graph for this function:

◆ getTDC() [1/2]

vector< uint16_t > MDPPCloverEvent::getTDC ( ) const
Here is the caller graph for this function:

◆ getTDC() [2/2]

vector< uint16_t > MDPPCloverEvent::getTDC ( int  a_leafNumber) const

overloaded function returning just the tdc hits for a given leaf ID

◆ gettdcBGO()

vector< uint16_t > MDPPCloverEvent::gettdcBGO ( ) const

◆ gettdcTriggers()

vector< uint16_t > MDPPCloverEvent::gettdcTriggers ( ) const
Here is the caller graph for this function:

◆ getTotalED() [1/2]

double MDPPCloverEvent::getTotalED ( const CloverInfo a_config,
int &  a_multiplicity 
) const

returns the total energy for all hits within the coincidence window and giving an indicator of the multiplicity

Here is the caller graph for this function:

◆ getTotalED() [2/2]

double MDPPCloverEvent::getTotalED ( const CloverInfo a_config,
int &  a_multiplicity,
int &  a_minTimeHit,
std::vector< int > &  a_rejHits 
) const

returns the total energy for all hits within the coincidence window and giving an indicator of the multiplicity, the hit participating in the addback event with the minimum time, and hits that did not participate

Here is the call graph for this function:

◆ hasBGO()

bool MDPPCloverEvent::hasBGO ( )

◆ hasGamma()

bool MDPPCloverEvent::hasGamma ( )
Here is the caller graph for this function:

◆ print()

std::ostream & MDPPCloverEvent::print ( std::ostream &  a_stream = std::cout)

prints info about the internal state of the class

◆ rejectBGO()

bool MDPPCloverEvent::rejectBGO ( const CloverInfo a_config) const

also need to check ADC value of BGO for cutting

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setADC()

void MDPPCloverEvent::setADC ( vector< uint16_t >  a_ADC)

◆ setadcBGO()

void MDPPCloverEvent::setadcBGO ( vector< uint16_t >  a_adcBGO)

◆ setbgoNumber()

void MDPPCloverEvent::setbgoNumber ( vector< uint8_t >  a_bgoNumber)

◆ setcloverID()

void MDPPCloverEvent::setcloverID ( uint8_t  a_cloverID)

◆ setendEventWord()

void MDPPCloverEvent::setendEventWord ( uint32_t  a_endEventWord)

◆ setextTime()

void MDPPCloverEvent::setextTime ( uint16_t  a_extTime)

◆ setleafNumber()

void MDPPCloverEvent::setleafNumber ( vector< uint8_t >  a_leafNumber)

◆ setTDC()

void MDPPCloverEvent::setTDC ( vector< uint16_t >  a_TDC)

◆ settdcBGO()

void MDPPCloverEvent::settdcBGO ( vector< uint16_t >  a_tdcBGO)

◆ settdcTrigger()

void MDPPCloverEvent::settdcTrigger ( vector< uint16_t >  a_tdcTrigger)

Member Data Documentation

◆ m_ADC

vector<uint16_t> MDPPCloverEvent::m_ADC

◆ m_adcBGO

vector<uint16_t> MDPPCloverEvent::m_adcBGO

◆ m_bgoNumber

vector<uint8_t> MDPPCloverEvent::m_bgoNumber

◆ m_cloverID

uint8_t MDPPCloverEvent::m_cloverID

◆ m_endEventWord

uint32_t MDPPCloverEvent::m_endEventWord

◆ m_extTime

uint16_t MDPPCloverEvent::m_extTime

◆ m_leafNumber

vector<uint8_t> MDPPCloverEvent::m_leafNumber

◆ m_nearestRF

vector<uint16_t> MDPPCloverEvent::m_nearestRF

◆ m_TDC

vector<uint16_t> MDPPCloverEvent::m_TDC

◆ m_tdcBGO

vector<uint16_t> MDPPCloverEvent::m_tdcBGO

◆ m_tdcTrigger

vector<uint16_t> MDPPCloverEvent::m_tdcTrigger

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