ATLAS Offline Software
Loading...
Searching...
No Matches
PhysicsAnalysis
DerivationFramework
DerivationFrameworkSUSY
DerivationFrameworkSUSY
SUSYIDWeight.h
Go to the documentation of this file.
1
2
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
20
#include "
ReweightUtils/WeightToolBase.h
"
21
22
//namespace DerivationFramework {
23
24
class
SUSYIDWeight
:
public
WeightToolBase
25
{
27
ASG_TOOL_CLASS2
(
SUSYIDWeight
,
IWeightTool
,
IObservableTool
)
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
51
int
m_SUSYProcID
;
52
std::string
m_eventInfoName
;
53
bool
m_useTruthEvents
=
false
;
54
55
};
56
//}
57
58
#endif
//> !DerivationFramework_SUSY_ID_WEIGHT
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition
AsgToolMacros.h:77
WeightToolBase.h
IObservableTool
Interface for tools that want to calculate a quantity from an xAOD::IParticle.
Definition
IObservableTool.h:32
IWeightTool
Interface for tools that want to calculate a weight from different event information.
Definition
IWeightTool.h:21
SUSYIDWeight::m_eventInfoName
std::string m_eventInfoName
Definition
SUSYIDWeight.h:52
SUSYIDWeight::m_useTruthEvents
bool m_useTruthEvents
Definition
SUSYIDWeight.h:53
SUSYIDWeight::computeWeight
double computeWeight(const xAOD::EventInfo *) const
Definition
SUSYIDWeight.cxx:31
SUSYIDWeight::~SUSYIDWeight
virtual ~SUSYIDWeight()
Destructor:
Definition
SUSYIDWeight.h:38
SUSYIDWeight::getWeight
virtual double getWeight() const override
returns: the value that was calculated from the usual Athena storegate
Definition
SUSYIDWeight.cxx:69
SUSYIDWeight::SUSYIDWeight
SUSYIDWeight(const std::string &name)
Create a proper constructor for Athena.
Definition
SUSYIDWeight.cxx:12
SUSYIDWeight::m_SUSYProcID
int m_SUSYProcID
Definition
SUSYIDWeight.h:51
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
WeightToolBase::WeightToolBase
WeightToolBase(const std::string &name)
Create a proper constructor for Athena.
Definition
WeightToolBase.cxx:14
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:18
Generated on
for ATLAS Offline Software by
1.14.0