ATLAS Offline Software
Loading...
Searching...
No Matches
TrackMeasurementThinning.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TrackMeasurementThinning.h, (c) ATLAS Detector software
8
9#ifndef DERIVATIONFRAMEWORK_TRACKMEASUREMENTTHINNING_H
10#define DERIVATIONFRAMEWORK_TRACKMEASUREMENTTHINNING_H
11
12#include <string>
13#include <atomic>
14
15// Gaudi & Athena basics
18#include "GaudiKernel/ServiceHandle.h"
19
20// DerivationFramework includes
23
25
26namespace DerivationFramework {
27
32 class TrackMeasurementThinning : public extends<ExpressionParserUser<AthAlgTool>, IThinningTool> {
33
34 public:
36 TrackMeasurementThinning( const std::string& t, const std::string& n, const IInterface* p );
37
40
41 // Athena algtool's Hooks
42 virtual StatusCode initialize() override;
43 virtual StatusCode finalize() override;
44
46 virtual StatusCode doThinning() const override;
47
48 private:
49 Gaudi::Property<std::string> m_selectionString
50 { this, "SelectionString", "", ""};
51
52 mutable std::atomic<unsigned int> m_ntot {};
53 mutable std::atomic<unsigned int> m_npass {};
54 StringProperty m_streamName
55 { this, "StreamName", "", "Name of the stream being thinned" };
56
58 { this, "TrackMeasurementValidationKey", "PixelClusters", "" };
59 };
60
61}
62
63
64#endif
HandleKey object for adding thinning to an object.
SG::ThinningHandleKey< xAOD::TrackMeasurementValidationContainer > m_SGKey
TrackMeasurementThinning(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
virtual StatusCode doThinning() const override
Check that the current event passes this filter.
HandleKey object for adding thinning to an object.
THE reconstruction tool.