ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Interface for tools that want to calculate a quantity from an xAOD::IParticle.
Interface for tools that want to calculate a weight from different event information.
Definition IWeightTool.h:21
std::string m_eventInfoName
bool m_useTruthEvents
double computeWeight(const xAOD::EventInfo *) const
virtual ~SUSYIDWeight()
Destructor:
virtual double getWeight() const override
returns: the value that was calculated from the usual Athena storegate
SUSYIDWeight(const std::string &name)
Create a proper constructor for Athena.
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...
WeightToolBase(const std::string &name)
Create a proper constructor for Athena.
Class providing the definition of the 4-vector interface.
EventInfo_v1 EventInfo
Definition of the latest event info version.