ATLAS Offline Software
TBBeamQuality.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //#####################################################
6 //# #
7 //# File : TBBeamQuality.h #
8 //# Package: TBRec #
9 //# #
10 //# Author : Marco Bieri <mbieri@sfu.ca> #
11 //# based on TBEventStreamer #
12 //# Last Modified: Nov 18/2004 #
13 //#####################################################
14 
15 #ifndef TBREC_TBBEAMQUALITY_H
16 #define TBREC_TBBEAMQUALITY_H
17 
18 /* The TBBeamQuality algorithm takes a particle type as input and returns a success or failurs based on different tests. The different tests are tools which run until a failure occurs. */
19 
21 #include "GaudiKernel/ToolHandle.h"
22 
23 class TBBeamQualityTool;
24 
25 #include <string>
26 #include <map>
27 #include <vector>
28 
30 {
31  public:
32  TBBeamQuality(const std::string& name, ISvcLocator* pService);
33 
34  virtual ~TBBeamQuality();
35 
36  virtual StatusCode initialize() override;
37  virtual StatusCode execute() override;
38  virtual StatusCode finalize() override;
39 
40  protected:
41  /* Properties*/
42  std::vector<std::string> m_bqparticle; //particles to select
43 // std::vector<std::string> m_bqtoolNames;
44 
45  ToolHandleArray<TBBeamQualityTool> m_bqtools;
46 
47  // output maps
48  std::map<ToolHandle<TBBeamQualityTool>, unsigned int> m_bqacceptCounter;
49  std::map<ToolHandle<TBBeamQualityTool>, unsigned int> m_bqrejectCounter;
50  std::map<ToolHandle<TBBeamQualityTool>, unsigned int> m_bqtotalCounter;
51 };
52 #endif
TBBeamQuality::initialize
virtual StatusCode initialize() override
Definition: TBBeamQuality.cxx:34
TBBeamQuality::m_bqacceptCounter
std::map< ToolHandle< TBBeamQualityTool >, unsigned int > m_bqacceptCounter
Definition: TBBeamQuality.h:48
TBBeamQuality::m_bqtools
ToolHandleArray< TBBeamQualityTool > m_bqtools
Definition: TBBeamQuality.h:45
AthAlgorithm.h
TBBeamQuality
Definition: TBBeamQuality.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TBBeamQuality::m_bqtotalCounter
std::map< ToolHandle< TBBeamQualityTool >, unsigned int > m_bqtotalCounter
Definition: TBBeamQuality.h:50
AthAlgorithm
Definition: AthAlgorithm.h:47
TBBeamQualityTool
Definition: TBBeamQualityTool.h:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TBBeamQuality::finalize
virtual StatusCode finalize() override
Definition: TBBeamQuality.cxx:111
TBBeamQuality::~TBBeamQuality
virtual ~TBBeamQuality()
Definition: TBBeamQuality.cxx:29
TBBeamQuality::TBBeamQuality
TBBeamQuality(const std::string &name, ISvcLocator *pService)
Definition: TBBeamQuality.cxx:21
TBBeamQuality::m_bqrejectCounter
std::map< ToolHandle< TBBeamQualityTool >, unsigned int > m_bqrejectCounter
Definition: TBBeamQuality.h:49
TBBeamQuality::execute
virtual StatusCode execute() override
Definition: TBBeamQuality.cxx:70
TBBeamQuality::m_bqparticle
std::vector< std::string > m_bqparticle
Definition: TBBeamQuality.h:42