ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/grimes/L1Menu/src/tools.cpp
(Generate patch)

Comparing UserCode/grimes/L1Menu/src/tools.cpp (file contents):
Revision 1.2 by grimes, Fri May 31 01:29:10 2013 UTC vs.
Revision 1.3 by grimes, Tue Jun 4 08:17:37 2013 UTC

# Line 33 | Line 33 | std::vector<std::string> l1menu::getThre
33                                  if( legNumber!=0 ) stringConverter << "leg" << legNumber; // For triggers with only one leg I don't want to prefix anything.
34  
35                                  stringConverter << "threshold" << thresholdNumber;
36 +
37                                  trigger.parameter(stringConverter.str());
38                                  // If the threshold doesn't exist the statement above will throw an exception, so
39                                  // I've reached this far then the threshold name must exist.
# Line 46 | Line 47 | std::vector<std::string> l1menu::getThre
47                          // exist, so I know I've finished. If it isn't from the first threshold then there could be
48                          // other prefixes (e.g. "leg2") that have thresholds that can be modified, in which case I
49                          // need to continue.
50 <                        if( thresholdNumber==1 ) break;
50 >                        if( thresholdNumber==1 && legNumber!=0 ) break;
51                  }
52          }
53  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines