ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonCnv
MuonBucketDump
src
CaloCellsDumperAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONBUCKETDUMP_CaloCellsDumperAlg_H
5
#define MUONBUCKETDUMP_CaloCellsDumperAlg_H
6
7
#include "
AthenaBaseComps/AthHistogramAlgorithm.h
"
8
9
#include "
StoreGate/ReadHandleKey.h
"
10
#include "
CaloEvent/CaloCellContainer.h
"
11
#include "CaloEvent/CaloTowerContainer.h"
12
#include "
CaloIdentifier/CaloCell_ID.h
"
13
14
#include "
MuonTesterTree/MuonTesterTree.h
"
15
#include "
MuonTesterTree/EventHashBranch.h
"
16
#include "
MuonTesterTree/IdentifierBranch.h
"
17
#include "
MuonTesterTree/ThreeVectorBranch.h
"
18
19
namespace
MuonR4
{
20
21
class
CaloCellsDumperAlg
:
public
AthHistogramAlgorithm
{
22
public
:
23
using
AthHistogramAlgorithm::AthHistogramAlgorithm
;
24
~CaloCellsDumperAlg
() =
default
;
25
26
StatusCode
initialize
() override final;
27
StatusCode
execute
(
const
EventContext& ctx) override final;
28
StatusCode
finalize
() override final;
29
30
private
:
31
SG
::ReadHandleKey<
CaloCellContainer
>
m_cellKey
{
this
,
"CellContainerKey"
,
"AllCalo"
,
32
"Input CaloCellContainer key (e.g. AllCalo)"
};
33
SG::ReadHandleKey<CaloTowerContainer>
m_towerKey
{
this
,
"TowerContainerKey"
,
"CombinedTower"
,
34
"Input CaloTowerContainer key (e.g. CombinedTower)"
};
35
Gaudi::Property<float>
m_minE
{
this
,
"MinCellEnergyMeV"
, 0.0,
36
"Minimum cell energy in MeV to be stored"
};
37
Gaudi::Property<int>
m_maxCells
{
this
,
"MaxCells"
, -1,
38
"Maximum number of cells to store per event (-1 = no cap)"
};
39
Gaudi::Property<float>
m_minTowerE
{
this
,
"MinTowerEnergyMeV"
, 0.0,
40
"Minimum tower energy in MeV to be stored"
};
41
Gaudi::Property<int>
m_maxTowers
{
this
,
"MaxTowers"
, -1,
42
"Maximum number of towers to store per event (-1 = no cap)"
};
43
44
const
CaloCell_ID
*
m_caloId
{
nullptr
};
45
46
MuonVal::MuonTesterTree
m_tree
{
"CaloDump"
,
"MuonBucketDump"
};
47
48
std::shared_ptr<MuonVal::EventHashBranch>
m_evtHash
{};
49
50
// Per-cell content
51
MuonVal::MuonIdentifierBranch
m_cell_id
{
m_tree
,
"cell_id"
};
52
MuonVal::ThreeVectorBranch
m_cell_pos
{
m_tree
,
"cell_position"
};
53
MuonVal::VectorBranch<float>
&
m_cell_energy
{
m_tree
.newVector<
float
>(
"cell_energy_mev"
)};
54
MuonVal::VectorBranch<float>
&
m_cell_eta
{
m_tree
.newVector<
float
>(
"cell_eta"
)};
55
MuonVal::VectorBranch<float>
&
m_cell_phi
{
m_tree
.newVector<
float
>(
"cell_phi"
)};
56
MuonVal::VectorBranch<int>
&
m_cell_sampling
{
m_tree
.newVector<
int
>(
"cell_sampling"
)};
57
MuonVal::VectorBranch<int>
&
m_cell_subCalo
{
m_tree
.newVector<
int
>(
"cell_subCalo"
)};
58
MuonVal::VectorBranch<unsigned short>
&
m_cell_isTile
{
m_tree
.newVector<
unsigned
short
>(
"cell_isTile"
)};
59
60
// Per-tower content
61
MuonVal::VectorBranch<float>
&
m_tower_energy
{
m_tree
.newVector<
float
>(
"tower_energy_mev"
)};
62
MuonVal::VectorBranch<float>
&
m_tower_et
{
m_tree
.newVector<
float
>(
"tower_et_mev"
)};
63
MuonVal::VectorBranch<float>
&
m_tower_eta
{
m_tree
.newVector<
float
>(
"tower_eta"
)};
64
MuonVal::VectorBranch<float>
&
m_tower_phi
{
m_tree
.newVector<
float
>(
"tower_phi"
)};
65
MuonVal::ThreeVectorBranch
m_tower_dir
{
m_tree
,
"tower_direction"
};
66
MuonVal::VectorBranch<unsigned int>
&
m_tower_nCells
{
m_tree
.newVector<
unsigned
int
>(
"tower_nCells"
)};
67
68
};
69
70
}
// namespace MuonR4
71
72
#endif
AthHistogramAlgorithm.h
CaloCellContainer.h
CaloCell_ID.h
EventHashBranch.h
IdentifierBranch.h
MuonTesterTree.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ThreeVectorBranch.h
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
CaloCellContainer
Container class for CaloCell.
Definition
CaloCellContainer.h:55
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
MuonR4::CaloCellsDumperAlg
Definition
CaloCellsDumperAlg.h:21
MuonR4::CaloCellsDumperAlg::m_cell_isTile
MuonVal::VectorBranch< unsigned short > & m_cell_isTile
Definition
CaloCellsDumperAlg.h:58
MuonR4::CaloCellsDumperAlg::m_towerKey
SG::ReadHandleKey< CaloTowerContainer > m_towerKey
Definition
CaloCellsDumperAlg.h:33
MuonR4::CaloCellsDumperAlg::m_cellKey
SG::ReadHandleKey< CaloCellContainer > m_cellKey
Definition
CaloCellsDumperAlg.h:31
MuonR4::CaloCellsDumperAlg::m_cell_eta
MuonVal::VectorBranch< float > & m_cell_eta
Definition
CaloCellsDumperAlg.h:54
MuonR4::CaloCellsDumperAlg::m_evtHash
std::shared_ptr< MuonVal::EventHashBranch > m_evtHash
Definition
CaloCellsDumperAlg.h:48
MuonR4::CaloCellsDumperAlg::finalize
StatusCode finalize() override final
Definition
CaloCellsDumperAlg.cxx:38
MuonR4::CaloCellsDumperAlg::m_tower_dir
MuonVal::ThreeVectorBranch m_tower_dir
Definition
CaloCellsDumperAlg.h:65
MuonR4::CaloCellsDumperAlg::m_caloId
const CaloCell_ID * m_caloId
Definition
CaloCellsDumperAlg.h:44
MuonR4::CaloCellsDumperAlg::m_minE
Gaudi::Property< float > m_minE
Definition
CaloCellsDumperAlg.h:35
MuonR4::CaloCellsDumperAlg::execute
StatusCode execute(const EventContext &ctx) override final
Execute method.
Definition
CaloCellsDumperAlg.cxx:43
MuonR4::CaloCellsDumperAlg::m_cell_phi
MuonVal::VectorBranch< float > & m_cell_phi
Definition
CaloCellsDumperAlg.h:55
MuonR4::CaloCellsDumperAlg::m_tower_energy
MuonVal::VectorBranch< float > & m_tower_energy
Definition
CaloCellsDumperAlg.h:61
MuonR4::CaloCellsDumperAlg::m_cell_subCalo
MuonVal::VectorBranch< int > & m_cell_subCalo
Definition
CaloCellsDumperAlg.h:57
MuonR4::CaloCellsDumperAlg::m_cell_pos
MuonVal::ThreeVectorBranch m_cell_pos
Definition
CaloCellsDumperAlg.h:52
MuonR4::CaloCellsDumperAlg::m_tower_et
MuonVal::VectorBranch< float > & m_tower_et
Definition
CaloCellsDumperAlg.h:62
MuonR4::CaloCellsDumperAlg::m_maxCells
Gaudi::Property< int > m_maxCells
Definition
CaloCellsDumperAlg.h:37
MuonR4::CaloCellsDumperAlg::m_minTowerE
Gaudi::Property< float > m_minTowerE
Definition
CaloCellsDumperAlg.h:39
MuonR4::CaloCellsDumperAlg::m_cell_sampling
MuonVal::VectorBranch< int > & m_cell_sampling
Definition
CaloCellsDumperAlg.h:56
MuonR4::CaloCellsDumperAlg::m_cell_energy
MuonVal::VectorBranch< float > & m_cell_energy
Definition
CaloCellsDumperAlg.h:53
MuonR4::CaloCellsDumperAlg::~CaloCellsDumperAlg
~CaloCellsDumperAlg()=default
MuonR4::CaloCellsDumperAlg::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
MuonR4::CaloCellsDumperAlg::m_tower_phi
MuonVal::VectorBranch< float > & m_tower_phi
Definition
CaloCellsDumperAlg.h:64
MuonR4::CaloCellsDumperAlg::m_tower_nCells
MuonVal::VectorBranch< unsigned int > & m_tower_nCells
Definition
CaloCellsDumperAlg.h:66
MuonR4::CaloCellsDumperAlg::m_maxTowers
Gaudi::Property< int > m_maxTowers
Definition
CaloCellsDumperAlg.h:41
MuonR4::CaloCellsDumperAlg::initialize
StatusCode initialize() override final
Definition
CaloCellsDumperAlg.cxx:16
MuonR4::CaloCellsDumperAlg::m_tree
MuonVal::MuonTesterTree m_tree
Definition
CaloCellsDumperAlg.h:46
MuonR4::CaloCellsDumperAlg::m_tower_eta
MuonVal::VectorBranch< float > & m_tower_eta
Definition
CaloCellsDumperAlg.h:63
MuonR4::CaloCellsDumperAlg::m_cell_id
MuonVal::MuonIdentifierBranch m_cell_id
Definition
CaloCellsDumperAlg.h:51
MuonVal::MuonIdentifierBranch
Class to dump the basic properties of an Identifier into an n-tuple StationName -> BIS,...
Definition
IdentifierBranch.h:21
MuonVal::MuonTesterTree
Definition
MuonTesterTree.h:38
MuonVal::ThreeVectorBranch
Definition
ThreeVectorBranch.h:14
MuonVal::VectorBranch
Definition
VectorBranch.h:14
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
const
MuonR4
This header ties the generic definitions in this package.
Definition
GlobalPattern.h:14
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0