ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
CaloCell_ID.h
CaloTowerBuilderTool.h
LArTowerBuilderTool.h
CaloCell_Base_ID::LAREM
@ LAREM
Definition
CaloCell_Base_ID.h:45
CaloCell_Base_ID::LARHEC
@ LARHEC
Definition
CaloCell_Base_ID.h:45
CaloTowerBuilderTool::CaloTowerBuilderTool
CaloTowerBuilderTool(const CaloTowerBuilderTool &)=delete
LArTowerBuilderTool::~LArTowerBuilderTool
virtual ~LArTowerBuilderTool()
Definition
LArTowerBuilderTool.cxx:22
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
LArTowerBuilderTool::LArTowerBuilderTool
LArTowerBuilderTool(const std::string &name, const std::string &type, const IInterface *parent)
AlgTool constructor.
Definition
LArTowerBuilderTool.cxx:16
type
Generated on
for ATLAS Offline Software by
1.17.0