Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
L1Trigger
CSCTrackFinder
src
core_2012_03_13
vpp_lib.h
Go to the documentation of this file.
1
2
void
readmemh
(std::string
fname
,
ULLONG
*
mem
,
ULLONG
astart,
ULLONG
afinish)
3
{
4
std::ifstream ifs (fname.c_str() ,
std::ifstream::in
);
5
ULLONG
val;
6
for
(
ULLONG
i
= astart;
i
<= afinish;
i
++)
7
{
8
if
(ifs >> std::hex >> val)
9
{
10
mem[
i
] = val;
11
}
12
else
13
{
14
std::cerr
<<
"Cannot read file: "
<< fname <<
", addr: "
<<
i
<< std::endl;
15
ifs.close();
16
return
;
17
}
18
}
19
ifs.close();
20
//std::cout << "LUT file: " << fname << " read out successfully." << std::endl;
21
}
i
int i
Definition:
DBlmapReader.cc:9
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
ULLONG
unsigned long long ULLONG
Definition:
vpp_generated.h:13
mem
uint16_t mem[nChs][nEvts]
Definition:
recycleTccEmu.cc:13
readmemh
void readmemh(std::string fname, ULLONG *mem, ULLONG astart, ULLONG afinish)
Definition:
vpp_lib.h:2
dtNoiseDBValidation_cfg.cerr
tuple cerr
Definition:
dtNoiseDBValidation_cfg.py:22
alignmentValidation.fname
string fname
main script
Definition:
alignmentValidation.py:957
Generated for CMSSW Reference Manual by
1.8.5