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

#include <CLYCAnalysis.h>

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

Public Member Functions

 CLYCAnalysis ()
 
void fit4mMonteCarloHists (std::string a_histFile, int a_numTrials)
 
void fitMonteCarloHists (std::string a_histFile, int a_numTrials)
 
void loadXSConfigFile (std::string a_config)
 
void calculateMonteCarloXS (std::string a_rootFile, std::string a_xsFile, std::string a_covMatrix, std::string a_covEnergies, int a_size, int a_numTrials, double a_flightPath, double a_timeRes)
 
std::vector< double > loadENDFSixColumn (std::string a_file)
 
Eigen::MatrixXd loadCovarianceMatrix (std::string a_matrix, int a_size)
 
Eigen::MatrixXd choleskyDecomp (std::string a_file, int a_size)
 
TH1 * convertXStoHist (std::string a_file)
 
TH1 * convertXStoHist (std::vector< double > a_energyVec, std::vector< double > a_xsVec)
 
TH1 * convertLiXsUnctoHist (std::string a_file)
 
std::vector< double > avgXsOverCovBin (std::string a_xsFile, std::vector< double > a_covEnergies)
 
Eigen::MatrixXd makeLiUncorrCovMatrix (std::string a_xsWErrors)
 
std::vector< double > makeLiUncorrEnergies (std::string a_xsWErrors)
 
std::vector< double > makeLiUncorrUncVec (std::string a_xsWErrors)
 
double doInterpUncorrLiError (std::string a_xsFile, double a_energy)
 
void generateCovMatrix (std::string a_file, int a_trials)
 
double covariance (std::vector< double > a_windowVec1, std::vector< double > a_windowVec2, int N)
 
double weightedCovariance (std::vector< double > a_windowVec1, std::vector< double > a_windowVec2, std::vector< double > a_chiSqVecq1, std::vector< double > a_chiSqVecq2, int N)
 
double mean (std::vector< double > a_windowVec, int N)
 
double weightedMean (std::vector< double > a_xsVec, std::vector< double > a_chiSqVec)
 
void TESTloadENDFSixColumn (std::string a_file)
 
void TESTloadCovarianceMatrix (std::string a_matrix, std::string a_energies, int a_size)
 
TH1 * TESTconvertXStoHist (std::string a_file)
 
void TESTavgXsOverCovBin (std::string a_xsFile)
 
void calculateNeutronFlux ()
 
void efficiencyErrorMC (double a_energy)
 
void clipNoise (double a_minYValue, double a_maxYValue)
 
void getEventsInsideCut (std::string a_reducedDataFile)
 
void drawEventsInsideCut (std::string a_rawDataFile)
 
void buildNP0Xs (std::string a_config)
 
void loadAlphaHist (std::vector< std::string > a_fileAndHist)
 
void loadProtonHist (std::vector< std::string > a_fileAndHist)
 
void fitAlphaBand ()
 
void fitProtonBand ()
 
double liXSAverager (std::string a_file, double a_eLow, double a_eHigh)
 
void makeProjectionsForRadware (int a_timeBinWidth, int a_leftmostBin, int a_rightmostBin)
 
void testCovarianceError (std::string a_CovFile, std::string a_EnergyFile, int a_size)
 
void testCorrelationMatrix ()
 
void calculateClNP0XS (double a_flightPath, double a_timeRes)
 
- Public Member Functions inherited from CLYCCalibAndAccum
 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...
 

Additional Inherited Members

- Protected Attributes inherited from CLYCCalibAndAccum
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...
 

Constructor & Destructor Documentation

◆ CLYCAnalysis()

CLYCAnalysis::CLYCAnalysis ( )

Member Function Documentation

◆ avgXsOverCovBin()

