ATLAS Offline Software
Loading...
Searching...
No Matches
HIEventSelectionTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HIEVENTUTILS_HIEVENTSELECTIONTOOL_H
6#define HIEVENTUTILS_HIEVENTSELECTIONTOOL_H
7
8#include "AsgTools/AsgTool.h"
13
14namespace HI
15{
16
18 public virtual HI::IHIEventSelectionTool, public asg::AsgTool
19 {
20
22
23 public:
24
25 HIEventSelectionTool(const std::string& name = "HIEventSelection");
26 virtual ~HIEventSelectionTool();
27 virtual StatusCode initialize() override;
28 virtual StatusCode finalize() override;
29 virtual const asg::AcceptInfo& getAcceptInfo() const override;
30
31 // MBTS timing cut member functions
32 void checkMBTSTime( asg::AcceptData& acceptData ) const;
33 bool isGoodMBTSTime() const;
34
35 // Vertex member functions
36 void checkVertex( asg::AcceptData& acceptData ) const;
37 unsigned int getNPrimaryVertices() const;
38
39 std::string dumpSelection() const;
40
41 private:
42
43 static const std::string m_MBTS_CNAME;
44 static const std::string m_FWD_CNAME;
45 static const std::string m_VERTEX_CNAME;
46 static const std::string m_SHAPE_CNAME;
47 static const std::string m_ZDC_CNAME;
48
49 const std::string m_name;
51
52 // MBTS external parameters
53 bool m_checkTime = false;
54 float m_timeCut = -1;
55
56 // Vertex external parameters
57 ToolHandle<HI::IHIVertexSelectionTool> m_vertexSelectionTool;
58 ToolHandle<HI::IHIPileupTool> m_hiPileupTool;
59 float m_vtx_min_sumPt = -1;
61 bool m_exclusive_mode = false;
62 bool m_reject_pileup = true;
63 std::string m_track_cutlevel = "NoCut";
64 };
65
66}
67#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
static const std::string m_FWD_CNAME
virtual StatusCode initialize() override
static const std::string m_SHAPE_CNAME
ToolHandle< HI::IHIPileupTool > m_hiPileupTool
bool isGoodMBTSTime() const
HIEventSelectionTool(const std::string &name="HIEventSelection")
virtual const asg::AcceptInfo & getAcceptInfo() const override
static const std::string m_MBTS_CNAME
void checkVertex(asg::AcceptData &acceptData) const
static const std::string m_ZDC_CNAME
ToolHandle< HI::IHIVertexSelectionTool > m_vertexSelectionTool
void checkMBTSTime(asg::AcceptData &acceptData) const
static const std::string m_VERTEX_CNAME
unsigned int getNPrimaryVertices() const
virtual StatusCode finalize() override
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47