![]() |
ATLAS Offline Software
|
#include <TForwardElectronLikelihoodTool.h>
Public Member Functions | |
| TForwardElectronLikelihoodTool (const char *name="TForwardElectronLikelihoodTool") | |
| Standard constructor. | |
| StatusCode | initialize () |
| Initialize this class. | |
| const asg::AcceptInfo & | getAcceptInfo () const |
| accesss to the accept info object | |
| asg::AcceptData | accept (LikeEnumForward::LHAcceptVars_t &vars_struct) const |
| The main accept method: the actual cuts are applied here. | |
| asg::AcceptData | accept (double likelihood, double eta, double eT, double ip) const |
| asg::AcceptData | accept () const |
| Return dummy accept with only info. | |
| double | calculate (LikeEnumForward::LHCalcVars_t &vars_struct) const |
| double | calculate (double eta, double eT, double secondLambda, double lateral, double longitudinal, double centerLambda, double fracMax, double secondR, double significance, double secondDensity, double ip) const |
| void | setPDFFileName (const std::string &val) |
| Add an input file that holds the PDFs. | |
| void | setVariableNames (const std::string &val) |
| Define the variable names. | |
| int | loadVarHistograms (const std::string &vstr, unsigned int varIndex) |
| Load the variable histograms from the pdf file. | |
| void | setBinning (const std::string &val) |
| Define the binning. | |
| unsigned int | getBitmask (void) const |
| void | setBitmask (unsigned int val) |
| void | setLevel (MSG::Level lvl) |
| Change the current logging level. | |
Functions providing the same interface as AthMessaging | |
| bool | msgLvl (const MSG::Level lvl) const |
| Test the output level of the object. | |
| MsgStream & | msg () const |
| The standard message stream. | |
| MsgStream & | msg (const MSG::Level lvl) const |
| The standard message stream. | |
Public Attributes | |
| bool | m_doPileupCorrection |
| Apply a transform to zoom into the LH output peaks. | |
| std::vector< double > | m_cutLikelihood |
| cut on likelihood output | |
| std::vector< double > | m_cutLikelihoodPileupCorrectionA |
| the cut on the PU discriminant is adjusted as a function of nVtx cut + nVtx*cutA + cutB this is different from the procedure for central electrons | |
| std::vector< double > | m_cutLikelihoodPileupCorrectionB |
| pileup constant factor for cut on likelihood output | |
| std::string | m_variableNames |
| variables to use in the LH | |
| std::string | m_pdfFileName |
| Name of the pdf file. | |
Private Member Functions | |
| double | evaluateLikelihood (const std::vector< double > &varVector, double et, double eta, double ip=0) const |
| double | evaluateLikelihood (const std::vector< float > &varVector, double et, double eta, double ip=0) const |
| unsigned int | getLikelihoodBitmask (const std::string &vars) const |
| Mask out the variables ,out of all possible ones, that are not employed in the current configuration as read from the input config file. | |
| double | TransformLikelihoodOutput (double ps, double pb) const |
| Apply a transform to zoom into the LH output peaks. | |
| void | initMessaging () const |
| Initialize our message level and MessageSvc. | |
Static Private Member Functions | |
| static unsigned int | getLikelihoodEtaBin (double eta) |
| Eta binning for pdfs and discriminant cuts. | |
| static unsigned int | getLikelihoodEtHistBin (double eT) |
| Coarse Et binning. Used for the likelihood and discriminant pdfs. | |
| static unsigned int | getIpBin (double ip) |
| static std::string | getBinName (int etbin, int etabin, int ipbin, const std::string &iptype) |
Private Attributes | |
| unsigned int | m_variableBitMask |
| The bitmask corresponding to the variables in the likelihood. | |
| asg::AcceptInfo | m_acceptInfo |
| Accept info. | |
| std::string | m_ipBinning |
| Deprecated. | |
| TFile * | m_pdfFile {} |
| Pointer to the opened TFile that holds the PDFs. | |
| int | m_cutPosition_kinematicEta |
| The position of the kinematic cuts bit in the AcceptInfo return object, separate for eta/Et. | |
| int | m_cutPosition_kinematicEt |
| int | m_cutPosition_LH |
| The position of the likelihood cut bit in the AcceptInfo return object. | |
| std::unique_ptr< EGSelectors::SafeTH1 > | m_fPDFbins [2][IP_FBINS][s_fnEtBinsHist][s_fnEtaBins][s_fnVariables] |
| std::string | m_nm |
| Message source name. | |
| boost::thread_specific_ptr< MsgStream > | m_msg_tls |
| MsgStream instance (a std::cout like with print-out levels) | |
| std::atomic< IMessageSvc * > | m_imsg { nullptr } |
| MessageSvc pointer. | |
| std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
| Current logging level. | |
| std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
| Messaging initialized (initMessaging) | |
Static Private Attributes | |
| static const double | fIpBounds [IP_FBINS+1] |
| static const unsigned int | s_fnEtBinsHist |
| static const unsigned int | s_fnDiscEtBins |
| static const unsigned int | s_fnEtaBins = 10 |
| static const unsigned int | s_fnVariables = 8 |
| static const std::string | fVariables [s_fnVariables] |
Definition at line 86 of file TForwardElectronLikelihoodTool.h.
| Root::TForwardElectronLikelihoodTool::TForwardElectronLikelihoodTool | ( | const char * | name = "TForwardElectronLikelihoodTool" | ) |
Standard constructor.
Definition at line 22 of file TForwardElectronLikelihoodTool.cxx.
|
inline |
Return dummy accept with only info.
Definition at line 109 of file TForwardElectronLikelihoodTool.h.
| asg::AcceptData Root::TForwardElectronLikelihoodTool::accept | ( | double | likelihood, |
| double | eta, | ||
| double | eT, | ||
| double | ip ) const |
Definition at line 192 of file TForwardElectronLikelihoodTool.cxx.
| asg::AcceptData Root::TForwardElectronLikelihoodTool::accept | ( | LikeEnumForward::LHAcceptVars_t & | vars_struct | ) | const |
The main accept method: the actual cuts are applied here.
Definition at line 210 of file TForwardElectronLikelihoodTool.cxx.
| double Root::TForwardElectronLikelihoodTool::calculate | ( | double | eta, |
| double | eT, | ||
| double | secondLambda, | ||
| double | lateral, | ||
| double | longitudinal, | ||
| double | centerLambda, | ||
| double | fracMax, | ||
| double | secondR, | ||
| double | significance, | ||
| double | secondDensity, | ||
| double | ip ) const |
Definition at line 274 of file TForwardElectronLikelihoodTool.cxx.
| double Root::TForwardElectronLikelihoodTool::calculate | ( | LikeEnumForward::LHCalcVars_t & | vars_struct | ) | const |
Definition at line 303 of file TForwardElectronLikelihoodTool.cxx.
|
private |
Definition at line 335 of file TForwardElectronLikelihoodTool.cxx.
|
private |
Definition at line 321 of file TForwardElectronLikelihoodTool.cxx.
|
inline |
|
staticprivate |
Definition at line 473 of file TForwardElectronLikelihoodTool.cxx.
|
inline |
Definition at line 140 of file TForwardElectronLikelihoodTool.h.
|
staticprivate |
Definition at line 431 of file TForwardElectronLikelihoodTool.cxx.
|
private |
Mask out the variables ,out of all possible ones, that are not employed in the current configuration as read from the input config file.
Definition at line 493 of file TForwardElectronLikelihoodTool.cxx.
|
staticprivate |
Eta binning for pdfs and discriminant cuts.
Definition at line 442 of file TForwardElectronLikelihoodTool.cxx.
|
staticprivate |
Coarse Et binning. Used for the likelihood and discriminant pdfs.
Definition at line 455 of file TForwardElectronLikelihoodTool.cxx.
| StatusCode Root::TForwardElectronLikelihoodTool::initialize | ( | ) |
Initialize this class.
Definition at line 36 of file TForwardElectronLikelihoodTool.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
| int Root::TForwardElectronLikelihoodTool::loadVarHistograms | ( | const std::string & | vstr, |
| unsigned int | varIndex ) |
Load the variable histograms from the pdf file.
Definition at line 132 of file TForwardElectronLikelihoodTool.cxx.
|
inherited |
The standard message stream.
Definition at line 49 of file AsgMessaging.cxx.
|
inherited |
The standard message stream.
| lvl | The message level to set the stream to |
Definition at line 57 of file AsgMessaging.cxx.
|
inherited |
Test the output level of the object.
| lvl | The message level to test against |
true If messages at level "lvl" will be printed Definition at line 41 of file AsgMessaging.cxx.
|
inline |
|
inline |
Definition at line 141 of file TForwardElectronLikelihoodTool.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inline |
Add an input file that holds the PDFs.
Definition at line 125 of file TForwardElectronLikelihoodTool.h.
|
inline |
Define the variable names.
Definition at line 128 of file TForwardElectronLikelihoodTool.h.
|
private |
Apply a transform to zoom into the LH output peaks.
Optionally do pileup correction too
Definition at line 404 of file TForwardElectronLikelihoodTool.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
staticprivate |
Definition at line 11 of file TForwardElectronLikelihoodTool.h.
|
staticprivate |
Definition at line 17 of file TForwardElectronLikelihoodTool.h.
|
private |
Accept info.
Definition at line 216 of file TForwardElectronLikelihoodTool.h.
| std::vector<double> Root::TForwardElectronLikelihoodTool::m_cutLikelihood |
cut on likelihood output
Definition at line 183 of file TForwardElectronLikelihoodTool.h.
| std::vector<double> Root::TForwardElectronLikelihoodTool::m_cutLikelihoodPileupCorrectionA |
the cut on the PU discriminant is adjusted as a function of nVtx cut + nVtx*cutA + cutB this is different from the procedure for central electrons
pileup slope factor for cut on likelihood output
Definition at line 189 of file TForwardElectronLikelihoodTool.h.
| std::vector<double> Root::TForwardElectronLikelihoodTool::m_cutLikelihoodPileupCorrectionB |
pileup constant factor for cut on likelihood output
Definition at line 191 of file TForwardElectronLikelihoodTool.h.
|
private |
Definition at line 227 of file TForwardElectronLikelihoodTool.h.
|
private |
The position of the kinematic cuts bit in the AcceptInfo return object, separate for eta/Et.
Definition at line 226 of file TForwardElectronLikelihoodTool.h.
|
private |
The position of the likelihood cut bit in the AcceptInfo return object.
Definition at line 229 of file TForwardElectronLikelihoodTool.h.
| bool Root::TForwardElectronLikelihoodTool::m_doPileupCorrection |
Apply a transform to zoom into the LH output peaks.
Eta binning for pdfs and discriminant cuts. Et binning for for the likelihood pdfs and discriminants.
do pileup-dependent correction on discriminant value
Definition at line 181 of file TForwardElectronLikelihoodTool.h.
|
private |
Definition at line 240 of file TForwardElectronLikelihoodTool.h.
|
mutableprivateinherited |
|
private |
Deprecated.
Definition at line 219 of file TForwardElectronLikelihoodTool.h.
|
mutableprivateinherited |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
Pointer to the opened TFile that holds the PDFs.
Definition at line 222 of file TForwardElectronLikelihoodTool.h.
| std::string Root::TForwardElectronLikelihoodTool::m_pdfFileName |
Name of the pdf file.
Definition at line 195 of file TForwardElectronLikelihoodTool.h.
|
private |
The bitmask corresponding to the variables in the likelihood.
For internal use.
Definition at line 213 of file TForwardElectronLikelihoodTool.h.
| std::string Root::TForwardElectronLikelihoodTool::m_variableNames |
variables to use in the LH
Definition at line 193 of file TForwardElectronLikelihoodTool.h.
|
staticprivate |
Definition at line 234 of file TForwardElectronLikelihoodTool.h.
|
staticprivate |
Definition at line 236 of file TForwardElectronLikelihoodTool.h.
|
staticprivate |
Definition at line 232 of file TForwardElectronLikelihoodTool.h.
|
staticprivate |
Definition at line 237 of file TForwardElectronLikelihoodTool.h.