ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataCont/interface/Array.h
(Generate patch)

Comparing UserCode/MitAna/DataCont/interface/Array.h (file contents):
Revision 1.5 by bendavid, Mon Dec 1 17:17:20 2008 UTC vs.
Revision 1.6 by loizides, Mon Dec 8 15:26:11 2008 UTC

# Line 156 | Line 156 | void mithep::Array<ArrayElement>::Print(
156    printf("%s: Contains %d (out of %d) objs of name %s\n",
157           GetName(), GetEntries(), GetSize(), ArrayElement::Class_Name());
158  
159 <  const UInt_t N = GetEntries();
160 <  for (UInt_t i=0; i<N; ++i) {
161 <    printf("%4d: ",i);
162 <    At(i)->Print(opt);
159 >  if (opt && opt[0]=='l') {
160 >    const UInt_t N = GetEntries();
161 >    for (UInt_t i=0; i<N; ++i) {
162 >      printf("%4d: ",i);
163 >      At(i)->Print(opt);
164 >    }
165    }
166   }
167  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines