ATLAS Offline Software
Loading...
Searching...
No Matches
muonTrkTrackThinTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef MUONTRKTRACKTHINTOOL_H
5#define MUONTRKTRACKTHINTOOL_H
6
7// STL includes
8#include <string>
9#include <vector>
10
11// FrameWork includes
12#include "GaudiKernel/ServiceHandle.h"
14#include "GaudiKernel/ToolHandle.h"
19
20
22
23 public:
25 muonTrkTrackThinTool( const std::string& name, ISvcLocator* pSvcLocator );
26
28 virtual ~muonTrkTrackThinTool()=default;
29
30 // Athena algorithm's Hooks
31 virtual StatusCode initialize() override;
32 virtual StatusCode execute(const EventContext& ctx) const override;
33 virtual StatusCode finalize() override;
34
35private:
36 mutable std::atomic<int> m_All{0};
37 mutable std::atomic<int> m_pass{0};
38 mutable std::atomic<int> m_trackAll{0};
39 mutable std::atomic<int> m_trackpass{0};
40
41 StringProperty m_streamName
42 { this, "StreamName", "", "Name of the stream being thinned" };
44 { this, "TrackCollectionKey", "MuonSpectrometerTracks", "" };
45
47 {this, "MuonReadKey", "Muons", "Key to retrieve the xAOD::MuonContainer"};
48};
49
50#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKey object for adding thinning to an object.
virtual StatusCode finalize() override
std::atomic< int > m_All
muonTrkTrackThinTool(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters.
virtual ~muonTrkTrackThinTool()=default
Destructor.
SG::ReadHandleKey< xAOD::MuonContainer > m_muonReadKey
SG::ThinningHandleKey< TrackCollection > m_trackCollKey
virtual StatusCode execute(const EventContext &ctx) const override
std::atomic< int > m_trackAll
virtual StatusCode initialize() override
std::atomic< int > m_pass
std::atomic< int > m_trackpass