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" |
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) ; |
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 |
|
|