ATLAS Offline Software
TileHitToTTL1.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 //****************************************************************************
6 // Filename : TileHitToTTL1.h
7 // Author : F. Merritt, UC-ATLAS TileCal group
8 // Created : Feb 2003
9 //
10 // DESCRIPTION
11 //
12 // Creates TileTTL1 Digits from TileHit
13 //
14 // Properties (JobOption Parameters):
15 //
16 // TileHitContainer string Name of container with TileHit to read
17 // TileTTL1Container string Name of container with TileTTL1Digits to write
18 // TileInfoName string Name of object in TDS with all parameters
19 //
20 // BUGS:
21 //
22 // History:
23 //
24 //
25 //****************************************************************************
26 
27 #ifndef TILESIMALGS_TILEHITTOTTL1_H
28 #define TILESIMALGS_TILEHITTOTTL1_H
29 
30 // Tile includes
37 
38 // Atlas includes
43 
44 // Gaudi includes
45 #include "GaudiKernel/ToolHandle.h"
46 #include "GaudiKernel/ServiceHandle.h"
47 
48 #include <string>
49 
50 class IAthRNGSvc;
51 class TileID;
52 class TileTBID;
53 class TileHWID;
54 class TileInfo;
55 class CaloLVL1_ID;
56 class TileCablingService;
57 
73  public:
74 
76  virtual ~TileHitToTTL1() = default;
77 
78  virtual StatusCode initialize() override;
79  virtual StatusCode execute(const EventContext &ctx) const override;
80  virtual StatusCode finalize() override;
81 
82  private:
83 
84  Gaudi::Property<bool> m_maskBadChannels{this,
85  "maskBadChannels", true, "If true then bad channels are masked"};
86 
87  Gaudi::Property<std::string> m_infoName{this,
88  "TileInfoName", "TileInfo", "TileInfo object name"};
89 
90  Gaudi::Property<std::string> m_TileTTL1Type{this,
91  "TileTTL1Type", "Standard", "Name of Trigger Type"};
92 
93  SG::ReadHandleKey<TileHitContainer> m_hitContainerKey{this,"TileHitContainer","TileHitCnt",
94  "input Tile hit container key"};
95 
97  "TileTTL1Cnt",
98  "Output Tile TTL1 container key"};
99 
101  "TileTTL1MBTS",
102  "Output Tile MBTS TTL1 container key"};
103 
108  "TileSamplingFraction", "TileSamplingFraction", "Input Tile sampling fraction"};
109 
110  bool m_cosmicsType{false};
111 
112  const TileID* m_tileID{nullptr};
113  const TileTBID* m_tileTBID{nullptr};
114  const TileHWID* m_tileHWID{nullptr};
115  const TileInfo* m_tileInfo{nullptr};
116  const CaloLVL1_ID* m_TT_ID{nullptr};
117  const TileCablingService* m_cabling{nullptr};
118 
119 
120  // Variables for the trigger towers
121  int m_nSamples{0};
122  int m_iTrig{0};
123 
124  // Variables for the MBTS
125  int m_MBTSnSamples{0};
126  int m_MBTSiTrig{0};
127 
128  int m_lastTower{15};
129 
130  bool m_tileNoise{false};
131  bool m_tileThresh{false};
132 
137  "TileCablingSvc", "TileCablingSvc", "The Tile cabling service"};
138 
139  ServiceHandle<IAthRNGSvc> m_rndmSvc{this, "RndmSvc", "AthRNGSvc", ""};
140  Gaudi::Property<std::string> m_randomStreamName{this, "RandomStreamName", "Tile_HitToTTL1", ""};
142 
147  "TileEMScale", "TileEMScale", "Input Tile EMS calibration constants"};
148 
153  "TileBadChannels", "TileBadChannels", "Input Tile bad channel status"};
154 
155 };
156 
157 #endif // TILESIMALGS_TILEHITTOTTL1_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileCablingSvc.h
TileHitToTTL1::m_tileTBID
const TileTBID * m_tileTBID
Pointer to TileID helper.
Definition: TileHitToTTL1.h:113
TileEMScale.h
TileHitToTTL1::m_tileID
const TileID * m_tileID
Pointer to TileID helper.
Definition: TileHitToTTL1.h:112
TileHitToTTL1::m_cablingSvc
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Definition: TileHitToTTL1.h:136
TileHitToTTL1::m_ttl1ContainerKey
SG::WriteHandleKey< TileTTL1Container > m_ttl1ContainerKey
Definition: TileHitToTTL1.h:96
TileHitToTTL1::m_tileInfo
const TileInfo * m_tileInfo
Pointer to TileInfo.
Definition: TileHitToTTL1.h:115
TileHitToTTL1::m_tileThresh
bool m_tileThresh
If true => apply threshold on the conversion to TileTTL1.
Definition: TileHitToTTL1.h:131
TileHitToTTL1::m_samplingFractionKey
SG::ReadCondHandleKey< TileSamplingFraction > m_samplingFractionKey
Name of TileSamplingFraction in condition store.
Definition: TileHitToTTL1.h:107
TileHitToTTL1::m_cabling
const TileCablingService * m_cabling
Pointer to the TileCablingService instance.
Definition: TileHitToTTL1.h:117
TileInfo
Definition: TileInfo.h:49
TileHitToTTL1::m_tileNoise
bool m_tileNoise
If true => generate noise for the TileTTL1 creation.
Definition: TileHitToTTL1.h:130
SG::ReadHandleKey< TileHitContainer >
TileHitToTTL1::m_nSamples
int m_nSamples
number of time slices for each channel
Definition: TileHitToTTL1.h:121
TileHitToTTL1::m_mbtsTTL1ContainerKey
SG::WriteHandleKey< TileTTL1Container > m_mbtsTTL1ContainerKey
Definition: TileHitToTTL1.h:100
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileHitToTTL1::initialize
virtual StatusCode initialize() override
initialize method
Definition: TileHitToTTL1.cxx:65
TileHitToTTL1::m_maskBadChannels
Gaudi::Property< bool > m_maskBadChannels
Definition: TileHitToTTL1.h:84
TileHitToTTL1::m_cosmicsType
bool m_cosmicsType
if true => use dediated cosmcis TTL1
Definition: TileHitToTTL1.h:110
TileHitToTTL1::m_randomStreamName
Gaudi::Property< std::string > m_randomStreamName
Random Stream Name.
Definition: TileHitToTTL1.h:141
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
TileSamplingFraction.h
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileHitToTTL1::m_infoName
Gaudi::Property< std::string > m_infoName
Definition: TileHitToTTL1.h:87
TileHitToTTL1::~TileHitToTTL1
virtual ~TileHitToTTL1()=default
Destructor.
TileTTL1Container.h
TileHitToTTL1::m_MBTSiTrig
int m_MBTSiTrig
index of the triggering time slice for MBTS TTL1
Definition: TileHitToTTL1.h:126
TileCablingService
Definition: TileCablingService.h:23
ReadCondHandleKey.h
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TileHitToTTL1::m_hitContainerKey
SG::ReadHandleKey< TileHitContainer > m_hitContainerKey
Definition: TileHitToTTL1.h:93
TileHitToTTL1::m_rndmSvc
ServiceHandle< IAthRNGSvc > m_rndmSvc
Random number generator engine to use.
Definition: TileHitToTTL1.h:139
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
TileHitContainer.h
SG::ReadCondHandleKey< TileSamplingFraction >
TileHitToTTL1::m_TileTTL1Type
Gaudi::Property< std::string > m_TileTTL1Type
Definition: TileHitToTTL1.h:90
TileHitToTTL1::m_iTrig
int m_iTrig
index of the triggering time slice
Definition: TileHitToTTL1.h:122
TileHitToTTL1::m_TT_ID
const CaloLVL1_ID * m_TT_ID
Pointer to TT Identifier.
Definition: TileHitToTTL1.h:116
TileHitToTTL1::m_emScaleKey
SG::ReadCondHandleKey< TileEMScale > m_emScaleKey
Name of TileEMScale in condition store.
Definition: TileHitToTTL1.h:146
IAthRNGSvc
manage multiple RandomEngines in thread-safe way.
Definition: IAthRNGSvc.h:28
TileHitToTTL1::m_tileHWID
const TileHWID * m_tileHWID
Pointer to TileHWID helper.
Definition: TileHitToTTL1.h:114
TileHitToTTL1::execute
virtual StatusCode execute(const EventContext &ctx) const override
execute method
Definition: TileHitToTTL1.cxx:177
TileTBID
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
Definition: Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:65
TileBadChannels.h
TileHitToTTL1
This algorithm builds TileTTL1 objects from TileHits.
Definition: TileHitToTTL1.h:72
TileHitToTTL1::finalize
virtual StatusCode finalize() override
finalize method
Definition: TileHitToTTL1.cxx:680
TileHitToTTL1::m_badChannelsKey
SG::ReadCondHandleKey< TileBadChannels > m_badChannelsKey
Name of TileBadChannels in condition store.
Definition: TileHitToTTL1.h:152
TileHitToTTL1::m_MBTSnSamples
int m_MBTSnSamples
number of time slices for each chan for MBTS TTL1
Definition: TileHitToTTL1.h:125
TileHitToTTL1::m_lastTower
int m_lastTower
total number of towers in TileCal
Definition: TileHitToTTL1.h:128
ServiceHandle< TileCablingSvc >