ATLAS Offline Software
TrigCountSpacePoints.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGMINBIAS_TRIGCOUNTSPACEPOINTS_H
6 #define TRIGMINBIAS_TRIGCOUNTSPACEPOINTS_H
7 
8 #include <string>
9 
13 #include "InDetIdentifier/SCT_ID.h"
17 
19  public:
20  TrigCountSpacePoints(const std::string &name, ISvcLocator *pSvcLocator);
21 
22  virtual StatusCode initialize() override;
23  virtual StatusCode execute(const EventContext &context) const override;
24 
25  private:
26  Gaudi::Property<bool> m_doOnlyBLayer{this, "doOnlyBLayer", false, " "};
27  Gaudi::Property<bool> m_removeBLayerModuleEdgeNoise{this, "removeBLayerModuleEdgeNoise", true, " "};
28  Gaudi::Property<int> m_pixModuleThreshold{this, "pixModuleThreshold", 100, "Dont take modules with SP Count higher than this threshold in Pixel Det."};
29  Gaudi::Property<int> m_sctModuleHigherThreshold{this, "sctModuleHigherThreshold", 2000000, "Dont take modules with SP Count higher than this threshold in SCT"};
30  Gaudi::Property<int> m_sctModuleLowerThreshold{this, "sctModuleLowerThreshold", 0, "Dont take modules with SP Count lowerer than this threshold in SCT"};
31  Gaudi::Property<int> m_pixelClusToTCut{this, "pixelClusToTCut", 20, "ToT Cut for Pixel Clusters"};
32  Gaudi::Property<std::vector<unsigned int>> m_modulesToSkip{this, "ModulesToSkip", {}, "Set of modules to be ignored when counting SP"};
33  std::set<unsigned int> m_modulesToSkipSet;
34  SG::ReadHandleKey<SpacePointContainer> m_pixelSpKey{this, "PixelSpKey", "PixelTrigSpacePoints", " "};
35  SG::ReadHandleKey<SpacePointContainer> m_sctSpKey{this, "SCTSpKey", "SCT_TrigSpacePoints", " "};
36  SG::ReadHandleKey<PixelID> m_pixelHelperKey{this, "pixelHelperKey", "DetectorStore+PixelID", " "};
37  SG::ReadHandleKey<SCT_ID> m_sctHelperKey{this, "sctHelperKey", "DetectorStore+SCT_ID", " "};
38  SG::WriteHandleKey<xAOD::TrigCompositeContainer> m_spacePointsKey{this, "SpacePointsKey", "Undefined", ""};
39  SG::WriteHandleKey<xAOD::TrigCompositeAuxContainer> m_spacePointsAuxKey{this, "SpacePointsAuxKey", "Undefined", ""};
40 
41  ToolHandle<GenericMonitoringTool> m_monTool{this, "MonTool", "", "Monitoring tool"};
42 };
43 
44 #endif // TRIGMINBIAS_TRIGCOUNTSPACEPOINTS_H
PixelID.h
This is an Identifier helper class for the Pixel subdetector. This class is a factory for creating co...
SCT_ID.h
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
TrigCountSpacePoints::m_removeBLayerModuleEdgeNoise
Gaudi::Property< bool > m_removeBLayerModuleEdgeNoise
Definition: TrigCountSpacePoints.h:27
TrigCountSpacePoints::m_pixelHelperKey
SG::ReadHandleKey< PixelID > m_pixelHelperKey
Definition: TrigCountSpacePoints.h:36
TrigCountSpacePoints::m_spacePointsKey
SG::WriteHandleKey< xAOD::TrigCompositeContainer > m_spacePointsKey
Definition: TrigCountSpacePoints.h:38
TrigCountSpacePoints::m_pixelSpKey
SG::ReadHandleKey< SpacePointContainer > m_pixelSpKey
Definition: TrigCountSpacePoints.h:34
TrigCountSpacePoints::m_doOnlyBLayer
Gaudi::Property< bool > m_doOnlyBLayer
Definition: TrigCountSpacePoints.h:26
TrigCountSpacePoints::m_pixelClusToTCut
Gaudi::Property< int > m_pixelClusToTCut
Definition: TrigCountSpacePoints.h:31
SG::ReadHandleKey< SpacePointContainer >
TrigCountSpacePoints::m_sctModuleHigherThreshold
Gaudi::Property< int > m_sctModuleHigherThreshold
Definition: TrigCountSpacePoints.h:29
TrigCountSpacePoints::m_sctSpKey
SG::ReadHandleKey< SpacePointContainer > m_sctSpKey
Definition: TrigCountSpacePoints.h:35
SpacePointContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TrigCountSpacePoints::m_modulesToSkip
Gaudi::Property< std::vector< unsigned int > > m_modulesToSkip
Definition: TrigCountSpacePoints.h:32
TrigCountSpacePoints::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigCountSpacePoints.h:41
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigCountSpacePoints::initialize
virtual StatusCode initialize() override
Definition: TrigCountSpacePoints.cxx:31
TrigCountSpacePoints::m_sctHelperKey
SG::ReadHandleKey< SCT_ID > m_sctHelperKey
Definition: TrigCountSpacePoints.h:37
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
TrigCompositeAuxContainer.h
TrigCompositeContainer.h
AthReentrantAlgorithm.h
TrigCountSpacePoints::m_pixModuleThreshold
Gaudi::Property< int > m_pixModuleThreshold
Definition: TrigCountSpacePoints.h:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigCountSpacePoints::m_modulesToSkipSet
std::set< unsigned int > m_modulesToSkipSet
Definition: TrigCountSpacePoints.h:33
TrigCountSpacePoints
Definition: TrigCountSpacePoints.h:18
TrigCountSpacePoints::TrigCountSpacePoints
TrigCountSpacePoints(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigCountSpacePoints.cxx:29
TrigCountSpacePoints::m_spacePointsAuxKey
SG::WriteHandleKey< xAOD::TrigCompositeAuxContainer > m_spacePointsAuxKey
Definition: TrigCountSpacePoints.h:39
TrigCountSpacePoints::m_sctModuleLowerThreshold
Gaudi::Property< int > m_sctModuleLowerThreshold
Definition: TrigCountSpacePoints.h:30
TrigCountSpacePoints::execute
virtual StatusCode execute(const EventContext &context) const override
Definition: TrigCountSpacePoints.cxx:45