ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/yangyong/Pi0Calibration/Common/getGoodLS.cc
(Generate patch)

Comparing UserCode/yangyong/Pi0Calibration/Common/getGoodLS.cc (file contents):
Revision 1.1 by yangyong, Sat Aug 18 13:53:10 2012 UTC vs.
Revision 1.2 by yangyong, Sun Aug 19 12:09:25 2012 UTC

# Line 27 | Line 27 | void getLSrangeofEachRuns(vector<string>
27      
28      cout<<"certfile: "<< certfiles[n].c_str() <<endl;
29      ifstream txtin(certfiles[n].c_str(),ios::in);
30 <
30 >    if (txtin.fail()) {
31 >      cout<<" file can not be opened!" <<endl;
32 >      exit(1);
33 >    }
34      
35 +
36      while( txtin.good()){
37        
38        char buf[MAX_CHARS_PER_LINE];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines