ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
11
12#include "LArTowerBuilderTool.h"
13
14#include <string>
15
17 const std::string& type,
18 const IInterface* parent)
19 : CaloTowerBuilderTool(name,type,parent)
20{ }
21
24
25
30std::vector<CaloCell_ID::SUBCALO>
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
#define ATH_MSG_INFO(x)
CaloTowerBuilderTool(const CaloTowerBuilderTool &)=delete
virtual std::vector< CaloCell_ID::SUBCALO > parseCalos(const std::vector< std::string > &includedCalos) const override
Convert calorimeter strings to enums.
LArTowerBuilderTool(const std::string &name, const std::string &type, const IInterface *parent)
AlgTool constructor.