ATLAS Offline Software
Loading...
Searching...
No Matches
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, const std::string &inputfile, MsgStream &log)

Detailed Description

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

Definition at line 21 of file LATOMEMapping.h.

Member Function Documentation

◆ fill()

void LATOMEMapping::fill ( std::map< int, HWIdentifier > & toFill,
const std::string & inputfile,
MsgStream & log )
static

Definition at line 17 of file LATOMEMapping.cxx.

18 {
19 std::ifstream ifs(inputfile);
20 if (ifs.fail()) log << MSG::ERROR << "Fail to read" << inputfile << endmsg;
21 int value, key;
22 while (ifs >> value >> key) {
23 if (value != -999) toFill[key] = HWIdentifier(value);
24 }
25}
#define endmsg

The documentation for this class was generated from the following files: