ATLAS Offline Software
|
#include <ZDCNLCalibration.h>
Public Member Functions | |
ZDCNLCalibration (const std::string &file, int maxNLPower=3, bool useGRL=true, int debugLevel=0) | |
virtual | ~ZDCNLCalibration () |
std::array< float, 4 > | FindSNPeaks (size_t LBLow, size_t LBHigh, size_t side) |
std::pair< float, float > | FindSNRange (size_t LBLow, size_t LBHigh, size_t side) |
std::pair< std::pair< float, float >, std::pair< float, float > > | FindSNTwoNRanges (size_t LBLow, size_t LBHigh, size_t side) |
void | SetDefaultCalibration (size_t side, const CalibData &calib) |
void | Calibrate (size_t side, const std::string &calibInput, const std::string &calibOutput, size_t LBLow, size_t LBHigh, std::array< int, 4 > maxPowerModule, const std::vector< std::pair< double, double > > &nNeutERange, bool excludeHE, float heSumThresh, float HEDeweight) |
void | TestCalibration (int side, const std::string &calibName) |
TH1 * | GetTestSNHist () |
TH1 * | GetTestFracHist (size_t module) |
TTree * | GetTestTree () |
Public Attributes | |
std::array< std::map< std::string, CalibData >, 2 > | m_calibrations |
bool | m_haveTest {} |
TH1D * | m_testCalibSNHist {} |
std::array< TH1D *, 4 > | m_testCalibHEFracHist |
std::array< TH1D *, 4 > | m_testCalibEnergyHist |
TTree * | m_testTree {} |
Private Types | |
typedef std::multimap< unsigned int, std::pair< unsigned int, unsigned int > > | LBEvtMap |
Private Member Functions | |
void | FillLumiBlockEvtMap () |
void | FillMinimizationData (TMatrixD &minimMatrix, TVectorD &minimVector, std::array< int, 4 > maxPowerModule, float HEDeweight, const std::vector< std::vector< double > > &sums1DVec, const std::vector< double > &sumsHE, const std::vector< std::vector< double > > &sums2DVec, const std::vector< double > &sumsHE2D) |
void | AddCalibration (size_t side, const std::string &tag, const CalibData &calib) |
CalibData | GetCalibration (size_t side, const std::string &tag) |
void | AddToSums (std::vector< double > &sums1D, std::vector< double > &sums2D, float *amps) |
Static Private Member Functions | |
static double | CalculateEnergy (const float *moduleAmps, const CalibData &calib) |
Private Attributes | |
TFile * | m_TFile |
TTree * | m_tree |
size_t | m_maxNLPower |
bool | m_useGRL |
int | m_debugLevel |
const float | m_SNEnergy |
const std::vector< float > | m_HEFraction |
UInt_t | runNumber |
UInt_t | eventNumber |
UInt_t | lumiBlock |
UInt_t | bcid |
UInt_t | passBits |
Float_t | zdc_ZdcAmp [2] |
UInt_t | zdc_ZdcModuleMask |
Float_t | zdc_ZdcModuleAmp [2][4] |
Bool_t | L1_ZDC_A |
Bool_t | L1_ZDC_C |
Bool_t | L1_ZDC_AND |
Bool_t | L1_ZDC_A_C |
TBranch * | b_runNumber |
TBranch * | b_eventNumber |
TBranch * | b_lumiBlock |
TBranch * | b_bcid |
TBranch * | b_passBits |
TBranch * | b_zdc_ZdcAmp |
TBranch * | b_zdc_ZdcModuleMask |
TBranch * | b_zdc_ZdcModuleAmp |
TBranch * | b_L1_ZDC_A |
TBranch * | b_L1_ZDC_C |
TBranch * | b_L1_ZDC_AND |
TBranch * | b_L1_ZDC_A_C |
LBEvtMap | m_LumiBlockEvtMap |
Definition at line 55 of file ZDCNLCalibration.h.
|
private |
Definition at line 107 of file ZDCNLCalibration.h.
ZDCNLCalibration::ZDCNLCalibration | ( | const std::string & | file, |
int | maxNLPower = 3 , |
||
bool | useGRL = true , |
||
int | debugLevel = 0 |
||
) |
|
inlinevirtual |
Definition at line 122 of file ZDCNLCalibration.h.
|
private |
Definition at line 51 of file ZDCNLCalibration.cxx.
|
inlineprivate |
Definition at line 161 of file ZDCNLCalibration.h.
|
inlinestaticprivate |
Definition at line 187 of file ZDCNLCalibration.h.
void ZDCNLCalibration::Calibrate | ( | size_t | side, |
const std::string & | calibInput, | ||
const std::string & | calibOutput, | ||
size_t | LBLow, | ||
size_t | LBHigh, | ||
std::array< int, 4 > | maxPowerModule, | ||
const std::vector< std::pair< double, double > > & | nNeutERange, | ||
bool | excludeHE, | ||
float | heSumThresh, | ||
float | HEDeweight | ||
) |
Definition at line 197 of file ZDCNLCalibration.cxx.
|
private |
Definition at line 17 of file ZDCNLCalibration.cxx.
|
private |
Definition at line 484 of file ZDCNLCalibration.cxx.
std::array<float, 4> ZDCNLCalibration::FindSNPeaks | ( | size_t | LBLow, |
size_t | LBHigh, | ||
size_t | side | ||
) |
std::pair< float, float > ZDCNLCalibration::FindSNRange | ( | size_t | LBLow, |
size_t | LBHigh, | ||
size_t | side | ||
) |
Definition at line 72 of file ZDCNLCalibration.cxx.
std::pair< std::pair< float, float >, std::pair< float, float > > ZDCNLCalibration::FindSNTwoNRanges | ( | size_t | LBLow, |
size_t | LBHigh, | ||
size_t | side | ||
) |
Definition at line 128 of file ZDCNLCalibration.cxx.
Definition at line 61 of file ZDCNLCalibration.cxx.
|
inline |
Definition at line 142 of file ZDCNLCalibration.h.
|
inline |
Definition at line 141 of file ZDCNLCalibration.h.
|
inline |
Definition at line 144 of file ZDCNLCalibration.h.
Definition at line 130 of file ZDCNLCalibration.h.
void ZDCNLCalibration::TestCalibration | ( | int | side, |
const std::string & | calibName | ||
) |
Definition at line 372 of file ZDCNLCalibration.cxx.
|
private |
Definition at line 90 of file ZDCNLCalibration.h.
|
private |
Definition at line 88 of file ZDCNLCalibration.h.
|
private |
Definition at line 99 of file ZDCNLCalibration.h.
|
private |
Definition at line 102 of file ZDCNLCalibration.h.
|
private |
Definition at line 101 of file ZDCNLCalibration.h.
|
private |
Definition at line 100 of file ZDCNLCalibration.h.
|
private |
Definition at line 89 of file ZDCNLCalibration.h.
|
private |
Definition at line 92 of file ZDCNLCalibration.h.
|
private |
Definition at line 87 of file ZDCNLCalibration.h.
|
private |
Definition at line 94 of file ZDCNLCalibration.h.
|
private |
Definition at line 97 of file ZDCNLCalibration.h.
|
private |
Definition at line 96 of file ZDCNLCalibration.h.
|
private |
Definition at line 73 of file ZDCNLCalibration.h.
|
private |
Definition at line 71 of file ZDCNLCalibration.h.
|
private |
Definition at line 81 of file ZDCNLCalibration.h.
|
private |
Definition at line 84 of file ZDCNLCalibration.h.
|
private |
Definition at line 83 of file ZDCNLCalibration.h.
|
private |
Definition at line 82 of file ZDCNLCalibration.h.
|
private |
Definition at line 72 of file ZDCNLCalibration.h.
std::array<std::map<std::string, CalibData>, 2> ZDCNLCalibration::m_calibrations |
Definition at line 112 of file ZDCNLCalibration.h.
|
private |
Definition at line 62 of file ZDCNLCalibration.h.
bool ZDCNLCalibration::m_haveTest {} |
Definition at line 114 of file ZDCNLCalibration.h.
|
private |
Definition at line 67 of file ZDCNLCalibration.h.
|
private |
Definition at line 108 of file ZDCNLCalibration.h.
|
private |
Definition at line 60 of file ZDCNLCalibration.h.
|
private |
Definition at line 66 of file ZDCNLCalibration.h.
std::array<TH1D*, 4> ZDCNLCalibration::m_testCalibEnergyHist |
Definition at line 117 of file ZDCNLCalibration.h.
std::array<TH1D*, 4> ZDCNLCalibration::m_testCalibHEFracHist |
Definition at line 116 of file ZDCNLCalibration.h.
TH1D* ZDCNLCalibration::m_testCalibSNHist {} |
Definition at line 115 of file ZDCNLCalibration.h.
TTree* ZDCNLCalibration::m_testTree {} |
Definition at line 118 of file ZDCNLCalibration.h.
|
private |
Definition at line 57 of file ZDCNLCalibration.h.
|
private |
Definition at line 58 of file ZDCNLCalibration.h.
|
private |
Definition at line 61 of file ZDCNLCalibration.h.
|
private |
Definition at line 74 of file ZDCNLCalibration.h.
|
private |
Definition at line 70 of file ZDCNLCalibration.h.
|
private |
Definition at line 76 of file ZDCNLCalibration.h.
|
private |
Definition at line 79 of file ZDCNLCalibration.h.
|
private |
Definition at line 78 of file ZDCNLCalibration.h.