Commit 19500f1f authored by Christos Anastopoulos's avatar Christos Anastopoulos
Browse files

xAODEgamma: Remove possibly unused methods

parent 7e7fea0e
...@@ -23,46 +23,46 @@ namespace xAOD { ...@@ -23,46 +23,46 @@ namespace xAOD {
/// Explicit Instantiation of Template /// Explicit Instantiation of Template
const SG::AuxElement::Accessor< float >* const SG::AuxElement::Accessor< float >*
showerShapeAccessorV1( xAOD::EgammaParameters::ShowerShapeType type ) showerShapeAccessorV1( xAOD::EgammaParameters::ShowerShapeType type )
{ {
switch( type ) { switch( type ) {
DEFINE_ACCESSOR( float, e011 ); DEFINE_ACCESSOR( float, e011 );
DEFINE_ACCESSOR( float, e033 ); DEFINE_ACCESSOR( float, e033 );
DEFINE_ACCESSOR( float, e132 ); DEFINE_ACCESSOR( float, e132 );
DEFINE_ACCESSOR( float, e1152 ); DEFINE_ACCESSOR( float, e1152 );
DEFINE_ACCESSOR( float, ethad1 ); DEFINE_ACCESSOR( float, ethad1 );
DEFINE_ACCESSOR( float, ethad ); DEFINE_ACCESSOR( float, ethad );
DEFINE_ACCESSOR( float, ehad1 ); DEFINE_ACCESSOR( float, ehad1 );
DEFINE_ACCESSOR( float, f1 ); DEFINE_ACCESSOR( float, f1 );
DEFINE_ACCESSOR( float, f3 ); DEFINE_ACCESSOR( float, f3 );
DEFINE_ACCESSOR( float, f1core ); DEFINE_ACCESSOR( float, f1core );
DEFINE_ACCESSOR( float, f3core ); DEFINE_ACCESSOR( float, f3core );
DEFINE_ACCESSOR( float, e233 ); DEFINE_ACCESSOR( float, e233 );
DEFINE_ACCESSOR( float, e235 ); DEFINE_ACCESSOR( float, e235 );
DEFINE_ACCESSOR( float, e255 ); DEFINE_ACCESSOR( float, e255 );
DEFINE_ACCESSOR( float, e237 ); DEFINE_ACCESSOR( float, e237 );
DEFINE_ACCESSOR( float, e277 ); DEFINE_ACCESSOR( float, e277 );
DEFINE_ACCESSOR( float, e333 ); DEFINE_ACCESSOR( float, e333 );
DEFINE_ACCESSOR( float, e335 ); DEFINE_ACCESSOR( float, e335 );
DEFINE_ACCESSOR( float, e337 ); DEFINE_ACCESSOR( float, e337 );
DEFINE_ACCESSOR( float, e377 ); DEFINE_ACCESSOR( float, e377 );
DEFINE_ACCESSOR( float, weta1 ); DEFINE_ACCESSOR( float, weta1 );
DEFINE_ACCESSOR( float, weta2 ); DEFINE_ACCESSOR( float, weta2 );
DEFINE_ACCESSOR( float, e2ts1 ); DEFINE_ACCESSOR( float, e2ts1 );
DEFINE_ACCESSOR( float, e2tsts1 ); DEFINE_ACCESSOR( float, e2tsts1 );
DEFINE_ACCESSOR( float, fracs1 ); DEFINE_ACCESSOR( float, fracs1 );
DEFINE_ACCESSOR( float, widths1 ); DEFINE_ACCESSOR( float, widths1 );
DEFINE_ACCESSOR( float, widths2 ); DEFINE_ACCESSOR( float, widths2 );
DEFINE_ACCESSOR( float, poscs1 ); DEFINE_ACCESSOR( float, poscs1 );
DEFINE_ACCESSOR( float, poscs2 ); DEFINE_ACCESSOR( float, poscs2 );
DEFINE_ACCESSOR( float, asy1 ); DEFINE_ACCESSOR( float, asy1 );
DEFINE_ACCESSOR( float, pos ); DEFINE_ACCESSOR( float, pos );
DEFINE_ACCESSOR( float, pos7 ); DEFINE_ACCESSOR( float, pos7 );
DEFINE_ACCESSOR( float, barys1 ); DEFINE_ACCESSOR( float, barys1 );
DEFINE_ACCESSOR( float, wtots1 ); DEFINE_ACCESSOR( float, wtots1 );
DEFINE_ACCESSOR( float, emins1 ); DEFINE_ACCESSOR( float, emins1 );
DEFINE_ACCESSOR( float, emaxs1 ); DEFINE_ACCESSOR( float, emaxs1 );
DEFINE_ACCESSOR( float, r33over37allcalo ); DEFINE_ACCESSOR( float, r33over37allcalo );
DEFINE_ACCESSOR( float, ecore ); DEFINE_ACCESSOR( float, ecore );
DEFINE_ACCESSOR( float, Reta ); DEFINE_ACCESSOR( float, Reta );
DEFINE_ACCESSOR( float, Rphi ); DEFINE_ACCESSOR( float, Rphi );
...@@ -70,48 +70,12 @@ namespace xAOD { ...@@ -70,48 +70,12 @@ namespace xAOD {
DEFINE_ACCESSOR( float, Rhad ); DEFINE_ACCESSOR( float, Rhad );
DEFINE_ACCESSOR( float, Rhad1 ); DEFINE_ACCESSOR( float, Rhad1 );
DEFINE_ACCESSOR( float, DeltaE ); DEFINE_ACCESSOR( float, DeltaE );
default: default:
std::cerr << "xAOD::Egamma ERROR Unknown float ShowerShapeType (" std::cerr << "xAOD::Egamma ERROR Unknown float ShowerShapeType ("
<< type << ") requested" << std::endl; << type << ") requested" << std::endl;
return nullptr; return nullptr;
} }
}
const SG::AuxElement::Accessor< char >*
selectionMenuAccessorV1( xAOD::EgammaParameters::SelectionMenu menu )
{
switch( menu ) {
DEFINE_ACCESSOR( char, Loose);
DEFINE_ACCESSOR( char, Medium);
DEFINE_ACCESSOR( char, Tight);
DEFINE_ACCESSOR( char, LHLoose);
DEFINE_ACCESSOR( char, LHMedium);
DEFINE_ACCESSOR( char, LHTight);
DEFINE_ACCESSOR( char, MultiLepton);
default:
std::cerr << "xAOD::Egamma ERROR Unknown char ElectronSelectionMenu ("
<< menu << ") requested" << std::endl;
return nullptr;
}
}
const SG::AuxElement::Accessor< unsigned int >*
selectionisEMAccessorV1( xAOD::EgammaParameters::SelectionisEM isEM )
{
switch( isEM ) {
DEFINE_ACCESSOR( unsigned int, isEMLoose);
DEFINE_ACCESSOR( unsigned int, isEMMedium);
DEFINE_ACCESSOR( unsigned int, isEMTight);
DEFINE_ACCESSOR( unsigned int, isEMLHLoose);
DEFINE_ACCESSOR( unsigned int, isEMLHMedium);
DEFINE_ACCESSOR( unsigned int, isEMLHTight);
DEFINE_ACCESSOR( unsigned int, isEMMultiLepton);
default:
std::cerr << "xAOD::Egamma ERROR Unknown unsigned int ElectronSelectionisEM ("
<< isEM << ") requested" << std::endl;
return nullptr;
}
} }
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "xAODEgamma/EgammaContainer.h" #include "xAODEgamma/EgammaContainer.h"
#include "EgammaAccessors_v1.h" #include "EgammaAccessors_v1.h"
#include "xAODPrimitives/tools/getIsolationAccessor.h" #include "xAODPrimitives/tools/getIsolationAccessor.h"
#include "xAODPrimitives/tools/getIsolationCorrectionAccessor.h" #include "xAODPrimitives/tools/getIsolationCorrectionAccessor.h"
#include "EventPrimitives/EventPrimitivesHelpers.h" #include "EventPrimitives/EventPrimitivesHelpers.h"
#include <stdexcept> #include <stdexcept>
...@@ -53,8 +53,8 @@ Egamma_v1::Egamma_v1(const Egamma_v1& eg) : IParticle(eg) { ...@@ -53,8 +53,8 @@ Egamma_v1::Egamma_v1(const Egamma_v1& eg) : IParticle(eg) {
Egamma_v1& Egamma_v1::operator=(const Egamma_v1& eg ){ Egamma_v1& Egamma_v1::operator=(const Egamma_v1& eg ){
if (this != &eg){ // protect against invalid self-assignment if (this != &eg){ // protect against invalid self-assignment
if (!this->container() && !this->hasStore() ) { if (!this->container() && !this->hasStore() ) {
makePrivateStore(); makePrivateStore();
} }
this->IParticle::operator=( eg ); this->IParticle::operator=( eg );
...@@ -89,17 +89,17 @@ Egamma_v1::GenVecFourMom_t Egamma_v1::genvecP4() const { ...@@ -89,17 +89,17 @@ Egamma_v1::GenVecFourMom_t Egamma_v1::genvecP4() const {
} }
double Egamma_v1::e() const{ double Egamma_v1::e() const{
return genvecP4().E(); return genvecP4().E();
} }
double Egamma_v1::rapidity() const { double Egamma_v1::rapidity() const {
return genvecP4().Rapidity(); return genvecP4().Rapidity();
} }
Egamma_v1::FourMom_t Egamma_v1::p4() const { Egamma_v1::FourMom_t Egamma_v1::p4() const {
FourMom_t p4; FourMom_t p4;
p4.SetPtEtaPhiM( pt(), eta(), phi(),m()); p4.SetPtEtaPhiM( pt(), eta(), phi(),m());
return p4; return p4;
} }
void Egamma_v1::setP4(float pt, float eta, float phi, float m){ void Egamma_v1::setP4(float pt, float eta, float phi, float m){
...@@ -139,15 +139,15 @@ Egamma_v1::EgammaCovMatrix_t Egamma_v1::covMatrix() const{ ...@@ -139,15 +139,15 @@ Egamma_v1::EgammaCovMatrix_t Egamma_v1::covMatrix() const{
EgammaCovMatrix_t cov; EgammaCovMatrix_t cov;
cov.setZero(); cov.setZero();
if(!acc.isAvailable(*this) ) { if(!acc.isAvailable(*this) ) {
return cov; return cov;
} }
const std::vector<float>& v = acc(*this); const std::vector<float>& v = acc(*this);
size_t size= v.size(); size_t size= v.size();
if(size==16){ if(size==16){
//up to 21.0.11 //up to 21.0.11
cov = Eigen::Map<const EgammaCovMatrix_t> (v.data()); cov = Eigen::Map<const EgammaCovMatrix_t> (v.data());
} }
else { else {
//from >21.0.11 //from >21.0.11
EgammaCovMatrix_t cov; EgammaCovMatrix_t cov;
...@@ -163,7 +163,7 @@ void Egamma_v1::setCovMatrix(const Egamma_v1::EgammaCovMatrix_t& cov){ ...@@ -163,7 +163,7 @@ void Egamma_v1::setCovMatrix(const Egamma_v1::EgammaCovMatrix_t& cov){
MatrixHelpers::compress(cov,acc(*this)); MatrixHelpers::compress(cov,acc(*this));
} }
///egamma author ///egamma author
uint16_t Egamma_v1::author(uint16_t mask) const { uint16_t Egamma_v1::author(uint16_t mask) const {
static const Accessor< uint16_t > acc( "author" ); static const Accessor< uint16_t > acc( "author" );
uint16_t author = acc(*this); uint16_t author = acc(*this);
...@@ -210,7 +210,7 @@ bool Egamma_v1::showerShapeValue(float& value, const EgammaParameters::ShowerSha ...@@ -210,7 +210,7 @@ bool Egamma_v1::showerShapeValue(float& value, const EgammaParameters::ShowerSha
if( !acc ) { if( !acc ) {
return false; return false;
} }
if(!acc->isAvailable(*this) ) { if(!acc->isAvailable(*this) ) {
return false; return false;
} }
// Retrieve the value: // Retrieve the value:
...@@ -279,7 +279,7 @@ bool Egamma_v1::setIsolation(float value, const Iso::IsolationType information) ...@@ -279,7 +279,7 @@ bool Egamma_v1::setIsolation(float value, const Iso::IsolationType information)
} }
///Isolation corrections ///Isolation corrections
bool Egamma_v1::isolationCaloCorrection(float& value, const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection corr, bool Egamma_v1::isolationCaloCorrection(float& value, const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection corr,
const Iso::IsolationCorrectionParameter param) const{ const Iso::IsolationCorrectionParameter param) const{
const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr,param); const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr,param);
if(!acc.isAvailable(*this) ) { if(!acc.isAvailable(*this) ) {
...@@ -290,7 +290,7 @@ bool Egamma_v1::isolationCaloCorrection(float& value, const Iso::IsolationFlavou ...@@ -290,7 +290,7 @@ bool Egamma_v1::isolationCaloCorrection(float& value, const Iso::IsolationFlavou
return true; return true;
} }
float Egamma_v1::isolationCaloCorrection(const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection corr, float Egamma_v1::isolationCaloCorrection(const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection corr,
const Iso::IsolationCorrectionParameter param) const{ const Iso::IsolationCorrectionParameter param) const{
const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr,param); const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr,param);
...@@ -298,7 +298,7 @@ float Egamma_v1::isolationCaloCorrection(const Iso::IsolationFlavour flavour, co ...@@ -298,7 +298,7 @@ float Egamma_v1::isolationCaloCorrection(const Iso::IsolationFlavour flavour, co
return acc(*this); return acc(*this);
} }
bool Egamma_v1::setIsolationCaloCorrection(float value, const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection corr, bool Egamma_v1::setIsolationCaloCorrection(float value, const Iso::IsolationFlavour flavour, const Iso::IsolationCaloCorrection corr,
const Iso::IsolationCorrectionParameter param){ const Iso::IsolationCorrectionParameter param){
const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr,param); const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr,param);
// Set the value: // Set the value:
...@@ -338,7 +338,7 @@ bool Egamma_v1::isolationTrackCorrection(float& value, const Iso::IsolationFlavo ...@@ -338,7 +338,7 @@ bool Egamma_v1::isolationTrackCorrection(float& value, const Iso::IsolationFlavo
return true; return true;
} }
float Egamma_v1::isolationTrackCorrection(const Iso::IsolationFlavour flavour, const Iso::IsolationTrackCorrection corr) const{ float Egamma_v1::isolationTrackCorrection(const Iso::IsolationFlavour flavour, const Iso::IsolationTrackCorrection corr) const{
const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr); const SG::AuxElement::Accessor< float > acc = getIsolationCorrectionAccessor(flavour,corr);
if( !acc.isAvailable(*this) ) {throw std::runtime_error( "Unknown/Unavailable Isolation correction requested" );} if( !acc.isAvailable(*this) ) {throw std::runtime_error( "Unknown/Unavailable Isolation correction requested" );}
return acc(*this); return acc(*this);
...@@ -411,58 +411,10 @@ Egamma_v1::caloClusterLink( size_t index ) const { ...@@ -411,58 +411,10 @@ Egamma_v1::caloClusterLink( size_t index ) const {
AUXSTORE_OBJECT_SETTER_AND_GETTER( Egamma_v1, Egamma_v1::CLELVec_t, AUXSTORE_OBJECT_SETTER_AND_GETTER( Egamma_v1, Egamma_v1::CLELVec_t,
caloClusterLinks, setCaloClusterLinks) caloClusterLinks, setCaloClusterLinks)
///Selectors / isEM and all that
///First with enums (static accessor no lookup => faster but less flexible)
bool Egamma_v1::passSelection(bool& value, const xAOD::EgammaParameters::SelectionMenu menu ) const {
const SG::AuxElement::Accessor< char >* acc = selectionMenuAccessorV1( menu );
if( !acc ) {
return false;
}
if(!acc->isAvailable(*this) ) {
return false;
}
value= (*acc)(*this);
return true;
}
bool Egamma_v1::passSelection(const xAOD::EgammaParameters::SelectionMenu menu ) const {
const SG::AuxElement::Accessor< char >* acc = selectionMenuAccessorV1( menu );
if(!acc ) throw std::runtime_error( "Unknown/Unavailable bool selection menu requested" );
return (*acc)(*this);
}
void Egamma_v1::setPassSelection(bool value, const xAOD::EgammaParameters::SelectionMenu menu){
const SG::AuxElement::Accessor< char >* acc = selectionMenuAccessorV1( menu );
( *acc )(*this)=value;
}
bool Egamma_v1::selectionisEM(unsigned int& value, const xAOD::EgammaParameters::SelectionisEM isEM) const {
const SG::AuxElement::Accessor< unsigned int >* acc = selectionisEMAccessorV1( isEM );
if(!acc ) {
return false;
}
if(!acc->isAvailable(*this) ) {
return false;
}
value= (*acc)(*this);
return true;
}
unsigned int Egamma_v1::selectionisEM(const xAOD::EgammaParameters::SelectionisEM isEM) const {
const SG::AuxElement::Accessor< unsigned int >* acc = selectionisEMAccessorV1( isEM );
if(!acc ) throw std::runtime_error( "Unknown/Unavailable unsigned int isEM requested" );
return (*acc)(*this);
}
void Egamma_v1::setSelectionisEM(unsigned int value, const xAOD::EgammaParameters::SelectionisEM isEM){
const SG::AuxElement::Accessor< unsigned int >* acc = selectionisEMAccessorV1( isEM );
( *acc )(*this)=value;
}
///Then with strings (full flexibility when adding new menus dynamically) ///Then with strings (full flexibility when adding new menus dynamically)
bool Egamma_v1::passSelection(bool& value, const std::string& menu ) const { bool Egamma_v1::passSelection(bool& value, const std::string& menu ) const {
const SG::AuxElement::Accessor< char > acc( menu ); const SG::AuxElement::Accessor< char > acc( menu );
if(!acc.isAvailable(*this) ) { if(!acc.isAvailable(*this) ) {
return false; return false;
} }
value= acc(*this); value= acc(*this);
...@@ -481,7 +433,7 @@ void Egamma_v1::setPassSelection(bool value, const std::string& menu){ ...@@ -481,7 +433,7 @@ void Egamma_v1::setPassSelection(bool value, const std::string& menu){
bool Egamma_v1::selectionisEM(unsigned int& value, const std::string& isEM) const{ bool Egamma_v1::selectionisEM(unsigned int& value, const std::string& isEM) const{
const SG::AuxElement::Accessor< unsigned int > acc( isEM ); const SG::AuxElement::Accessor< unsigned int > acc( isEM );
if(!acc.isAvailable(*this) ) { if(!acc.isAvailable(*this) ) {
return false; return false;
} }
value= acc(*this); value= acc(*this);
...@@ -500,7 +452,7 @@ void Egamma_v1::setSelectionisEM(unsigned int value, const std::string& isEM){ ...@@ -500,7 +452,7 @@ void Egamma_v1::setSelectionisEM(unsigned int value, const std::string& isEM){
bool Egamma_v1::likelihoodValue(float& value, const std::string& LHValue/*=std::string("LHValue")*/) const{ bool Egamma_v1::likelihoodValue(float& value, const std::string& LHValue/*=std::string("LHValue")*/) const{
const SG::AuxElement::Accessor<float> acc( LHValue ); const SG::AuxElement::Accessor<float> acc( LHValue );
if(!acc.isAvailable(*this) ) { if(!acc.isAvailable(*this) ) {
return false; return false;
} }
value= acc(*this); value= acc(*this);
......
...@@ -29,7 +29,7 @@ namespace xAOD { ...@@ -29,7 +29,7 @@ namespace xAOD {
/** @brief Electron reconstructed by the Forward cluster-based algorithm */ /** @brief Electron reconstructed by the Forward cluster-based algorithm */
const uint16_t AuthorFwdElectron=0x8; const uint16_t AuthorFwdElectron=0x8;
/** @brief Object Reconstructed by standard cluster-based algorithm. Ambiguous ==> can be either Electron or Photon */ /** @brief Object Reconstructed by standard cluster-based algorithm. Ambiguous ==> can be either Electron or Photon */
const uint16_t AuthorAmbiguous=0x10; const uint16_t AuthorAmbiguous=0x10;
/** @brief trigger Electrons */ /** @brief trigger Electrons */
const uint16_t AuthorTrigElectron=0x20; const uint16_t AuthorTrigElectron=0x20;
/** @brief trigger Photons */ /** @brief trigger Photons */
...@@ -112,24 +112,24 @@ namespace xAOD { ...@@ -112,24 +112,24 @@ namespace xAOD {
}; };
/** @brief */ /** @brief */
const uint32_t BADCLUSELECTRON = const uint32_t BADCLUSELECTRON =
0x1 << MaskedCellCore | 0x1 << MaskedCellCore |
0x1 << MissingFEBCellCore | 0x1 << MissingFEBCellCore |
0x1 << MissingFEBCellEdgeS1 | 0x1 << MissingFEBCellEdgeS1 |
0x1 << MissingFEBCellEdgeS2 | 0x1 << MissingFEBCellEdgeS2 |
0x1 << DeadHVS1S2S3Core | 0x1 << DeadHVS1S2S3Core |
0x1 << DeadHVS1S2S3Edge ; 0x1 << DeadHVS1S2S3Edge ;
const uint32_t BADCLUSPHOTON = const uint32_t BADCLUSPHOTON =
0x1 << MaskedCellCore | 0x1 << MaskedCellCore |
0x1 << MissingFEBCellCore | 0x1 << MissingFEBCellCore |
0x1 << MissingFEBCellEdgeS1 | 0x1 << MissingFEBCellEdgeS1 |
0x1 << MissingFEBCellEdgeS2 | 0x1 << MissingFEBCellEdgeS2 |
0x1 << DeadHVS1S2S3Core | 0x1 << DeadHVS1S2S3Core |
0x1 << DeadHVS1S2S3Edge | 0x1 << DeadHVS1S2S3Edge |
0x1 << BadS1Core; 0x1 << BadS1Core;
const uint32_t ALLOQ= 0xFFFFFFFF; const uint32_t ALLOQ= 0xFFFFFFFF;
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#include "xAODEgamma/EgammaEnums.h" #include "xAODEgamma/EgammaEnums.h"
//CaloCluster include //CaloCluster include
#include "xAODCaloEvent/CaloCluster.h" #include "xAODCaloEvent/CaloCluster.h"
#include "xAODCaloEvent/CaloClusterContainer.h" #include "xAODCaloEvent/CaloClusterContainer.h"
//xAOD Primitives //xAOD Primitives
#include "xAODPrimitives/IsolationCorrection.h" #include "xAODPrimitives/IsolationCorrection.h"
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
namespace xAOD { namespace xAOD {
/// @class xAOD::Egamma /// @class xAOD::Egamma
/// @brief Class describing an e/gamma /// @brief Class describing an e/gamma
/// @name xAOD::Egamma provides a public interface. /// @name xAOD::Egamma provides a public interface.
/// @name xAOD::Electron and xAOD::Photon inherit from this class /// @name xAOD::Electron and xAOD::Photon inherit from this class
/// ///
...@@ -58,7 +58,7 @@ namespace xAOD { ...@@ -58,7 +58,7 @@ namespace xAOD {
protected: protected:
/// @name xAOD::Egamma constructors /// @name xAOD::Egamma constructors
/// The xAOD::Egamma is not supposed to be created directly, only via xAOD::Electron and xAOD::Photon. /// The xAOD::Egamma is not supposed to be created directly, only via xAOD::Electron and xAOD::Photon.
/// xAOD::Egamma is an abstract class. It does not define the type() pure virtual function from IParticle /// xAOD::Egamma is an abstract class. It does not define the type() pure virtual function from IParticle
/// The default constructors is protected /// The default constructors is protected
/// @{ /// @{
...@@ -84,7 +84,7 @@ namespace xAOD { ...@@ -84,7 +84,7 @@ namespace xAOD {
/// @name xAOD::IParticle functions /// @name xAOD::IParticle functions
/// These are already virtual due to IParticle /// These are already virtual due to IParticle
/// @{ /// @{
/// @brief The transverse momentum (\f$p_T\f$) of the particle /// @brief The transverse momentum (\f$p_T\f$) of the particle
virtual double pt() const final; virtual double pt() const final;
...@@ -102,7 +102,7 @@ namespace xAOD { ...@@ -102,7 +102,7 @@ namespace xAOD {
/// @brief The true rapidity (y) of the particle /// @brief The true rapidity (y) of the particle
virtual double rapidity() const final; virtual double rapidity() const final;
/// @brief Definition of the 4-momentum type /// @brief Definition of the 4-momentum type
typedef IParticle::FourMom_t FourMom_t; typedef IParticle::FourMom_t FourMom_t;
...@@ -110,8 +110,8 @@ namespace xAOD { ...@@ -110,8 +110,8 @@ namespace xAOD {
virtual FourMom_t p4() const final; virtual FourMom_t p4() const final;
/// @brief The type of the object as a simple enumeration, remains pure virtual in e/gamma. /// @brief The type of the object as a simple enumeration, remains pure virtual in e/gamma.
virtual Type::ObjectType type() const override =0 ; virtual Type::ObjectType type() const override =0 ;
/// @} /// @}
...@@ -122,8 +122,8 @@ namespace xAOD { ...@@ -122,8 +122,8 @@ namespace xAOD {
typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > GenVecFourMom_t; typedef ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double> > GenVecFourMom_t;
/// The full 4-momentum of the particle : internal egamma type. /// The full 4-momentum of the particle : internal egamma type.
GenVecFourMom_t genvecP4() const; GenVecFourMom_t genvecP4() const;
/// @brief set the 4-vec /// @brief set the 4-vec
void setP4(float pt, float eta, float phi, float m); void setP4(float pt, float eta, float phi, float m);
...@@ -138,28 +138,28 @@ namespace xAOD { ...@@ -138,28 +138,28 @@ namespace xAOD {
/// @brief set the Mass /// @brief set the Mass
void setM(float m); void setM(float m);
/// @} /// @}
/// @name xAOD::Egamma 4x4 Covariance Matrix /// @name xAOD::Egamma 4x4 Covariance Matrix
/// @{ /// @{
///4x4 Covariance Matrix in EtEtaPhiM (needs decision) ///4x4 Covariance Matrix in EtEtaPhiM (needs decision)
typedef Eigen::Matrix<float,4,4> EgammaCovMatrix_t; typedef Eigen::Matrix<float,4,4> EgammaCovMatrix_t;
/// Returns the 4x4 symmetric covariance matrix . /// Returns the 4x4 symmetric covariance matrix .
EgammaCovMatrix_t covMatrix() const; EgammaCovMatrix_t covMatrix() const;
/// set the 4x4 symmetric covariance matrix . /// set the 4x4 symmetric covariance matrix .
void setCovMatrix(const EgammaCovMatrix_t& cov); void setCovMatrix(const EgammaCovMatrix_t& cov);
/// @} /// @}
/// @name xAOD::Egamma Pointer to CaloClusters /// @name xAOD::Egamma Pointer to CaloClusters