|
ATLAS Offline Software
|
Go to the documentation of this file.
47 if (
false == answer)
ATH_MSG_FATAL(
"Invalid neutral PFO Scale has been specified in PFlowUtils::PFOWeightTool");
53 return StatusCode::FAILURE;
56 int isInDenseEnvironment =
false;
57 float expectedEnergy = 0.0;
61 ATH_MSG_WARNING(
"This charged PFO did not have eflowRec_isInDenseEnvironment or eflowRec_tracksExpectedEnergyDeposit set");
62 return StatusCode::FAILURE;
65 if (
CP::EM == theNeutralPFOScale){
68 float EoverP = expectedEnergy/cpfo.
e();
72 }
else if(cpfo.
pt()<60
e3) {
73 float interpolf = (1.0 - (cpfo.
pt()-30000)/30000);
83 if(isInDenseEnvironment) {
88 else if (
CP::LC == theNeutralPFOScale){
89 if(!isInDenseEnvironment){
100 return StatusCode::SUCCESS;
107 return StatusCode::FAILURE;
114 if (
false == answer)
ATH_MSG_FATAL(
"Invalid neutral PFO Scale has been specified in PFlowUtils::PFOWeightTool");
118 if(cpfo.
pt()>100
e3) {
120 return StatusCode::FAILURE;
124 int isInDenseEnvironment = accDenseEnv(cpfo);
127 if (
CP::EM == theNeutralPFOScale){
132 ATH_MSG_VERBOSE(
"cpfo in dense environment? " << isInDenseEnvironment);
138 else if (
CP::LC == theNeutralPFOScale){
139 if(!isInDenseEnvironment){
149 return StatusCode::SUCCESS;
155 float expectedEnergy = accExpE(cpfo);
157 float EoverP = expectedEnergy/cpfo.
e();
160 }
else if(cpfo.
pt()<60
e3) {
161 float interpolf = (1.0 - (cpfo.
pt()-30000)/30000);
174 float expectedEnergy = accExpE(cpfo);
176 float EoverP = expectedEnergy/cpfo.
e();
PFO_JetMETConfig_inputScale
virtual double pt() const
The transverse momentum ( ) of the particle.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
bool attribute(PFODetails::PFOAttributes AttributeType, T &anAttribute) const
get a PFO Variable via enum
@ eflowRec_isInDenseEnvironment
Helper class to provide constant type-safe access to aux data.
virtual double pt() const override
#define ATH_MSG_VERBOSE(x)
Select isolated Photons, Electrons and Muons.
virtual double e() const
The total energy of the particle.
::StatusCode StatusCode
StatusCode definition for legacy code.
signal_t signalType() const
Class describing a particle flow object.
virtual double e() const override
The total energy of the particle.
@ eflowRec_tracksExpectedEnergyDeposit
#define ATH_MSG_WARNING(x)
A detector object made of other lower level object(s)