Berkeley Nuclear Data Software
|
#include <DetectorDataStructures.h>
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 |
class to hold "clover" events has charge (ADC value), TDC value
MDPPCloverEvent::MDPPCloverEvent | ( | ) |
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::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
bool MDPPCloverEvent::constructed | ( | ) |
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!!!!!
vector< uint16_t > MDPPCloverEvent::getADC | ( | ) | const |
vector< uint16_t > MDPPCloverEvent::getadcBGO | ( | ) | const |
double MDPPCloverEvent::getBGODtTDC | ( | ) |
vector< uint8_t > MDPPCloverEvent::getbgoNumber | ( | ) | const |
unsigned int MDPPCloverEvent::getcloverID | ( | ) | const |
uint32_t MDPPCloverEvent::getendEventWord | ( | ) | const |
double MDPPCloverEvent::getEnergy | ( | int | a_hitNum, |
const CloverInfo & | a_config | ||
) | const |
get the energy associated with a single hit in the event
uint16_t MDPPCloverEvent::getextTime | ( | ) | const |
int MDPPCloverEvent::getFirstHitLeaf | ( | const CloverInfo & | a_config | ) | const |
double MDPPCloverEvent::getGlobalHitTime | ( | int | a_hitNum | ) |
double MDPPCloverEvent::getGlobalTriggerTime | ( | ) |
vector< uint8_t > MDPPCloverEvent::getleafNumber | ( | ) | const |
int MDPPCloverEvent::getMinTDCValue | ( | int & | a_leafID | ) |
this function finds the minimum tdc value and associates the int passed to it to the corresponding leafID;
vector< uint16_t > MDPPCloverEvent::getRFs | ( | ) | const |
vector< uint16_t > MDPPCloverEvent::getTDC | ( | ) | const |
vector< uint16_t > MDPPCloverEvent::getTDC | ( | int | a_leafNumber | ) | const |
overloaded function returning just the tdc hits for a given leaf ID
vector< uint16_t > MDPPCloverEvent::gettdcBGO | ( | ) | const |
vector< uint16_t > MDPPCloverEvent::gettdcTriggers | ( | ) | const |
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
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
bool MDPPCloverEvent::hasBGO | ( | ) |
bool MDPPCloverEvent::hasGamma | ( | ) |
std::ostream & MDPPCloverEvent::print | ( | std::ostream & | a_stream = std::cout | ) |
prints info about the internal state of the class
bool MDPPCloverEvent::rejectBGO | ( | const CloverInfo & | a_config | ) | const |
also need to check ADC value of BGO for cutting
void MDPPCloverEvent::setADC | ( | vector< uint16_t > | a_ADC | ) |
void MDPPCloverEvent::setadcBGO | ( | vector< uint16_t > | a_adcBGO | ) |
void MDPPCloverEvent::setbgoNumber | ( | vector< uint8_t > | a_bgoNumber | ) |
void MDPPCloverEvent::setcloverID | ( | uint8_t | a_cloverID | ) |
void MDPPCloverEvent::setendEventWord | ( | uint32_t | a_endEventWord | ) |
void MDPPCloverEvent::setextTime | ( | uint16_t | a_extTime | ) |
void MDPPCloverEvent::setleafNumber | ( | vector< uint8_t > | a_leafNumber | ) |
void MDPPCloverEvent::setTDC | ( | vector< uint16_t > | a_TDC | ) |
void MDPPCloverEvent::settdcBGO | ( | vector< uint16_t > | a_tdcBGO | ) |
void MDPPCloverEvent::settdcTrigger | ( | vector< uint16_t > | a_tdcTrigger | ) |
vector<uint16_t> MDPPCloverEvent::m_ADC |
vector<uint16_t> MDPPCloverEvent::m_adcBGO |
vector<uint8_t> MDPPCloverEvent::m_bgoNumber |
uint8_t MDPPCloverEvent::m_cloverID |
uint32_t MDPPCloverEvent::m_endEventWord |
uint16_t MDPPCloverEvent::m_extTime |
vector<uint8_t> MDPPCloverEvent::m_leafNumber |
vector<uint16_t> MDPPCloverEvent::m_nearestRF |
vector<uint16_t> MDPPCloverEvent::m_TDC |
vector<uint16_t> MDPPCloverEvent::m_tdcBGO |
vector<uint16_t> MDPPCloverEvent::m_tdcTrigger |