ATLAS Offline Software
Loading...
Searching...
No Matches
SumOfWeightsAlg.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7// Calls IWeightTool objects for each event and stores SumOfWeights
8// for each of these computations
9//
10// Author: Danilo Ferreira de Lima <dferreir@cern.ch>
12
13#ifndef REWEIGHTUTILS_SUMOFWEIGHTSALG_H
14#define REWEIGHTUTILS_SUMOFWEIGHTSALG_H
15
16// Include the base class
19#include "GaudiKernel/ToolHandle.h"
20
21#include <vector>
22#include <string>
23
24// EDM includes
25
27
28class IWeightTool;
29
31
32 public:
33
35 SumOfWeightsAlg(const std::string& name, ISvcLocator* pSvcLocator);
36
39
42 StatusCode execute();
43 StatusCode finalize();
44
45 private:
46
49
51 ToolHandleArray<IWeightTool> m_weightTools;
52
54 unsigned long m_eventsProcessed;
55
57 std::vector<CutIdentifier> m_cutIDs;
58
59};
60
61#endif //> !REWEIGHTUTILS_SUMOFWEIGHTSALG_H
Define macros for attributes used to control the static checker.
AthFilterAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Interface for tools that want to calculate a weight from different event information.
Definition IWeightTool.h:21
ToolHandleArray< IWeightTool > m_weightTools
Athena configured tools.
StatusCode initialize ATLAS_NOT_THREAD_SAFE()
Athena algorithm's Hooks.
std::vector< CutIdentifier > m_cutIDs
cut IDs
SumOfWeightsAlg()
Default constructor:
~SumOfWeightsAlg()
Destructor:
unsigned long m_eventsProcessed
number of events processed
StatusCode finalize()
StatusCode execute()
SumOfWeightsAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
void initialize()