ATLAS Offline Software
Static Public Member Functions | List of all members
LATOMEMapping Class Reference

Tool to get LATOME SC and SCID mapping file and fill std::map variable with it. More...

#include <LATOMEMapping.h>

Collaboration diagram for LATOMEMapping:

Static Public Member Functions

static void fill (std::map< int, HWIdentifier > *toFill, std::string inputfile)
 

Detailed Description

Tool to get LATOME SC and SCID mapping file and fill std::map variable with it.

Definition at line 18 of file LATOMEMapping.h.

Member Function Documentation

◆ fill()

void LATOMEMapping::fill ( std::map< int, HWIdentifier > *  toFill,
std::string  inputfile 
)
static

Definition at line 16 of file LATOMEMapping.cxx.

16  {
17  std::ifstream ifs(inputfile);
18  if (ifs.fail()) std::cout << "Fail to read" << inputfile << std::endl;
19  int value, key;
20  while (ifs >> value >> key) {
21  if (value != -999) add_to_map(toFill, value, key);
22  }
23 }

The documentation for this class was generated from the following files:
athena.value
value
Definition: athena.py:124
add_to_map
void add_to_map(latome_map *map, int value, int key)
Definition: LATOMEMapping.cxx:11
FullCPAlgorithmsTest_CA.inputfile
dictionary inputfile
Definition: FullCPAlgorithmsTest_CA.py:62
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37