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

main Genesis Event Class More...

#include <GenesisEventStructures.h>

Public Member Functions

 GenesisEvent ()
 
void addMDPPCloverEvent (unsigned int a_ADC, unsigned int a_TDC, unsigned int a_chNum, unsigned int a_endWord, unsigned int a_extTimeStamp, int a_cloverID, bool a_isBGO)
 add leaf/BGO hit to clover event More...
 
void addMDPPScintEvent (unsigned int a_total, unsigned int a_TDC, unsigned int a_peak, unsigned int a_chNum, unsigned int a_endWord, unsigned int a_extTimeStamp, int a_modID, vector< uint16_t > a_triggers)
 add scintillator hit m_scintEvents More...
 
void addMDPP16Evs (MDPP16Event *a_start, int a_num, ExperimentConfig &a_config, time_t fileStartSinceEpoch, bool a_saveBGOSingles=false, int a_rfTrigIDs=1)
 
void addMDPPCloverEvent (MDPPCloverEvent *a_cloverEvent)
 
void addMDPPScintEvent (MDPPScintEvent *a_scintEvent)
 
void addMDPPCloverEvent (MDPPCloverEvent &a_cloverEvent)
 
void addMDPPScintEvent (MDPPScintEvent &a_scintEvent)
 
void addMDPPHPGeEvent (MDPPHPGeEvent &a_event)
 
void addMDPPInorgScintEvent (MDPPInorgScintEvent &a_event)
 
void addBGOData (MDPPCloverEvent *a_cloverEvent, int a_cloverID)
 
void addBGOData (MDPPCloverEvent &a_cloverEvent, int a_cloverID)
 
void addRFTimes (int a_moduleID, vector< uint16_t > &a_RFTimes)
 
bool setCoarseTime (unsigned int a_endWord, unsigned int a_extTimeStamp)
 
void setWallClockTime (uint32_t a_t)
 
MDPPCloverEvent getCloverEvent (int a_cloverID) const
 getter for a clover event from a_cloverID More...
 
map< int, MDPPCloverEventgetCloverEvents () const
 getter for All clover events More...
 
vector< MDPPScintEventgetScintEvent () const
 getter for all scintillator events More...
 
MDPPHPGeEvent getHPGeEvent (int a_detID) const
 getter for HPGe event using detector ID More...
 
MDPPInorgScintEvent getInorgScintEvent (int a_detID) const
 getter for InorgScint event using detector ID More...
 
unsigned int getCoarseTime () const
 
double getMinTime () const
 returns minimum global time in event - should be the triggering events More...
 
vector< int > getMinTimeChannel () const
 returns channel that had the minimum time More...
 
int getNHits () const
 returns the total number of individual detectos that fired More...
 
std::vector< DetTypegetDetTypes () const
 
std::map< DetType, int > getDetsMultiplicity () const
 
vector< unsigned int > getLeafChannelList () const
 
vector< unsigned int > getScintChannelList () const
 
vector< int > getInorgScintIDList () const
 
bool hasBGO (int modID) const
 IS THIS REALLY A MOD ID? More...
 
vector< int > getCloverIDList () const
 
vector< int > getCloverIDListLeaf () const
 what does this actually do?!!!!!!!!!!!! More...
 
vector< int > getHPGeIDList () const
 
uint32_t getWallClockTime () const
 
void reduceStoredRFs (int a_moduleID, bool a_isClover=0)
 
void sortEvents ()
 TDC-sorts scintillator, and clover (leaf/BGO independtly) More...
 
bool isCoin ()
 simple check for presence of scintillator + leaf signals More...
 
void reset ()
 resets m_cloverEvents and m_scintEvents More...
 
bool isEmpty ()
 checks if any of the detector data structures have been populated More...
 
std::ostream & print (std::ostream &a_stream=std::cout)
 print out the Genesis Event More...
 

Detailed Description

main Genesis Event Class

Constructor & Destructor Documentation

◆ GenesisEvent()

GenesisEvent::GenesisEvent ( )

Member Function Documentation

◆ addBGOData() [1/2]

void GenesisEvent::addBGOData ( MDPPCloverEvent a_cloverEvent,
int  a_cloverID 
)

◆ addBGOData() [2/2]

void GenesisEvent::addBGOData ( MDPPCloverEvent a_cloverEvent,
int  a_cloverID 
)

◆ addMDPP16Evs()

void GenesisEvent::addMDPP16Evs ( MDPP16Event a_start,
int  a_num,
ExperimentConfig a_config,
time_t  fileStartSinceEpoch,
bool  a_saveBGOSingles = false,
int  a_rfTrigIDs = 1 
)

this function loops over a_num MDPP16Events and adds the to the internal array referencing the specified config

!!!!!!!!HARD CODED TRIG NUMBER!!!!!

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

◆ addMDPPCloverEvent() [1/3]

void GenesisEvent::addMDPPCloverEvent ( MDPPCloverEvent a_cloverEvent)

◆ addMDPPCloverEvent() [2/3]

void GenesisEvent::addMDPPCloverEvent ( MDPPCloverEvent a_cloverEvent)

◆ addMDPPCloverEvent() [3/3]

void GenesisEvent::addMDPPCloverEvent ( unsigned int  a_ADC,
unsigned int  a_TDC,
unsigned int  a_chNum,
unsigned int  a_endWord,
unsigned int  a_extTimeStamp,
int  a_cloverID,
bool  a_isBGO 
)

add leaf/BGO hit to clover event

Here is the caller graph for this function:

◆ addMDPPHPGeEvent()

void GenesisEvent::addMDPPHPGeEvent ( MDPPHPGeEvent a_event)
Here is the caller graph for this function:

