#include <CSCTriggerElectronicsMappingFromFile.h>
|
| CSCTriggerElectronicsMappingFromFile () |
|
| CSCTriggerElectronicsMappingFromFile (std::string filename) |
| Constructor. More...
|
|
void | fill (void) override |
| Fill mapping store. More...
|
|
| ~CSCTriggerElectronicsMappingFromFile () override |
| Destructor. More...
|
|
| CSCTriggerElectronicsMapping () |
| Constructor. More...
|
|
| ~CSCTriggerElectronicsMapping () override |
| Destructor. More...
|
|
void | addRecord (int rendcap, int rstation, int rsector, int rsubsector, int rcscid, int cendcap, int cstation, int csector, int csubsector, int ccscid) |
|
int | chamber (int endcap, int station, int sector, int subsector, int cscid) const |
|
| CSCTriggerMapping () |
| Default constructor. More...
|
|
bool | debugV (void) const |
|
CSCDetId | detId (int endcap, int station, int sector, int subsector, int cscid, int layer=0) const |
|
const std::string & | myName (void) const |
|
void | setDebugV (bool dbg) |
|
virtual | ~CSCTriggerMapping () |
| Destructor. More...
|
|
- Author
- Lindsey Gray A concrete CSCTriggerElectronicsMapping to read mapping from Ascii file.
Definition at line 13 of file CSCTriggerElectronicsMappingFromFile.h.
◆ CSCTriggerElectronicsMappingFromFile() [1/2]
CSCTriggerElectronicsMappingFromFile::CSCTriggerElectronicsMappingFromFile |
( |
std::string |
filename | ) |
|
|
explicit |
◆ CSCTriggerElectronicsMappingFromFile() [2/2]
CSCTriggerElectronicsMappingFromFile::CSCTriggerElectronicsMappingFromFile |
( |
| ) |
|
|
inline |
◆ ~CSCTriggerElectronicsMappingFromFile()
CSCTriggerElectronicsMappingFromFile::~CSCTriggerElectronicsMappingFromFile |
( |
| ) |
|
|
override |
◆ fill()
void CSCTriggerElectronicsMappingFromFile::fill |
( |
void |
| ) |
|
|
overridevirtual |
Fill mapping store.
Implements CSCTriggerMapping.
Definition at line 12 of file CSCTriggerElectronicsMappingFromFile.cc.
17 std::cout <<
"CSCTriggerElectronicsMappingFromFile: ERROR! Failed to open file containing mapping, " <<
filename_
20 std::cout <<
"CSCTriggerElectronicsMappingFromFile: opened file containing mapping, " <<
filename_ << std::endl;
22 while (getline(
in,
line)) {
25 if (
line[0] != commentFlag[0]) {
26 int i1,
i2,
i3, i6, i7, i8, i9, i10;
27 std::istringstream is(
line);
28 is >>
i1 >>
i2 >>
i3 >> i6 >> i7 >> i8 >> i9 >> i10;
30 std::cout <<
i1 <<
" " <<
i2 <<
" " <<
i3 <<
" " << i6 <<
" " << i7 <<
" " << i8 <<
" " << i9 <<
" " << i10
References CSCTriggerMapping::addRecord(), gather_cfg::cout, CSCTriggerMapping::debugV(), filename_, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, recoMuon::in, mps_splice::line, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CSCTriggerElectronicsMappingFromFile().
◆ filename_
std::string CSCTriggerElectronicsMappingFromFile::filename_ |
|
private |
void addRecord(int rendcap, int rstation, int rsector, int rsubsector, int rcscid, int cendcap, int cstation, int csector, int csubsector, int ccscid)