![]() |
ATLAS Offline Software
|
#include <ConstraintFit.h>
Public Member Functions | |
| ConstraintFit (const std::string &name) | |
| Create a proper constructor for Athena. | |
| ~ConstraintFit (void) | |
| StatusCode | initialize () |
| Initialize constraint fit. | |
| StatusCode | doMassFit (const ConstraintFitInput &input, ConstraintFitOutput &output) |
| Perform the constrained mass fit. | |
| double | getMassError (const ConstraintFitInput &firstInput, const ConstraintFitInput &secondInput=ConstraintFitInput()) |
| Calculate the mass error without fit - use just the inputs. | |
| double | getMassError (const ConstraintFitOutput &fitOutput, const ConstraintFitInput &extraInput=ConstraintFitInput()) |
| Calculate the mass error with the result of fit and possible additional input (4-vecs/cov mat) that has NOT been fit. | |
| double | getMassError (const ConstraintFitOutput &fitOutput, const ConstraintFitOutput &secondFitOutput) |
| Calculate the mass error with the result of two mass fits. | |
| void | addParticle (const xAOD::Muon &part, ConstraintFitInput &input, MassConstraintMuonType muonType=isCombMCMT) |
| Add muon to input, must provide the resolution Scale Factor. | |
| void | addParticle (const xAOD::Electron &part, float elEnergyRes, ConstraintFitInput &input) |
| Add electron to input, must provide the electron energy resolution. | |
| void | addFSRParticle (const xAOD::IParticle &part, const TLorentzVector &fsr4Vec, ConstraintFitInput &input) |
| Add in FSR photon to input, (energy resolution is obtain in method) | |
| virtual void | print () const |
| Print the state of the tool. | |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Additional helper functions, not directly mimicking Athena | |
| template<class T> | |
| const T * | getProperty (const std::string &name) const |
| Get one of the tool's properties. | |
| const std::string & | msg_level_name () const __attribute__((deprecated)) |
| A deprecated function for getting the message level's name. | |
| const std::string & | getName (const void *ptr) const |
| Get the name of an object that is / should be in the event store. | |
| SG::sgkey_t | getKey (const void *ptr) const |
| Get the (hashed) key of an object that is in the event store. | |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Private Types | |
| enum | TrackParameters { d0 = 0 , z0 = 1 , phi0 = 2 , theta = 3 , qOverP = 4 , qP = 4 , x = 0 , y = 1 , z = 2 } |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| int | massFitInterface (const ConstraintFitInput &theInput) |
| void | massFitRun (ConstraintFitOutput &output, double zresol=-1.) |
| double | getMassError (const std::vector< TLorentzVector > &particles, const std::vector< AmgMatrix(3, 3)> &covariances) |
| double | likelihoodMass2 (void) |
| double | likelihoodMass (double) |
| void | setIgnore (bool val) |
| bool | doSanityChecksOnCovariance (const TLorentzVector &vector, const AmgMatrix(5, 5)&covar) const |
| void | convertCovd0z0PhiThetaPToXYZ (const TLorentzVector &fourVec, const AmgMatrix(5, 5)&covard0z0PhiThetaP, AmgMatrix(5, 5)&covarXYZ) const |
| void | convertCovXYZTod0z0PhiThetaP (const std::vector< TLorentzVector > &particleList, const Amg::MatrixX &covarXYZ, Amg::MatrixX &covard0z0PhiThetaP) const |
| double | massFitCalculation (const Amg::MatrixX &var, double mass, Amg::MatrixX &p0) |
| double | massFit (const Amg::MatrixX &, const Amg::MatrixX &var, double mass, Amg::MatrixX &pOut, Amg::MatrixX &) |
| float | retrieve_eta_calo (const xAOD::IParticle &part) const |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| bool | m_conHasWidth |
| double | m_conMass |
| double | m_conWidth |
| double | m_resolution |
| bool | m_ignoreInputChecks |
| ToolHandle< CP::IEgammaCalibrationAndSmearingTool > | m_energyRescaler |
| ToolHandle< CP::IMuonCalibrationAndSmearingTool > | m_mu_resolSFTool |
| ConstraintFitInput | m_theInput |
| unsigned int | m_parameters |
| unsigned int | m_nobj |
| std::vector< double > | m_objmass |
| Amg::MatrixX | m_parametersInit |
| Amg::MatrixX | m_covarianceInit |
| Amg::MatrixX | m_parametersFinal |
| Amg::MatrixX | m_covarianceFinal |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 30 of file ConstraintFit.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
private |
| ZMassConstraint::ConstraintFit::ConstraintFit | ( | const std::string & | name | ) |
Create a proper constructor for Athena.
Create a constructor for standalone usage
Definition at line 13 of file ConstraintFit.cxx.
| ZMassConstraint::ConstraintFit::~ConstraintFit | ( | void | ) |
Definition at line 30 of file ConstraintFit.cxx.
|
virtual |
Add in FSR photon to input, (energy resolution is obtain in method)
Implements ZMassConstraint::IConstraintFit.
Definition at line 83 of file ConstraintFit.cxx.
|
virtual |
Add electron to input, must provide the electron energy resolution.
Implements ZMassConstraint::IConstraintFit.
Definition at line 310 of file ConstraintFit.cxx.
|
virtual |
Add muon to input, must provide the resolution Scale Factor.
Implements ZMassConstraint::IConstraintFit.
Definition at line 145 of file ConstraintFit.cxx.
|
private |
Definition at line 1127 of file ConstraintFit.cxx.
|
private |
build the Jacobian of the phi,theta,P --> px,py,pz
Definition at line 1158 of file ConstraintFit.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
virtual |
Perform the constrained mass fit.
Implements ZMassConstraint::IConstraintFit.
Definition at line 54 of file ConstraintFit.cxx.
|
private |
Definition at line 1090 of file ConstraintFit.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
protectedinherited |
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
|
inherited |
Get the (hashed) key of an object that is in the event store.
This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the SG::sgkey_t key for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
| ptr | The bare pointer to the object that the event store should know about |
Definition at line 119 of file AsgTool.cxx.
|
virtual |
Calculate the mass error without fit - use just the inputs.
Implements ZMassConstraint::IConstraintFit.
Definition at line 905 of file ConstraintFit.cxx.
|
virtual |
Calculate the mass error with the result of fit and possible additional input (4-vecs/cov mat) that has NOT been fit.
Implements ZMassConstraint::IConstraintFit.
Definition at line 929 of file ConstraintFit.cxx.
|
virtual |
Calculate the mass error with the result of two mass fits.
Implements ZMassConstraint::IConstraintFit.
Definition at line 954 of file ConstraintFit.cxx.
|
private |
Definition at line 976 of file ConstraintFit.cxx.
|
inherited |
Get the name of an object that is / should be in the event store.
This is a bit of a special one. StoreGateSvc and xAOD::TEvent both provide ways for getting the std::string name for an object that is in the store, based on a bare pointer. But they provide different interfaces for doing so.
In order to allow tools to efficiently perform this operation, they can use this helper function.
| ptr | The bare pointer to the object that the event store should know about |
Definition at line 106 of file AsgTool.cxx.
|
inherited |
Get one of the tool's properties.
|
virtual |
Initialize constraint fit.
Reimplemented from asg::AsgTool.
Definition at line 34 of file ConstraintFit.cxx.
|
overridevirtualinherited |
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
private |
Definition at line 434 of file ConstraintFit.cxx.
|
private |
Definition at line 502 of file ConstraintFit.cxx.
|
private |
Definition at line 856 of file ConstraintFit.cxx.
|
private |
Definition at line 786 of file ConstraintFit.cxx.
|
private |
Definition at line 384 of file ConstraintFit.cxx.
|
private |
Definition at line 584 of file ConstraintFit.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inherited |
A deprecated function for getting the message level's name.
Instead of using this, weirdly named function, user code should get the string name of the current minimum message level (in case they really need it...), with:
This function's name doesn't follow the ATLAS coding rules, and as such will be removed in the not too distant future.
Definition at line 101 of file AsgTool.cxx.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
|
virtualinherited |
Print the state of the tool.
Implements asg::IAsgTool.
Reimplemented in AsgHelloTool, HI::HIPileupTool, JetBottomUpSoftDrop, JetConstituentsRetriever, JetDumper, JetFinder, JetFromPseudojet, JetModifiedMassDrop, JetPileupLabelingTool, JetPruner, JetPseudojetRetriever, JetReclusterer, JetReclusteringTool, JetRecTool, JetRecursiveSoftDrop, JetSoftDrop, JetSplitter, JetSubStructureMomentToolsBase, JetToolRunner, JetTrimmer, JetTruthLabelingTool, KtDeltaRTool, and LundVariablesTool.
Definition at line 131 of file AsgTool.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
private |
Definition at line 1189 of file ConstraintFit.cxx.
|
inlineprivate |
Definition at line 100 of file ConstraintFit.h.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 109 of file ConstraintFit.h.
|
private |
Definition at line 110 of file ConstraintFit.h.
|
private |
Definition at line 111 of file ConstraintFit.h.
|
private |
Definition at line 126 of file ConstraintFit.h.
|
private |
Definition at line 124 of file ConstraintFit.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 116 of file ConstraintFit.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 113 of file ConstraintFit.h.
|
private |
Definition at line 117 of file ConstraintFit.h.
|
private |
Definition at line 121 of file ConstraintFit.h.
|
private |
Definition at line 122 of file ConstraintFit.h.
|
private |
Definition at line 120 of file ConstraintFit.h.
|
private |
Definition at line 125 of file ConstraintFit.h.
|
private |
Definition at line 123 of file ConstraintFit.h.
|
private |
Definition at line 112 of file ConstraintFit.h.
|
private |
Definition at line 119 of file ConstraintFit.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.