ATLAS Offline Software
SUSYIDWeight.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // SUSYIDWeight.h
8 // Header file for class SUSYIDWeight
9 // Author: M.Tripiana <tripiana@cern.ch>
10 // based on the McEventWeight class by O.Arnaez
12 #ifndef DerivationFramework_SUSY_ID_WEIGHT_H
13 #define DerivationFramework_SUSY_ID_WEIGHT_H 1
14 
15 // STL includes
16 #include <string>
17 #include <vector>
18 
19 // FrameWork includes
21 
22 //namespace DerivationFramework {
23 
25  {
28 
29 
30  // Public methods:
32  public:
33 
35  SUSYIDWeight( const std::string& name );
36 
38  virtual ~SUSYIDWeight(){};
39 
41  virtual double evaluate( const xAOD::IParticle* part ) const override;
42 
44  virtual double getWeight() const override;
45 
46 
47  private:
48  //internal function "computing" the weight
49  double computeWeight(const xAOD::EventInfo*) const;
50 
52  std::string m_eventInfoName;
53  bool m_useTruthEvents = false;
54 
55  };
56 //}
57 
58 #endif //> !DerivationFramework_SUSY_ID_WEIGHT
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
SUSYIDWeight::m_useTruthEvents
bool m_useTruthEvents
Definition: SUSYIDWeight.h:53
WeightToolBase.h
SUSYIDWeight::m_SUSYProcID
int m_SUSYProcID
Definition: SUSYIDWeight.h:51
SUSYIDWeight::SUSYIDWeight
SUSYIDWeight(const std::string &name)
Create a proper constructor for Athena.
Definition: SUSYIDWeight.cxx:12
SUSYIDWeight::getWeight
virtual double getWeight() const override
returns: the value that was calculated from the usual Athena storegate
Definition: SUSYIDWeight.cxx:69
SUSYIDWeight
Definition: SUSYIDWeight.h:25
SUSYIDWeight::~SUSYIDWeight
virtual ~SUSYIDWeight()
Destructor:
Definition: SUSYIDWeight.h:38
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition: AsgToolMacros.h:77
IObservableTool
Interface for tools that want to calculate a quantity from an xAOD::IParticle.
Definition: IObservableTool.h:32
SUSYIDWeight::computeWeight
double computeWeight(const xAOD::EventInfo *) const
Definition: SUSYIDWeight.cxx:31
SUSYIDWeight::evaluate
virtual double evaluate(const xAOD::IParticle *part) const override
returns: the value that was calculated from the xAOD::IParticle (composite built event object for ins...
Definition: SUSYIDWeight.cxx:23
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition: Event/xAOD/xAODBase/xAODBase/IParticle.h:41
SUSYIDWeight::m_eventInfoName
std::string m_eventInfoName
Definition: SUSYIDWeight.h:52
IWeightTool
Interface for tools that want to calculate a weight from different event information.
Definition: IWeightTool.h:21
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
WeightToolBase
Definition: WeightToolBase.h:29