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

this class is intended to work on TTrees made by reduceCLYCData() More...

#include <CLYCCalibAndAccum.h>

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

Public Member Functions

 CLYCCalibAndAccum ()
 
std::map< std::string, std::pair< double, double > > loadFileConfig (std::string a_config)
 
void makeGamma2DHists (std::string a_config)
 
void fitGammaPeaks (std::string a_file, std::string a_config)
 
std::map< std::string, double > getTOFCorrection (std::string a_config, double a_distance)
 
TH2 * createTOFHist (std::string a_cut, bool saveHist=false)
 
void genMonteCarloTOFHists (std::string a_outFile, std::string a_cut, int a_numTrials, double a_detDistance, double a_distError)
 
void createRawTOFHist ()
 
void createRawTOFHistWithCuts (std::vector< std::string > a_cutList)
 
void createRawTOFHistWithGraphCuts (std::vector< std::string > a_cutList)
 
void createMultiGraphWithCuts (std::vector< std::string > a_cutList)
 
void developWFTemplate ()
 
void developWFTemplate (std::string a_config, std::string a_TCut)
 
void riseTimes (std::string a_clUpperCut, std::string a_clLowerCut, std::string a_liCut)
 
void runWFFitting ()
 
void drawTrace (int a_evNum, bool a_clearGraph=true)
 
TGraph * getInvertedWFGraph (int a_evNum, int a_samples)
 
TCutG * loadCut (string a_cutFile, string a_cutName)
 
void readCutFile (std::string a_fileName)
 
- Public Member Functions inherited from PostProcBase< CLYCEvent >
 PostProcBase ()
 defualt constructor puts class into a working state More...
 
virtual int addFile (string a_filename)
 
virtual int addFilesFromDirectory (string a_dir, string a_ext)
 
virtual int loadEvent (int a_eventNumber)
 loads a specified event into memory More...
 
virtual int fileNotLoaded ()
 tests if a file is loaded and prinst a message if not More...
 
virtual int clearFileState ()
 
virtual std::ostream & printState (std::ostream &a_stream=std::cout)
 
virtual ~PostProcBase ()
 
TChain * getTrees ()
 danger danger, use this if you know what you are doing. More...
 

Protected Attributes

std::map< std::string, std::pair< double, double > > m_fileMap
 
std::map< std::string, double > m_timeCorrectionMap
 
TCutG * m_cut = nullptr
 
- Protected Attributes inherited from PostProcBase< CLYCEvent >
TChain * m_trees
 for associating the trees from files More...
 
string m_treeName
 for storing the name of the tree More...
 
string m_branchName
 for storing the name of the branch More...
 
CLYCEventm_currentEvent
 for storing the current event More...
 
vector< string > m_loadedFiles
 for storing a list of loaded files More...
 
bool m_hasFile
 flag for wheter a file has been loaded More...
 

Additional Inherited Members

Detailed Description

this class is intended to work on TTrees made by reduceCLYCData()

Constructor & Destructor Documentation

◆ CLYCCalibAndAccum()

CLYCCalibAndAccum::CLYCCalibAndAccum ( )

Member Function Documentation

◆ createMultiGraphWithCuts()

void CLYCCalibAndAccum::createMultiGraphWithCuts ( std::vector< std::string >  a_cutList)

◆ createRawTOFHist()

void CLYCCalibAndAccum::createRawTOFHist ( )

◆ createRawTOFHistWithCuts()

void CLYCCalibAndAccum::createRawTOFHistWithCuts ( std::vector< std::string >  a_cutList)
Here is the call graph for this function:

◆ createRawTOFHistWithGraphCuts()

void CLYCCalibAndAccum::createRawTOFHistWithGraphCuts ( std::vector< std::string >  a_cutList)

◆ createTOFHist()

TH2 * CLYCCalibAndAccum::createTOFHist ( std::string  a_cut,
bool  saveHist = false 
)
Here is the call graph for this function:

◆ developWFTemplate() [1/2]

void CLYCCalibAndAccum::developWFTemplate ( )

◆ developWFTemplate() [2/2]

void CLYCCalibAndAccum::developWFTemplate ( std::string  a_config,
std::string  a_TCut 
)

◆ drawTrace()

void CLYCCalibAndAccum::drawTrace ( int  a_evNum,
bool  a_clearGraph = true 
)

◆ fitGammaPeaks()

void CLYCCalibAndAccum::fitGammaPeaks ( std::string  a_file,
std::string  a_config 
)
Here is the call graph for this function:

◆ genMonteCarloTOFHists()

void CLYCCalibAndAccum::genMonteCarloTOFHists ( std::string  a_outFile,
std::string  a_cut,
int  a_numTrials,
double  a_detDistance,
double  a_distError 
)

!!!!needs to be changed into correct bin structure

Here is the call graph for this function:

◆ getInvertedWFGraph()

TGraph* CLYCCalibAndAccum::getInvertedWFGraph ( int  a_evNum,
int  a_samples 
)

◆ getTOFCorrection()

std::map< std::string, double > CLYCCalibAndAccum::getTOFCorrection ( std::string  a_config,
double  a_distance 
)
Here is the call graph for this function:

◆ loadCut()

TCutG * CLYCCalibAndAccum::loadCut ( string  a_cutFile,
string  a_cutName 
)

◆ loadFileConfig()

std::map< std::string, std::pair< double, double > > CLYCCalibAndAccum::loadFileConfig ( std::string  a_config)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeGamma2DHists()

void CLYCCalibAndAccum::makeGamma2DHists ( std::string  a_config)
Here is the call graph for this function:

◆ readCutFile()

void CLYCCalibAndAccum::readCutFile ( std::string  a_fileName)
Here is the call graph for this function:

◆ riseTimes()

void CLYCCalibAndAccum::riseTimes ( std::string  a_clUpperCut,
std::string  a_clLowerCut,
std::string  a_liCut 
)

◆ runWFFitting()

void CLYCCalibAndAccum::runWFFitting ( )

Member Data Documentation

◆ m_cut

TCutG* CLYCCalibAndAccum::m_cut = nullptr
protected

◆ m_fileMap

std::map<std::string,std::pair< double , double > > CLYCCalibAndAccum::m_fileMap
protected

◆ m_timeCorrectionMap

std::map<std::string,double> CLYCCalibAndAccum::m_timeCorrectionMap
protected

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