I did get the time to pick up the basics of gdb this week, and it has already proved a worthwhile investment.
Just wanted to let you know that I did take your advice, laserlight, it just wasn't...
Type: Posts; User: cowboyjo
I did get the time to pick up the basics of gdb this week, and it has already proved a worthwhile investment.
Just wanted to let you know that I did take your advice, laserlight, it just wasn't...
Thanks for your replies tabstop, I did find where the vector is being filled with zeros in a different part of the code.
What threw me was the fact that the correct values eventually did appear....
I'll post more info and a simplified example if I can recreate the problem within a simpler context, but until then I would still appreciate any insight into this problem. Has any one ever...
It doesn't seem to be that simple. I do not have a vector of length 75000 plus, I merely access the elements of a 128 deep vector 75000 times and get a zero, and then magically get the correct value...
learn how to use a debugger added to my todo list.
i modified the else statement like so:
else {
std::cout << "what am i doing here" << std::endl;
for (int i=0;i<md.ntot();i++)...
well, seems I was too optimistic about the above fix. The code works as is, but if i take out the various print statements and revert the control statements (basically undoing all the damage done...
Ok, I got the values to register by doing this in initPedestals:
initPedestals(Module &md)
{
_pflist.insert(PFEntry(256,"pedestals.txt"));
PFList::iterator it = _pflist.find(md.id());
...
Hi,
I'm having a problem with values read in from a file and assigned to a vector using push_back are not updating. After the values have been assigned, the vector returns zero for all of its...