◆ addMDPPInorgScintEvent()

void GenesisEvent::addMDPPInorgScintEvent ( MDPPInorgScintEvent a_event)
Here is the caller graph for this function:

◆ addMDPPScintEvent() [1/3]

void GenesisEvent::addMDPPScintEvent ( MDPPScintEvent a_scintEvent)

◆ addMDPPScintEvent() [2/3]

void GenesisEvent::addMDPPScintEvent ( MDPPScintEvent a_scintEvent)

◆ addMDPPScintEvent() [3/3]

void GenesisEvent::addMDPPScintEvent ( unsigned int  a_total,
unsigned int  a_TDC,
unsigned int  a_peak,
unsigned int  a_chNum,
unsigned int  a_endWord,
unsigned int  a_extTimeStamp,
int  a_modID,
vector< uint16_t >  a_triggers 
)

add scintillator hit m_scintEvents

compute global time

Here is the caller graph for this function:

◆ addRFTimes()

void GenesisEvent::addRFTimes ( int  a_moduleID,
vector< uint16_t > &  a_RFTimes 
)
Here is the caller graph for this function:

◆ getCloverEvent()

MDPPCloverEvent GenesisEvent::getCloverEvent ( int  a_cloverID) const

getter for a clover event from a_cloverID

Here is the caller graph for this function:

◆ getCloverEvents()

map< int, MDPPCloverEvent > GenesisEvent::getCloverEvents ( ) const

getter for All clover events

◆ getCloverIDList()

vector< int > GenesisEvent::getCloverIDList ( ) const
Here is the caller graph for this function:

◆ getCloverIDListLeaf()

vector< int > GenesisEvent::getCloverIDListLeaf ( ) const

what does this actually do?!!!!!!!!!!!!

◆ getCoarseTime()

unsigned int GenesisEvent::getCoarseTime ( ) const

returns "coarse time" / "end of event word" returns in units of ticks - multiply by 62.5e-9 to get seconds

◆ getDetsMultiplicity()

std::map< DetType, int > GenesisEvent::getDetsMultiplicity ( ) const

returns the types of detectors participating in the event counting multiplicity

returns the types of detectors participating in the event counting multiplicity this will include zeros for detectors not participating

Here is the caller graph for this function:

◆ getDetTypes()

std::vector< DetType > GenesisEvent::getDetTypes ( ) const

returns the types of detectors participating in the event as a unique set not counting multiplicity

Here is the caller graph for this function:

◆ getHPGeEvent()

MDPPHPGeEvent GenesisEvent::getHPGeEvent ( int  a_detID) const

getter for HPGe event using detector ID

Here is the caller graph for this function:

◆ getHPGeIDList()

vector< int > GenesisEvent::getHPGeIDList ( ) const
Here is the caller graph for this function:

◆ getInorgScintEvent()

MDPPInorgScintEvent GenesisEvent::getInorgScintEvent ( int  a_detID) const

getter for InorgScint event using detector ID

Here is the caller graph for this function:

◆ getInorgScintIDList()

vector< int > GenesisEvent::getInorgScintIDList ( ) const
Here is the caller graph for this function:

◆ getLeafChannelList()

vector< unsigned int > GenesisEvent::getLeafChannelList ( ) const

◆ getMinTime()

double GenesisEvent::getMinTime ( ) const

returns minimum global time in event - should be the triggering events

◆ getMinTimeChannel()

vector< int > GenesisEvent::getMinTimeChannel ( ) const

returns channel that had the minimum time

◆ getNHits()

int GenesisEvent::getNHits ( ) const

returns the total number of individual detectos that fired

Here is the caller graph for this function:

◆ getScintChannelList()

vector< unsigned int > GenesisEvent::getScintChannelList ( ) const
Here is the caller graph for this function:

◆ getScintEvent()

vector< MDPPScintEvent > GenesisEvent::getScintEvent ( ) const

getter for all scintillator events

Here is the caller graph for this function:

◆ getWallClockTime()

uint32_t GenesisEvent::getWallClockTime ( ) const
Here is the caller graph for this function:

◆ hasBGO()

bool GenesisEvent::hasBGO ( int  modID) const

IS THIS REALLY A MOD ID?

◆ isCoin()

bool GenesisEvent::isCoin ( )

simple check for presence of scintillator + leaf signals

is there scintillator event

checking if there is a clover event w/. a signal from a leaf

◆ isEmpty()

bool GenesisEvent::isEmpty ( )

checks if any of the detector data structures have been populated

Here is the caller graph for this function:

◆ print()

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

print out the Genesis Event

Here is the caller graph for this function:

◆ reduceStoredRFs()

void GenesisEvent::reduceStoredRFs ( int  a_moduleID,
bool  a_isClover = 0 
)

replaces original vector of RFs stored in m_RFTimes to 3 before and 2 after first hit in each module set a_isClover=TRUE if trying to reduced number of RFs from clover module

Here is the caller graph for this function:

◆ reset()

void GenesisEvent::reset ( )

resets m_cloverEvents and m_scintEvents

Here is the caller graph for this function:

◆ setCoarseTime()

bool GenesisEvent::setCoarseTime ( unsigned int  a_endWord,
unsigned int  a_extTimeStamp 
)

sets the "coarse time" / "end of event word" return false if the argument does not match m_coarseTime (such that m_coarseTime as already been set) - only want event w/. same TDC start point in a single "GenesisEvent"

◆ setWallClockTime()

void GenesisEvent::setWallClockTime ( uint32_t  a_t)
Here is the caller graph for this function:

◆ sortEvents()

void GenesisEvent::sortEvents ( )

TDC-sorts scintillator, and clover (leaf/BGO independtly)

Here is the call graph for this function:

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