ATLAS Offline Software
SumOfWeightsAlg.h
Go to the documentation of this file.
1 
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 
28 class IWeightTool;
29 
31 
32  public:
33 
35  SumOfWeightsAlg(const std::string& name, ISvcLocator* pSvcLocator);
36 
39 
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
CutBookkeeper.h
initialize
void initialize()
Definition: run_EoverP.cxx:894
SumOfWeightsAlg
Definition: SumOfWeightsAlg.h:30
SumOfWeightsAlg::m_eventsProcessed
unsigned long m_eventsProcessed
number of events processed
Definition: SumOfWeightsAlg.h:54
SumOfWeightsAlg::m_weightTools
ToolHandleArray< IWeightTool > m_weightTools
Athena configured tools.
Definition: SumOfWeightsAlg.h:51
SumOfWeightsAlg::ATLAS_NOT_THREAD_SAFE
StatusCode initialize ATLAS_NOT_THREAD_SAFE()
Athena algorithm's Hooks.
AthFilterAlgorithm
Definition: AthFilterAlgorithm.h:26
IWeightTool
Interface for tools that want to calculate a weight from different event information.
Definition: IWeightTool.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SumOfWeightsAlg::~SumOfWeightsAlg
~SumOfWeightsAlg()
Destructor:
Definition: SumOfWeightsAlg.cxx:23
SumOfWeightsAlg::m_cutIDs
std::vector< CutIdentifier > m_cutIDs
cut IDs
Definition: SumOfWeightsAlg.h:57
SumOfWeightsAlg::finalize
StatusCode finalize()
Definition: SumOfWeightsAlg.cxx:82
SumOfWeightsAlg::execute
StatusCode execute()
Definition: SumOfWeightsAlg.cxx:65
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SumOfWeightsAlg::SumOfWeightsAlg
SumOfWeightsAlg()
Default constructor:
AthFilterAlgorithm.h
checker_macros.h
Define macros for attributes used to control the static checker.