7 : filename_( filename ) {
fill(); }
14 const std::string commentFlag =
"#";
16 std::cout <<
"CSCTriggerElectronicsMappingFromFile: ERROR! Failed to open file containing mapping, " <<
21 std::cout <<
"CSCTriggerElectronicsMappingFromFile: opened file containing mapping, " <<
24 while ( getline(
in, line) ) {
26 if ( line[0] != commentFlag[0] ) {
27 int i1, i2, i3, i6, i7, i8, i9, i10;
28 std::istringstream is( line );
29 is >> i1 >> i2 >> i3 >> i6 >> i7 >> i8 >> i9 >> i10;
31 << i6 <<
" " << i7 <<
" " << i8 <<
" "
32 << i9 <<
" " << i10 << std::endl;
33 addRecord( i1, i2, i3, 0, 0, i6, i7, i8, i9 , i10);
virtual ~CSCTriggerElectronicsMappingFromFile()
Destructor.
void addRecord(int rendcap, int rstation, int rsector, int rsubsector, int rcscid, int cendcap, int cstation, int csector, int csubsector, int ccscid)
CSCTriggerElectronicsMappingFromFile()
virtual void fill(void)
Fill mapping store.