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

#include <GENESISPostProcessing.h>

Inheritance diagram for GenesisPostProcessing:
Inheritance graph
[legend]
Collaboration diagram for GenesisPostProcessing:
Collaboration graph
[legend]

Public Member Functions

 GenesisPostProcessing ()
 
void generateCalibratedHists (string a_config)
 
void writeCalibHists (string a_fileName)
 
void generateTimeSortedHists (string a_config)
 
void buildBoardSinglesTree (string a_config, string a_fileName, int a_moduleID)
 
void generateTimeCalibHists (string a_config, string a_outFileName="timeCalibHists.root", bool a_checkForRF=1)
 
void accumulateSinglesQuantities (string a_config, string a_outFileName="neutron_singlesHists.root")
 
void processToGenEvents (string a_config, string a_outFileName, int a_downSampleSingles=-1, bool a_checkForScint=1, bool a_rejectPUOverflow=1, bool m_checkForRF=1, bool a_checkForGamma=1, bool a_optVerbose=0, bool a_saveBGOSingles=0, int a_skipEvents=0, bool a_checkForInorgScint=0)
 
void processToGenEventsLin (string a_config, string a_outFileName, int a_downSampleSingles=-1, bool a_checkForScint=1, bool a_rejectPUOverflow=1, bool m_checkForRF=1, bool a_checkForGamma=1, bool a_optVerbose=0, bool a_saveBGOSingles=0, int a_skipEvents=0, bool a_checkForInorgScint=0)
 
- Public Member Functions inherited from MesyDAQPostProcessing
 MesyDAQPostProcessing ()
 defualt constructor puts class into a working state More...
 
void setOptVerbose (int a_verbosity)
 sets how much information to print while parsing More...
 
void setWriteZeros (bool a_state)
 
void setEnforceBoardCount (bool a_state)
 
int addFile (std::string a_fileName)
 this function adds a file to the list of files to be processed More...
 
int addRootFile (std::string a_filename)
 
int runIntegrityChecks ()
 
int testCorrelations ()
 
void buildCoinHists ()
 
void buildDeltaTTestHist (int a_modID1, int a_modID2, int a_ch1, int a_ch2)
 
int accumulateBasicQuantities ()
 build a series of histograms for More...
 
int fileNotLoaded ()
 tests if a file is loaded and prinst a message if not More...
 
TH1 * buildCoincidenceTimeHistogram (int a_moduleNumber, int a_channel1, int a_channel2, double a_res)
 
void writeBasicHists (std::string a_filename)
 clears the map More...
 
void writeAmplitudeHistsToAscii ()
 
vector< TH1 * > buildSingleBoardCalibrationHistograms (std::vector< int > a_chList={})
 
int ProcessEventToMesyDAQEv (MesyDAQEvent *a_daqEv, uint32_t *buffer, size_t a_size, int a_fileVersion)
 
int ProcessEventToMDPP16Events (std::vector< MDPP16Event > *a_evVector, uint32_t *a_buffer, size_t a_size, int a_fileVersion, std::ostream &a_stream=std::cout)
 
int loadNextEvent ()
 this function adds a file to the list of files to be processed More...
 
int readMDPPEvents (long int a_num, bool a_resEvVec=true)
 reads a series of sections into memory for processing More...
 
int loadNextSectionToMDPP16Ev ()
 
int processZipToMesyDAQEv (std::string a_fileName, std::string a_outFileName)
 
int processZipToMDPPEvent (std::string a_fileName, std::string a_outFileName)
 
void generateCloverCalibrationHists (std::vector< CloverInfo > a_config)
 
std::vector< TH1 * > getCloverCalibrationHists (const CloverInfo &a_config)
 
void generateWallTimeVAmpTree (ExperimentConfig a_configFile, std::vector< DetType > a_typeList, std::string a_outFileName, double a_downSampleScaler=-1)
 
void generateGlobalTimeVAmpTree (ExperimentConfig a_configFile, std::vector< DetType > a_typeList, std::string a_outFileName, double a_downSampleScaler=-1)
 
void generateOrganicScintillatorHists (std::string a_fileName)
 
void findCoincidences (std::vector< MDPP16Event > *a_evVec, std::vector< int > &a_singlesList, std::vector< std::vector< int >> &a_coinList, double a_coinWinNs, std::map< uint32_t, std::vector< uint16_t >> &a_RFTimes, bool a_accumulateRFs=true, bool a_includeSingleBoard=true)
 
void createTriggerVsWallTimeHist (std::string a_outFile, int a_moduleID=17, int a_threshold=10)
 
void investigateSections (std::vector< int > a_anticipatedBoards, std::vector< int > a_trigArray)
 
void retrieveBeamOnTimes (std::string a_inputFilename, std::string a_outputFilename)
 
void generateWallTimeTrigInterEventTime (std::string a_outputFileName, int a_numSections=100000)
 
void testCleanTrigArray (std::string a_outputFileName, int a_numSections, uint16_t a_boardID, uint16_t a_trigID, uint16_t a_desiredPeriod, uint16_t a_obsTrigPeriod, uint16_t a_jitterThreshold=2)
 
std::ostream & printFileStartTime (std::ostream &a_stream=std::cout)
 
std::ostream & printLoadedEvents (std::ostream &a_stream=std::cout)
 this functions prints the events from the m_evVec vector More...
 
