ATLAS Offline Software
LArCalorimeter
LArRecUtils
src
LArTowerBuilderTool.cxx
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
#include "GaudiKernel/Service.h"
7
8
#include "
CaloIdentifier/CaloCell_ID.h
"
9
10
#include "
CaloUtils/CaloTowerBuilderTool.h
"
11
12
#include "
LArTowerBuilderTool.h
"
13
14
#include <string>
15
16
LArTowerBuilderTool::LArTowerBuilderTool
(
const
std::string&
name
,
17
const
std::string&
type
,
18
const
IInterface*
parent
)
19
:
CaloTowerBuilderTool
(
name
,
type
,
parent
)
20
{ }
21
22
LArTowerBuilderTool::~LArTowerBuilderTool
()
23
{ }
24
25
30
std::vector<CaloCell_ID::SUBCALO>
31
LArTowerBuilderTool::parseCalos
32
(
const
std::vector<std::string>& includedCalos)
const
33
{
34
// convert to enumerators
35
std::vector<CaloCell_ID::SUBCALO>
indices
;
36
37
for
(
const
std::string&
s
: includedCalos) {
38
if
(
s
==
"LAREM"
) {
39
indices
.push_back(
CaloCell_ID::LAREM
);
40
}
41
else
if
(
s
==
"LARHEC"
) {
42
indices
.push_back(
CaloCell_ID::LARHEC
);
43
}
44
else
if
(
s
==
"LARFCAL"
) {
45
ATH_MSG_INFO
(
"use LArFCalTowerBuilderTool for the FCal - request ignored"
);
46
}
47
}
48
49
return
indices
;
50
}
51
LArTowerBuilderTool::LArTowerBuilderTool
LArTowerBuilderTool(const std::string &name, const std::string &type, const IInterface *parent)
AlgTool constructor.
Definition:
LArTowerBuilderTool.cxx:16
python.SystemOfUnits.s
int s
Definition:
SystemOfUnits.py:131
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
Trk::indices
std::pair< long int, long int > indices
Definition:
AlSymMatBase.h:24
CaloCell_Base_ID::LARHEC
@ LARHEC
Definition:
CaloCell_Base_ID.h:46
LArTowerBuilderTool::~LArTowerBuilderTool
virtual ~LArTowerBuilderTool()
Definition:
LArTowerBuilderTool.cxx:22
CaloCell_ID.h
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
LArTowerBuilderTool::parseCalos
virtual std::vector< CaloCell_ID::SUBCALO > parseCalos(const std::vector< std::string > &includedCalos) const override
Convert calorimeter strings to enums.
Definition:
LArTowerBuilderTool.cxx:32
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
CaloCell_Base_ID::LAREM
@ LAREM
Definition:
CaloCell_Base_ID.h:46
CaloTowerBuilderTool
Definition:
CaloTowerBuilderTool.h:34
LArTowerBuilderTool.h
CaloTowerBuilderTool.h
Generated on Thu Nov 7 2024 21:20:04 for ATLAS Offline Software by
1.8.18