ATLAS Offline Software
TrigTRTHTHCounter.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGTRTHTHCOUNTER_H
6 #define TRIGTRTHTHCOUNTER_H
7 
15 // standard stuff
16 #include <string>
17 #include <vector>
18 
19 //Gaudi
20 #include "GaudiKernel/ToolHandle.h"
21 
22 // Base class
26 
28 
29 #include "CxxUtils/phihelper.h"
30 #include "InDetIdentifier/TRT_ID.h"
33 
37 
39 
40 
42  public:
43 
44  TrigTRTHTHCounter(const std::string& name, ISvcLocator* pSvcLocator);
45 
46  virtual StatusCode initialize() override;
47  virtual StatusCode execute(const EventContext& ctx) const override;
48 
49  private:
50 
51  const TRT_ID *m_trtHelper{nullptr};
52 
53  float m_maxCaloEta{1.7};
54 
55  //Gaudi::Property<std::string> m_trtDCContainerName {this, "TRT_DC_ContainerName", "TRT_TrigDriftCircles" , " "};
56  Gaudi::Property<float> m_etaHalfWidth {this, "EtaHalfWidth", 0.1 , "subsection of RoI to retrieve fewer TRT hits"};
57  Gaudi::Property<float> m_phiHalfWidth {this, "PhiHalfWidth", 0.1 , "subsection of RoI to retrieve fewer TRT hits"};
58  Gaudi::Property<bool> m_doFullScan {this, "doFullScan", false , "Whether to use all RoI"};
59  Gaudi::Property<float> m_roadWidth {this, "RoadWidth", 4. , "Width of road in mm"};
60  Gaudi::Property<int> m_nBinCoarse {this, "nBinCoarse", 14 , "Number of coarse bins used while phi centering"};
61  Gaudi::Property<int> m_nBinFine {this, "nBinFine", 14 , "Number of fine bins used while phi centering"};
62  Gaudi::Property<float> m_wedgeMinEta {this, "WedgeMinEta", 0 , "Min eta for wedge algorithm"};
63  Gaudi::Property<float> m_roadMaxEta {this, "RoadMaxEta", 1.06 , "Max eta for road algorithm (barrel only)"};
64  Gaudi::Property<int> m_wedgeNBin {this, "WedgeNBin", 5 , "Number of fine bins to consider in the wedge algorithm"};
65 
67  "RoIs", // property name
68  "rois", // default value of StoreGate key
69  "input RoI Collection name"};
70 
72  "TRT_DC_ContainerName",
73  "TRT_DriftCircleContainer",
74  "TRT DriftCircle Container"};
75 
76 
78  "RNNOutputName", // property name
79  "RNNOutput", // default value of StoreGate key
80  "output RNN container name "};
81 
82  ToolHandle< GenericMonitoringTool > m_monTool { this, "MonTool", "", "Monitoring tool" };
83 
84 };
85 
86 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TrigTRTHTHCounter::m_doFullScan
Gaudi::Property< bool > m_doFullScan
Definition: TrigTRTHTHCounter.h:58
TrigTRTHTHCounter::m_trtHelper
const TRT_ID * m_trtHelper
TRT ID helper.
Definition: TrigTRTHTHCounter.h:51
TrigTRTHTHCounter::initialize
virtual StatusCode initialize() override
Definition: TrigTRTHTHCounter.cxx:38
TrigTRTHTHCounter::m_roadWidth
Gaudi::Property< float > m_roadWidth
Definition: TrigTRTHTHCounter.h:59
TRT_ID.h
This is an Identifier helper class for the TRT subdetector. This class is a factory for creating comp...
TrigTRTHTHCounter::m_etaHalfWidth
Gaudi::Property< float > m_etaHalfWidth
Definition: TrigTRTHTHCounter.h:56
SG::ReadHandleKey< TrigRoiDescriptorCollection >
TrigTRTHTHCounter::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: TrigTRTHTHCounter.cxx:59
TrigTRTHTHCounter::m_wedgeNBin
Gaudi::Property< int > m_wedgeNBin
Definition: TrigTRTHTHCounter.h:64
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
GenericMonitoringTool.h
TrigTRTHTHCounter::m_nBinCoarse
Gaudi::Property< int > m_nBinCoarse
Definition: TrigTRTHTHCounter.h:60
TrigTRTHTHCounter::m_wedgeMinEta
Gaudi::Property< float > m_wedgeMinEta
Definition: TrigTRTHTHCounter.h:62
TrigTRTHTHCounter::m_trigRNNOutputKey
SG::WriteHandleKey< xAOD::TrigRNNOutputContainer > m_trigRNNOutputKey
Definition: TrigTRTHTHCounter.h:77
TrigTRTHTHCounter::m_nBinFine
Gaudi::Property< int > m_nBinFine
Definition: TrigTRTHTHCounter.h:61
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
TrigTRTHTHCounter::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: TrigTRTHTHCounter.h:82
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigTRTHTHCounter::m_roiCollectionKey
SG::ReadHandleKey< TrigRoiDescriptorCollection > m_roiCollectionKey
Definition: TrigTRTHTHCounter.h:66
TrigTRTHTHCounter
TrigTRTHTHCounter gives back the number of TRT high-threshold hits based on the code of HIPsFilterAlg...
Definition: TrigTRTHTHCounter.h:41
TrigTRTHTHCounter::m_roadMaxEta
Gaudi::Property< float > m_roadMaxEta
Definition: TrigTRTHTHCounter.h:63
TrigTRTHTHCounter::m_trtDCContainerKey
SG::ReadHandleKey< InDet::TRT_DriftCircleContainer > m_trtDCContainerKey
Definition: TrigTRTHTHCounter.h:71
TrigRNNOutput.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TRT_DriftCircleContainer.h
TrigTRTHTHCounter::m_phiHalfWidth
Gaudi::Property< float > m_phiHalfWidth
Definition: TrigTRTHTHCounter.h:57
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IdentifierHash.h
phihelper.h
Helper for azimuthal angle calculations.
TrigRNNOutputContainer.h
TrigRNNOutputAuxContainer.h
TRT_ID
Definition: TRT_ID.h:84
TrigTRTHTHCounter::m_maxCaloEta
float m_maxCaloEta
Definition: TrigTRTHTHCounter.h:53
TrigRoiDescriptor.h
TrigTRTHTHCounter::TrigTRTHTHCounter
TrigTRTHTHCounter(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigTRTHTHCounter.cxx:34