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

#include <TOFPostProcessing.h>

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

Public Member Functions

void generateBasicHists ()
 
void generateReducedTree (std::vector< int > a_activeChan={})
 
- 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
 

Member Function Documentation

◆ generateBasicHists()

void TOFPostProcessing::generateBasicHists ( )
Here is the call graph for this function:

◆ generateReducedTree()

void TOFPostProcessing::generateReducedTree ( std::vector< int >  a_activeChan = {})

!this all assumes trigger times are ordered should test

Here is the call graph for this function:

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