ATLAS Offline Software
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)
20 { }
21 
23 { }
24 
25 
30 std::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 
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