ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerTowerThinningAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4// ***************************************************************************
5// * Author: John Morris (john.morris@cern.ch) *
6// * Queen Mary University of London *
7// * *
8
9#ifndef TRIGT1CALOCALIBTOOLS_TRIGGERTOWERTHINNINGALG_H
10#define TRIGT1CALOCALIBTOOLS_TRIGGERTOWERTHINNINGALG_H
11
25
34#include "GaudiKernel/ServiceHandle.h"
35
36#include <vector>
37
38
39namespace DerivationFramework {
40
41 class TriggerTowerThinningAlg : public extends<AthAlgTool, IThinningTool> {
42
43 public:
44 TriggerTowerThinningAlg(const std::string& t, const std::string& n, const IInterface* p);
46
47 virtual StatusCode initialize() override;
48 virtual StatusCode finalize() override;
49 virtual StatusCode doThinning() const override;
50
51 private:
52 StringProperty m_streamName
53 { this, "StreamName", "", "Name of the stream being thinned" };
54
57
59 { this, "CaloCellETByLayerKey", m_triggerTowerLocation.key()+".CaloCellETByLayer", "" };
60
61 // python configurables
66
67 // Counters
68 mutable std::atomic<unsigned long> m_nEventsProcessed;
69 mutable std::atomic<unsigned long> m_nEventsAllTriggerTowersKeptByRandom;
70 mutable std::atomic<unsigned long> m_nTriggerTowersProcessed;
71 mutable std::atomic<unsigned long> m_nTriggerTowersKept;
72 mutable std::atomic<unsigned long> m_nTriggerTowersRejected;
73
74 // Tools and random number generator
76 { this, "RndmSvc", "AthRNGSvc", "" };
77 };
78} // namespace
79
80#endif
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
HandleKey object for adding thinning to an object.
std::atomic< unsigned long > m_nEventsAllTriggerTowersKeptByRandom
SG::ReadDecorHandleKey< xAOD::TriggerTowerContainer > m_caloCellETByLayerKey
TriggerTowerThinningAlg(const std::string &t, const std::string &n, const IInterface *p)
SG::ThinningHandleKey< xAOD::TriggerTowerContainer > m_triggerTowerLocation
static const std::string xAODTriggerTowerLocation
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
HandleKey object for adding thinning to an object.
THE reconstruction tool.