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.4 by gpetrucc, Tue Feb 2 18:11:54 2010 UTC vs.
Revision 1.6 by gpetrucc, Wed Mar 3 09:29:52 2010 UTC

# Line 27 | Line 27 | namespace helper {
27              static reco::parser::ExpressionPtr  makeExpression(const std::string &expr, const Reflex::Type &type) ;
28              static reco::parser::SelectorPtr    makeSelector(const std::string &expr, const Reflex::Type &type) ;
29              static Reflex::Type elementType(const Reflex::Type &wrapperType) ;
30 +            // define also dictionaries for these two trivial functions
31 +            // because otherwise sometimes CINT crashes on them
32 +            static bool   test(const reco::parser::SelectorPtr &sel, const Reflex::Type type, const void * obj);
33 +            static double eval(const reco::parser::ExpressionPtr &sel, const Reflex::Type type, const void * obj);
34      };
35      class ScannerBase {
36          public:
37              ScannerBase() {}
38              ScannerBase(const Reflex::Type &objType) : objType_(objType), ignoreExceptions_(false) {}
39              void clearExpressions() { exprs_.clear(); }
40 <            void addExpression(const char *expr) ;
41 <            void setCut(const char *cut) ;
40 >            size_t numberOfExpressions() const { return exprs_.size(); }
41 >            bool addExpression(const char *expr) ;
42 >            bool setCut(const char *cut) ;
43              void clearCut() { cut_.reset(); }
44  
45 <            /// obj must point to an object of the correct type!
46 <            bool test(const void *obj) const ;
47 <            void print(const void *obj) const ;
45 >            // obj must point to an object of the correct type!
46 >            bool   test(const void *obj) const ;
47 >            double eval(const void *obj, size_t iexpr = 0) const;
48 >            void   print(const void *obj) const ;
49 >
50              
51              void fill1D(const void *obj, TH1 *hist) const ;
52              void fill2D(const void *obj, TH2 *hist2d) const ;
53 +            void fillGraph(const void *obj, TGraph *graph) const ;
54              void fillProf(const void *obj, TProfile *prof) const ;
55  
56              void setIgnoreExceptions(bool ignoreThem) { ignoreExceptions_ = ignoreThem; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines