ATLAS Offline Software
IParticlePropertyTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // IParticlePropertyTool.h, (c) ATLAS Detector Software
8 
9 #ifndef FATRASINTERFACES_IPARTICLEPROPERTYTOOL_H
10 #define FATRASINTERFACES_IPARTICLEPROPERTYTOOL_H
11 
12 // Gaudi
13 #include "GaudiKernel/IAlgTool.h"
14 
15 // STL
16 #include <vector>
17 #include <string>
18 
19 namespace iFatras
20 {
21 
31  class IParticlePropertyTool : virtual public IAlgTool
32  {
33  public:
34 
37 
40 
41  virtual std::vector<std::pair<int,std::string> >
42  listOfParticles() const=0;
43 
46  virtual StatusCode
47  basicInfo( int pdgCode, int* charge=0, double* mass=0) const = 0;
48  };
49 
50 }
51 #endif // FATRASINTERFACES_IPARTICLEPROPERTYTOOL_H
iFatras::IParticlePropertyTool::~IParticlePropertyTool
virtual ~IParticlePropertyTool()
Virtual destructor.
Definition: IParticlePropertyTool.h:36
dqt_zlumi_pandas.mass
mass
Definition: dqt_zlumi_pandas.py:170
iFatras
Definition: ActsFatrasSimTool.h:52
iFatras::IParticlePropertyTool::listOfParticles
virtual std::vector< std::pair< int, std::string > > listOfParticles() const =0
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
iFatras::IParticlePropertyTool
Definition: IParticlePropertyTool.h:32
iFatras::IParticlePropertyTool::basicInfo
virtual StatusCode basicInfo(int pdgCode, int *charge=0, double *mass=0) const =0
retrieve basic information of the particle (charge sign and mass in MeV)
charge
double charge(const T &p)
Definition: AtlasPID.h:494
iFatras::IParticlePropertyTool::DeclareInterfaceID
DeclareInterfaceID(IParticlePropertyTool, 1, 0)
Creates the InterfaceID and interfaceID() method.