ATLAS Offline Software
Loading...
Searching...
No Matches
TileTowerBuilderTool.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// Gaudi includes
6#include "GaudiKernel/MsgStream.h"
7
8// Calo includes
11
12// Tile includes
14
15#include <string>
16
17TileTowerBuilderTool::TileTowerBuilderTool(const std::string& name, const std::string& type,
18 const IInterface* parent)
19 : CaloTowerBuilderTool(name, type, parent)
20{
21}
22
25
26
31std::vector<CaloCell_ID::SUBCALO>
33 (const std::vector<std::string>& includedCalos) const
34{
35 // convert to enumerators
36 std::vector<CaloCell_ID::SUBCALO> indices;
37
38 for (const std::string& s : includedCalos) {
39 if (s == "TILE") {
40 indices.push_back(CaloCell_ID::TILE);
41 }
42 }
43
44 return indices;
45}
CaloTowerBuilderTool(const CaloTowerBuilderTool &)=delete
TileTowerBuilderTool(const std::string &name, const std::string &type, const IInterface *parent)
AlgTool constructor.
virtual std::vector< CaloCell_ID::SUBCALO > parseCalos(const std::vector< std::string > &includedCalos) const override
Convert calorimeter strings to enums.