std::ostream & printLoadedSection (std::ostream &a_stream=std::cout)
 
std::ostream & printBadEvent (std::ostream &a_stream=std::cout)
 this function print bad event info More...
 
std::ostream & printLastSection (std::ostream &a_stream=std::cout)
 

Additional Inherited Members

- Static Public Member Functions inherited from MesyDAQPostProcessing
static void developCleanTrigArray (std::vector< uint16_t > &a_obsTrigs, std::vector< uint16_t > &a_resultArray, uint16_t a_desiredPeriod, uint16_t a_obsTrigPeriod, uint16_t a_jitterThreshold=2)
 
- Protected Member Functions inherited from MesyDAQPostProcessing
void createBoardHists (int a_boardNumber)
 creates basic histograms for a board More...
 
vector< TH1 * > & getBoardHistVector (int a_boardNumber)
 
TH1 * createSCPAmpHist (std::string a_name)
 
TH1 * createDeltaTDCHist (std::string a_name)
 
int openFile (std::string a_fileName)
 
void getRunStartTime (std::string a_fileName)
 
void getRunStopTime (std::string a_fileName)
 
- Protected Attributes inherited from MesyDAQPostProcessing
TChain * m_trees
 for associating the trees from files More...
 
MesyDAQEventm_currentEvent
 for storing the current event More...
 
std::vector< MDPP16Event > * m_evVec
 used for storing a series of MDPP16 events; More...
 
std::vector< std::string > m_loadedFiles
 for storing a list of loaded files More...
 
map< int, vector< TH1 * > > m_basicHists
 
bool m_hasFile
 flag for wheter a file has been loaded More...
 
std::vector< std::string > m_files
 used for storing list of files to be processed More...
 
int m_fileIndex
 used to reference which of the current files in the list is open More...
 
int m_fileVersion
 
int m_optVerbose
 
bool m_writeZeros
 
bool m_enforceBoardCount
 
std::tm m_lastFileTime
 
std::tm m_lastFileStopTime
 
std::map< FailMode, int > m_badEvCounter
 
std::map< int, int > m_sectionTypeCounter
 
long int m_sectionsRead
 
DataBuffer * m_dataBuffer
 from MVME More...
 
int m_bufferSize
 
DataBuffer * m_lastDataBuffer
 
int m_lastBufferSize
 
ListFile m_listFileUtil
 From mesytec for storing the current opened file. More...
 
bool m_fileOpen
 used to ensure file is open More...
 
bool m_sectionRead
 
std::default_random_engine m_generator
 

Constructor & Destructor Documentation

◆ GenesisPostProcessing()

GenesisPostProcessing::GenesisPostProcessing ( )

Member Function Documentation

◆ accumulateSinglesQuantities()

void GenesisPostProcessing::accumulateSinglesQuantities ( string  a_config,
string  a_outFileName = "neutron_singlesHists.root" 
)

neutron multiplicity

angular dist corrected by r^2

angular dist corrected by r^2

angular dist corrected by r^2

angular dist not corrected by r^2

azimuthal vs polar corrected

just by detector number

just by detector number

loop over all events

increment global time

loop over each channel in event window

loop over each hit in the channel

only interested in

Here is the call graph for this function:

◆ buildBoardSinglesTree()

void GenesisPostProcessing::buildBoardSinglesTree ( string  a_config,
string  a_fileName,
int  a_moduleID 
)

build tree of Genesis Event structures (Clover/Scint) for a single board

◆ generateCalibratedHists()

void GenesisPostProcessing::generateCalibratedHists ( string  a_config)

generates energy calibrated gamma ray histograms call write aftre generating

to make 2d plot of extended time vs. energy --— fix later


Here is the call graph for this function:

◆ generateTimeCalibHists()

void GenesisPostProcessing::generateTimeCalibHists ( string  a_config,
string  a_outFileName = "timeCalibHists.root",
bool  a_checkForRF = 1 
)

generates TDC-RF histograms for each scintillator with PSD cuts refactored

scint ID

HPGe ID

inorgScint ID

Clover ID, leaf Number

make histograms

Here is the call graph for this function:

◆ generateTimeSortedHists()

void GenesisPostProcessing::generateTimeSortedHists ( string  a_config)
Here is the call graph for this function:

◆ processToGenEvents()

void GenesisPostProcessing::processToGenEvents ( string  a_config,
string  a_outFileName,
int  a_downSampleSingles = -1,
bool  a_checkForScint = 1,
bool  a_rejectPUOverflow = 1,
bool  m_checkForRF = 1,
bool  a_checkForGamma = 1,
bool  a_optVerbose = 0,
bool  a_saveBGOSingles = 0,
int  a_skipEvents = 0,
bool  a_checkForInorgScint = 0 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ processToGenEventsLin()

void GenesisPostProcessing::processToGenEventsLin ( string  a_config,
string  a_outFileName,
int  a_downSampleSingles = -1,
bool  a_checkForScint = 1,
bool  a_rejectPUOverflow = 1,
bool  m_checkForRF = 1,
bool  a_checkForGamma = 1,
bool  a_optVerbose = 0,
bool  a_saveBGOSingles = 0,
int  a_skipEvents = 0,
bool  a_checkForInorgScint = 0 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeCalibHists()

void GenesisPostProcessing::writeCalibHists ( string  a_fileName)

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