ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/mschen/SusyAnalysis/code/inputbins.h
Revision: 1.1
Committed: Mon Mar 28 09:23:54 2011 UTC (14 years, 1 month ago) by mschen
Content type: text/plain
Branch: MAIN
CVS Tags: V2010_data_analysis_effModelInPaper, V2010_data_analysis, HEAD
Log Message:
2010 same sign analysis codeing

File Contents

# User Rev Content
1 mschen 1.1 #ifndef inputbins_h
2     #define inputbins_h
3     // InputBins.h
4     // read binning from config files
5     // Operators << and >> are defined to allow writing to and reading from files
6     // Mingshui Chen, 5 May 2010
7    
8     #include <iostream>
9     #include <vector>
10    
11     using std::vector;
12    
13     struct InputBins
14     {
15     vector<double> vbins;
16     int nbins;
17    
18     InputBins() {}
19     InputBins( int n, vector<double> v ):nbins(n), vbins(v){}
20     InputBins( const InputBins& orig ) : nbins(orig.nbins), vbins(orig.vbins) {}
21    
22     InputBins& operator=( const InputBins& orig )
23     { nbins = orig.nbins; vbins = orig.vbins; return *this; }
24     };
25    
26     std::ostream& operator<<( std::ostream& os, const InputBins& t );
27     std::istream& operator>>( std::istream& is, InputBins& t );
28    
29     #endif