ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileRecAlgs
src
TileBeamElemToCell.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
//****************************************************************************
6
// Filename : TileCellFromRawChannel.h
7
// Author : Ed Frank, Ambreesh Gupta, Frank Merritt
8
// Created : Mar 2002
9
//
10
// DESCRIPTION
11
//
12
// TileCellFromRawChannel extracts the energy depositied in each
13
// cell from the PMT amplitudes contained in TileRawChannel. (For
14
// barrel and extended-barrel, two PMT's feed into each cell; for the
15
// Gap cells, there is only one PMT.) Calibrations constants are
16
// applied, and the total energy in the cell, the mean time of the
17
// energy deposition, and the quality of the measurement are calculated
18
// here. is returned.
19
//
20
// Clearly different things are needed for different data, e.g.,
21
// full simulation vs. fast simulation vs. data. LAr handles this by
22
// a strategy of having a top level algorithm that calls builder sub-algs
23
// and a list of cell-correction sub-algs. It is not clear to us yet
24
// how we (tile) will want to tie to the database nor what level of
25
// complexity will exist in Tile for this task, so we will start with
26
// the simplest thing, TileCellBuilderAlg, which will do both the
27
// converstion of Raw to Cell and correctsions/scaling.
28
//
29
// Properties (JobOption Parameters):
30
//
31
// TileRawChannelContainer string Name of container with TileRawChannel to read
32
// TileCellContainer string Name of CaloCellContainer to write
33
// TileInfoName string Name of object in TDS with all parameters
34
//
35
// BUGS:
36
//
37
// History:
38
// 02Mar02 Created from TileCellBuilderAlg.
39
//
40
//****************************************************************************
41
42
#ifndef TILERECALGS_TILEBEAMELEMTOCELL_H
43
#define TILERECALGS_TILEBEAMELEMTOCELL_H
44
45
// Tile includes
46
#include "
TileEvent/TileBeamElemContainer.h
"
47
48
// Calo includes
49
#include "
CaloEvent/CaloCellContainer.h
"
50
51
// Atlas includes
52
#include "
AthenaBaseComps/AthAlgorithm.h
"
53
#include "
StoreGate/ReadHandleKey.h
"
54
#include "
StoreGate/WriteHandleKey.h
"
55
56
57
// Avoid pushing dependencies into clients- just fwd declare the following:
58
59
class
TileTBID
;
60
class
TileHWID
;
61
class
TileCell
;
62
class
TileInfo
;
63
class
TileDetDescrManager
;
64
65
// C++ STL includes
66
#include <string>
67
#include <vector>
68
69
class
TileBeamElemToCell
:
public
AthAlgorithm
{
70
public
:
71
// Constructor
72
TileBeamElemToCell
(
const
std::string& name, ISvcLocator* pSvcLocator);
73
74
//Destructor
75
virtual
~TileBeamElemToCell
();
76
77
//Gaudi Hooks
78
StatusCode
initialize
();
79
StatusCode
execute
(
const
EventContext& ctx);
80
StatusCode
finalize
();
81
82
private
:
83
84
SG::ReadHandleKey<TileBeamElemContainer>
m_beamElemContainerKey
{
this
,
"TileBeamElemContainer"
,
85
"TileBeamElemCnt"
,
86
"Input Tile beam elements container key"
};
87
88
SG::WriteHandleKey<CaloCellContainer>
m_cellContainerKey
{
this
,
"TileTBCellContainer"
,
89
"TileTBCellCnt"
,
"Output Calo cell container key"
};
90
91
92
std::string
m_infoName
;
93
94
const
TileTBID
*
m_tileTBID
;
95
const
TileHWID
*
m_tileHWID
;
96
const
TileInfo
*
m_tileInfo
;
97
const
TileDetDescrManager
*
m_tileMgr
;
98
99
// std::vector<TileCell *> m_allCells;
100
101
// Compute calibrated energy, time, etc. for TileCell and adjust it.
102
void
correctCell
(
TileCell
* pCell,
int
correction,
int
pmt,
int
gain,
103
double
ener,
double
time,
double
qual);
104
};
105
106
#endif
// TILERECALGS_TILEBEAMELEMTOCELL_H
AthAlgorithm.h
CaloCellContainer.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TileBeamElemContainer.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
TileBeamElemToCell::m_infoName
std::string m_infoName
Definition
TileBeamElemToCell.h:92
TileBeamElemToCell::m_tileHWID
const TileHWID * m_tileHWID
Definition
TileBeamElemToCell.h:95
TileBeamElemToCell::m_tileTBID
const TileTBID * m_tileTBID
Definition
TileBeamElemToCell.h:94
TileBeamElemToCell::m_tileMgr
const TileDetDescrManager * m_tileMgr
Definition
TileBeamElemToCell.h:97
TileBeamElemToCell::m_cellContainerKey
SG::WriteHandleKey< CaloCellContainer > m_cellContainerKey
Definition
TileBeamElemToCell.h:88
TileBeamElemToCell::execute
StatusCode execute(const EventContext &ctx)
Execute method.
Definition
TileBeamElemToCell.cxx:85
TileBeamElemToCell::m_tileInfo
const TileInfo * m_tileInfo
Definition
TileBeamElemToCell.h:96
TileBeamElemToCell::m_beamElemContainerKey
SG::ReadHandleKey< TileBeamElemContainer > m_beamElemContainerKey
Definition
TileBeamElemToCell.h:84
TileBeamElemToCell::~TileBeamElemToCell
virtual ~TileBeamElemToCell()
Definition
TileBeamElemToCell.cxx:56
TileBeamElemToCell::correctCell
void correctCell(TileCell *pCell, int correction, int pmt, int gain, double ener, double time, double qual)
TileBeamElemToCell::initialize
StatusCode initialize()
Definition
TileBeamElemToCell.cxx:63
TileBeamElemToCell::finalize
StatusCode finalize()
Definition
TileBeamElemToCell.cxx:141
TileBeamElemToCell::TileBeamElemToCell
TileBeamElemToCell(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TileBeamElemToCell.cxx:46
TileCell
Definition
TileCell.h:57
TileDetDescrManager
Definition
TileDetDescrManager.h:33
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition
TileHWID.h:49
TileInfo
Definition
TileInfo.h:49
TileTBID
Helper class for TileCal offline identifiers of ancillary testbeam detectors and MBTS.
Definition
Calorimeter/CaloIdentifier/CaloIdentifier/TileTBID.h:65
Generated on
for ATLAS Offline Software by
1.17.0