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

Comparing UserCode/GPetrucc/interface/fwliteHelpers.h (file contents):
Revision 1.1 by gpetrucc, Wed Jan 27 23:00:05 2010 UTC vs.
Revision 1.3 by gpetrucc, Sun Jan 31 19:44:41 2010 UTC

# Line 6 | Line 6
6  
7   #include <string>
8   #include <Reflex/Type.h>
9 + #include <TH1.h>
10 + #include <TH2.h>
11 + #include <TProfile.h>
12 + #include <TGraph.h>
13  
14   #if !defined(__CINT__) && !defined(__MAKECINT__)
15   #include "CommonTools/Utils/src/ExpressionPtr.h"
# Line 24 | Line 28 | namespace helper {
28      };
29      class ScannerBase {
30          public:
31 <            ScannerBase(const Reflex::Type &objType) : objType_(objType) {}
31 >            ScannerBase(const Reflex::Type &objType) : objType_(objType), ignoreExceptions_(false) {}
32              void clearExpressions() { exprs_.clear(); }
33              void addExpression(const char *expr) ;
34              void setCut(const char *cut) ;
# Line 33 | Line 37 | namespace helper {
37              /// obj must point to an object of the correct type!
38              bool test(const void *obj) ;
39              void print(const void *obj) ;
40 +            
41 +            void fill1D(const void *obj, TH1 *hist) ;
42 +            void fill2D(const void *obj, TH2 *hist2d) ;
43 +            void fillProf(const void *obj, TProfile *prof) ;
44 +
45 +            void setIgnoreExceptions(bool ignoreThem) { ignoreExceptions_ = ignoreThem; }
46          private:
47              Parser helpme;
48              Reflex::Type objType_;
49              std::vector<reco::parser::ExpressionPtr> exprs_;
50              reco::parser::SelectorPtr    cut_;
51 +            bool ignoreExceptions_;
52      };
53   }
54  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines