ATLAS Offline Software
TileRawChannelToTTL1.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 //****************************************************************************
6 // Filename : TileRawChannelToTTL1.h
7 // Author : Pedro Amaral, based on TileHitToTTL1
8 // Created : Feb 2005
9 //
10 // DESCRIPTION
11 //
12 // Creates TileTTL1 Digits from TileRawChannel
13 //
14 // Properties (JobOption Parameters):
15 //
16 // TileRawChannelContainer string Name of container with TileRawChannel 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 TILERECALGS_TILERAWCHANNELTOTTL1_H
28 #define TILERECALGS_TILERAWCHANNELTOTTL1_H
29 
30 // Tile includes
31 //#include "TileEvent/TileRawChannelContainer.h"
33 
34 // Atlas includes
38 
39 // Gaudi includes
40 #include "GaudiKernel/ToolHandle.h"
41 
42 
43 class TileID;
44 class TileHWID;
45 class TileInfo;
46 class CaloLVL1_ID;
47 class TileCablingService;
48 class ITileBadChanTool;
51 
52 #include <string>
53 
55  public:
56  // Constructor
57  TileRawChannelToTTL1(const std::string& name, ISvcLocator* pSvcLocator);
58 
59  //Destructor
60  virtual ~TileRawChannelToTTL1();
61 
62  //Gaudi Hooks
66 
67  private:
68 
70  "TileRawChannelCnt",
71  "Input Tile raw channel container key"};
72 
74  "TileTTL1Container","Output Tile TTL1 container key"};
75 
76  std::string m_infoName; // name of TileInfo object in TES
77  bool m_constantTTL1shape; // true by default, so only gets ttl1 shape once at initialization, with phase=0 for all towers.
78 
79  const TileID* m_tileID;
83 
84  std::vector<double> m_TTL1Shape;
85  double m_phase;
86  int m_nSamp;
87  int m_iTrig;
88 
89  ToolHandle<ITileBadChanTool> m_tileBadChanTool;
90  ToolHandle<TileCondToolEmscale> m_tileToolEmscale;
91 };
92 
93 #endif // TILERECALGS_TILERAWCHANNELTOTTL1_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileRawChannelContainer
Definition: TileRawChannelContainer.h:13
TileRawChannelToTTL1
Definition: TileRawChannelToTTL1.h:54
TileRawChannelToTTL1::m_ttl1ContainerKey
SG::WriteHandleKey< TileTTL1Container > m_ttl1ContainerKey
Definition: TileRawChannelToTTL1.h:73
TileRawChannelToTTL1::m_tileInfo
const TileInfo * m_tileInfo
Definition: TileRawChannelToTTL1.h:81
TileRawChannelToTTL1::m_nSamp
int m_nSamp
Definition: TileRawChannelToTTL1.h:86
TileRawChannelToTTL1::m_tileBadChanTool
ToolHandle< ITileBadChanTool > m_tileBadChanTool
Tile Bad Channel tool.
Definition: TileRawChannelToTTL1.h:89
TileRawChannelToTTL1::m_tileToolEmscale
ToolHandle< TileCondToolEmscale > m_tileToolEmscale
main Tile Calibration tool
Definition: TileRawChannelToTTL1.h:90
TileInfo
Definition: TileInfo.h:49
SG::ReadHandleKey< TileRawChannelContainer >
TileRawChannelToTTL1::m_iTrig
int m_iTrig
Definition: TileRawChannelToTTL1.h:87
TileRawChannelToTTL1::finalize
StatusCode finalize()
Definition: TileRawChannelToTTL1.cxx:406
AthAlgorithm.h
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileRawChannelToTTL1::m_tileID
const TileID * m_tileID
Definition: TileRawChannelToTTL1.h:79
TileRawChannelToTTL1::~TileRawChannelToTTL1
virtual ~TileRawChannelToTTL1()
Definition: TileRawChannelToTTL1.cxx:82
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
TileID
Helper class for TileCal offline identifiers.
Definition: TileID.h:68
TileRawChannelToTTL1::initialize
StatusCode initialize()
Definition: TileRawChannelToTTL1.cxx:88
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TileTTL1Container.h
TileCablingService
Definition: TileCablingService.h:23
AthAlgorithm
Definition: AthAlgorithm.h:47
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TileRawChannelToTTL1::m_infoName
std::string m_infoName
Definition: TileRawChannelToTTL1.h:76
TileRawChannelToTTL1::m_TTL1Shape
std::vector< double > m_TTL1Shape
Definition: TileRawChannelToTTL1.h:84
TileCondToolEmscale
Calibration of TileCal channels and access to calibration factors.
Definition: TileCondToolEmscale.h:58
TileRawChannelToTTL1::TileRawChannelToTTL1
TileRawChannelToTTL1(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TileRawChannelToTTL1.cxx:64
TileRawChannelToTTL1::m_constantTTL1shape
bool m_constantTTL1shape
Definition: TileRawChannelToTTL1.h:77
TileRawChannelToTTL1::execute
StatusCode execute()
Definition: TileRawChannelToTTL1.cxx:128
ITileBadChanTool
An abstract inteface to get Tile channel and ADC status.
Definition: ITileBadChanTool.h:21
TileRawChannelToTTL1::m_phase
double m_phase
Definition: TileRawChannelToTTL1.h:85
TileRawChannelToTTL1::m_TT_ID
const CaloLVL1_ID * m_TT_ID
Definition: TileRawChannelToTTL1.h:82
TileRawChannelToTTL1::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileRawChannelToTTL1.h:80
TileRawChannelToTTL1::m_rawChannelContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition: TileRawChannelToTTL1.h:69