ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Jeng/scripts/Beam/ReadBeamSpot.h
Revision: 1.1
Committed: Fri Feb 12 18:03:59 2010 UTC (15 years, 2 months ago) by jengbou
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Log Message:
Add scripts for plotting beam positions vs run number (modified from Lorenzo's code)

File Contents

# User Rev Content
1 jengbou 1.1 #ifndef _ReadBeamSpot_h_
2     #define _ReadBeamSpot_h_
3    
4     #include <ostream>
5     #include <fstream>
6     #include <string>
7     #include <sstream>
8     #include <algorithm>
9    
10     using namespace std;
11    
12     bool myci_equal(char ch1, char ch2);
13    
14     class ReadBeamSpot{
15     public:
16     ReadBeamSpot();
17     ~ReadBeamSpot();
18     void openHtmlFile (string fileName);
19     void closeHtmlFile (void);
20     void makePlots ();
21     void findString (string what);
22     void setStyle();
23     friend ostream& operator<<(ostream& out, const ReadBeamSpot& reader);
24     private:
25     ifstream theFile_;
26     string text_;
27     string dataDir_;
28     stringstream textFound_;
29    
30     size_t ci_find(string& str1, string str2, int stringPos);
31     };
32    
33     #endif