ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloRecGPU
src
CaloCellsCounterCPU.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
//
4
// Dear emacs, this is -*- c++ -*-
5
//
6
7
#ifndef CALORECGPU_CALOCELLSCOUNTERCPU_H
8
#define CALORECGPU_CALOCELLSCOUNTERCPU_H
9
10
#include "
AthenaBaseComps/AthAlgTool.h
"
11
#include "
CaloUtils/CaloClusterCollectionProcessor.h
"
12
#include <string>
13
14
#include "
StoreGate/ReadCondHandleKey.h
"
15
#include "
StoreGate/ReadHandleKey.h
"
16
#include "
CaloConditions/CaloNoise.h
"
17
18
class
CaloCell_ID
;
19
26
27
class
CaloCellsCounterCPU
:
28
public
extends<AthAlgTool, CaloClusterCollectionProcessor>
29
{
30
public
:
31
32
CaloCellsCounterCPU
(
const
std::string &
type
,
const
std::string & name,
const
IInterface * parent);
33
34
using
CaloClusterCollectionProcessor::execute
;
35
36
virtual
StatusCode
initialize
()
override
;
37
38
virtual
StatusCode
execute
(
const
EventContext& ctx,
xAOD::CaloClusterContainer
* cluster_collection)
const override
;
39
40
virtual
~CaloCellsCounterCPU
() =
default
;
41
42
private
:
43
44
49
Gaudi::Property<std::string>
m_savePath
{
this
,
"SavePath"
,
"./cell_counts"
,
"Path to where the files should be saved"
};
50
54
Gaudi::Property<std::string>
m_filePrefix
{
this
,
"FilePrefix"
,
""
,
"Prefix of the saved files"
};
55
59
Gaudi::Property<std::string>
m_fileSuffix
{
this
,
"FileSuffix"
,
""
,
"Suffix of the saved files"
};
60
64
Gaudi::Property<unsigned int>
m_numWidth
{
this
,
"NumberWidth"
, 9,
"The number of digits to reserve for the events"
};
65
69
SG::ReadHandleKey<CaloCellContainer>
m_cellsKey
{
this
,
"CellsName"
,
""
,
"Name(s) of Cell Containers"
};
70
74
SG::ReadCondHandleKey<CaloNoise>
m_noiseCDOKey
{
this
,
"CaloNoiseKey"
,
"totalNoise"
,
"SG Key of CaloNoise data object"
};
75
79
Gaudi::Property<float>
m_seedThreshold
{
this
,
"SeedThresholdOnEorAbsEinSigma"
, 4.,
"Seed threshold (in units of noise Sigma)"
};
80
84
Gaudi::Property<float>
m_growThreshold
{
this
,
"NeighborThresholdOnEorAbsEinSigma"
, 2.,
"Neighbor (grow) threshold (in units of noise Sigma)"
};
85
89
Gaudi::Property<float>
m_cellThreshold
{
this
,
"CellThresholdOnEorAbsEinSigma"
, 0.,
"Cell (terminal) threshold (in units of noise Sigma)"
};
90
91
//TO DO: Consider non-absolute SNR...
92
96
const
CaloCell_ID
*
m_calo_id
{
nullptr
};
97
98
};
99
100
#endif
//CALORECGPU_CALOCELLSCOUNTERCPU_H
AthAlgTool.h
CaloClusterCollectionProcessor.h
Base class for cluster processing tools called from CaloClusterMaker.
CaloNoise.h
ReadCondHandleKey.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CaloCell_ID
Helper class for offline cell identifiers.
Definition
CaloCell_ID.h:34
CaloCellsCounterCPU::m_cellsKey
SG::ReadHandleKey< CaloCellContainer > m_cellsKey
vector of names of the cell containers to use as input.
Definition
CaloCellsCounterCPU.h:69
CaloCellsCounterCPU::m_growThreshold
Gaudi::Property< float > m_growThreshold
Value to consider for the seed threshold.
Definition
CaloCellsCounterCPU.h:84
CaloCellsCounterCPU::m_cellThreshold
Gaudi::Property< float > m_cellThreshold
Value to consider for the seed threshold.
Definition
CaloCellsCounterCPU.h:89
CaloCellsCounterCPU::m_noiseCDOKey
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Key of the CaloNoise Conditions data object.
Definition
CaloCellsCounterCPU.h:74
CaloCellsCounterCPU::initialize
virtual StatusCode initialize() override
Definition
CaloCellsCounterCPU.cxx:23
CaloCellsCounterCPU::m_numWidth
Gaudi::Property< unsigned int > m_numWidth
The number of digits to reserve for the events.
Definition
CaloCellsCounterCPU.h:64
CaloCellsCounterCPU::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *cluster_collection) const override
Definition
CaloCellsCounterCPU.cxx:60
CaloCellsCounterCPU::~CaloCellsCounterCPU
virtual ~CaloCellsCounterCPU()=default
CaloCellsCounterCPU::m_calo_id
const CaloCell_ID * m_calo_id
Pointer to Calo ID Helper.
Definition
CaloCellsCounterCPU.h:96
CaloCellsCounterCPU::m_savePath
Gaudi::Property< std::string > m_savePath
The path specifying the folder to which the files should be saved.
Definition
CaloCellsCounterCPU.h:49
CaloCellsCounterCPU::CaloCellsCounterCPU
CaloCellsCounterCPU(const std::string &type, const std::string &name, const IInterface *parent)
Definition
CaloCellsCounterCPU.cxx:17
CaloCellsCounterCPU::m_filePrefix
Gaudi::Property< std::string > m_filePrefix
The prefix of the saved files.
Definition
CaloCellsCounterCPU.h:54
CaloCellsCounterCPU::m_seedThreshold
Gaudi::Property< float > m_seedThreshold
Value to consider for the seed threshold.
Definition
CaloCellsCounterCPU.h:79
CaloCellsCounterCPU::m_fileSuffix
Gaudi::Property< std::string > m_fileSuffix
The suffix of the saved files.
Definition
CaloCellsCounterCPU.h:59
CaloClusterCollectionProcessor::execute
virtual StatusCode execute(const EventContext &ctx, xAOD::CaloClusterContainer *collection) const =0
Execute on an entire collection of clusters.
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
xAOD::CaloClusterContainer
CaloClusterContainer_v1 CaloClusterContainer
Define the latest version of the calorimeter cluster container.
Definition
Event/xAOD/xAODCaloEvent/xAODCaloEvent/CaloClusterContainer.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0