std::vector< double > CLYCAnalysis::avgXsOverCovBin ( std::string  a_xsFile,
std::vector< double >  a_covEnergies 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ buildNP0Xs()

void CLYCAnalysis::buildNP0Xs ( std::string  a_config)
Here is the call graph for this function:

◆ calculateClNP0XS()

void CLYCAnalysis::calculateClNP0XS ( double  a_flightPath,
double  a_timeRes 
)
Here is the call graph for this function:

◆ calculateMonteCarloXS()

void CLYCAnalysis::calculateMonteCarloXS ( std::string  a_rootFile,
std::string  a_xsFile,
std::string  a_covMatrix,
std::string  a_covEnergies,
int  a_size,
int  a_numTrials,
double  a_flightPath,
double  a_timeRes 
)

!!This is hardoced and may need to be changed!!!

Here is the call graph for this function:

◆ calculateNeutronFlux()

void CLYCAnalysis::calculateNeutronFlux ( )
Here is the call graph for this function:

◆ choleskyDecomp()

Eigen::MatrixXd CLYCAnalysis::choleskyDecomp ( std::string  a_file,
int  a_size 
)
Here is the call graph for this function:

◆ clipNoise()

void CLYCAnalysis::clipNoise ( double  a_minYValue,
double  a_maxYValue 
)

◆ convertLiXsUnctoHist()

TH1 * CLYCAnalysis::convertLiXsUnctoHist ( std::string  a_file)
Here is the caller graph for this function:

◆ convertXStoHist() [1/2]

TH1 * CLYCAnalysis::convertXStoHist ( std::string  a_file)
Here is the caller graph for this function:

◆ convertXStoHist() [2/2]

TH1 * CLYCAnalysis::convertXStoHist ( std::vector< double >  a_energyVec,
std::vector< double >  a_xsVec 
)

◆ covariance()

double CLYCAnalysis::covariance ( std::vector< double >  a_windowVec1,
std::vector< double >  a_windowVec2,
int  N 
)
Here is the call graph for this function:

◆ doInterpUncorrLiError()

double CLYCAnalysis::doInterpUncorrLiError ( std::string  a_xsFile,
double  a_energy 
)

◆ drawEventsInsideCut()

void CLYCAnalysis::drawEventsInsideCut ( std::string  a_rawDataFile)
Here is the call graph for this function:

◆ efficiencyErrorMC()

void CLYCAnalysis::efficiencyErrorMC ( double  a_energy)

convert Eigen::vec to c++ vec

Here is the call graph for this function:

◆ fit4mMonteCarloHists()

void CLYCAnalysis::fit4mMonteCarloHists ( std::string  a_histFile,
int  a_numTrials 
)
Here is the call graph for this function:

◆ fitAlphaBand()

void CLYCAnalysis::fitAlphaBand ( )

◆ fitMonteCarloHists()

void CLYCAnalysis::fitMonteCarloHists ( std::string  a_histFile,
int  a_numTrials 
)

◆ fitProtonBand()

void CLYCAnalysis::fitProtonBand ( )

◆ generateCovMatrix()

void CLYCAnalysis::generateCovMatrix ( std::string  a_file,
int  a_trials 
)
Here is the call graph for this function:

◆ getEventsInsideCut()

void CLYCAnalysis::getEventsInsideCut ( std::string  a_reducedDataFile)
Here is the call graph for this function:

◆ liXSAverager()

double CLYCAnalysis::liXSAverager ( std::string  a_file,
double  a_eLow,
double  a_eHigh 
)
Here is the caller graph for this function:

◆ loadAlphaHist()

void CLYCAnalysis::loadAlphaHist ( std::vector< std::string >  a_fileAndHist)

◆ loadCovarianceMatrix()

Eigen::MatrixXd CLYCAnalysis::loadCovarianceMatrix ( std::string  a_matrix,
int  a_size 
)
Here is the call graph for this function:

◆ loadENDFSixColumn()

std::vector< double > CLYCAnalysis::loadENDFSixColumn ( std::string  a_file)
Here is the caller graph for this function:

◆ loadProtonHist()

void CLYCAnalysis::loadProtonHist ( std::vector< std::string >  a_fileAndHist)

◆ loadXSConfigFile()

void CLYCAnalysis::loadXSConfigFile ( std::string  a_config)
Here is the call graph for this function:

◆ makeLiUncorrCovMatrix()

Eigen::MatrixXd CLYCAnalysis::makeLiUncorrCovMatrix ( std::string  a_xsWErrors)
Here is the caller graph for this function:

◆ makeLiUncorrEnergies()

std::vector< double > CLYCAnalysis::makeLiUncorrEnergies ( std::string  a_xsWErrors)

◆ makeLiUncorrUncVec()

std::vector< double > CLYCAnalysis::makeLiUncorrUncVec ( std::string  a_xsWErrors)

◆ makeProjectionsForRadware()

void CLYCAnalysis::makeProjectionsForRadware ( int  a_timeBinWidth,
int  a_leftmostBin,
int  a_rightmostBin 
)

◆ mean()

double CLYCAnalysis::mean ( std::vector< double >  a_windowVec,
int  N 
)
Here is the caller graph for this function:

◆ TESTavgXsOverCovBin()

void CLYCAnalysis::TESTavgXsOverCovBin ( std::string  a_xsFile)
Here is the call graph for this function:

◆ TESTconvertXStoHist()

TH1 * CLYCAnalysis::TESTconvertXStoHist ( std::string  a_file)
Here is the call graph for this function:

◆ testCorrelationMatrix()

void CLYCAnalysis::testCorrelationMatrix ( )

◆ testCovarianceError()

void CLYCAnalysis::testCovarianceError ( std::string  a_CovFile,
std::string  a_EnergyFile,
int  a_size 
)

◆ TESTloadCovarianceMatrix()

void CLYCAnalysis::TESTloadCovarianceMatrix ( std::string  a_matrix,
std::string  a_energies,
int  a_size 
)
Here is the call graph for this function:

◆ TESTloadENDFSixColumn()

void CLYCAnalysis::TESTloadENDFSixColumn ( std::string  a_file)
Here is the call graph for this function:

◆ weightedCovariance()

double CLYCAnalysis::weightedCovariance ( std::vector< double >  a_windowVec1,
std::vector< double >  a_windowVec2,
std::vector< double >  a_chiSqVecq1,
std::vector< double >  a_chiSqVecq2,
int  N 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ weightedMean()

double CLYCAnalysis::weightedMean ( std::vector< double >  a_xsVec,
std::vector< double >  a_chiSqVec 
)
Here is the caller graph for this function:

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