00001 #ifndef QUICK_ANA__VALIDATION_HISTS_H
00002 #define QUICK_ANA__VALIDATION_HISTS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <QuickAna/Global.h>
00021
00022 #include <QuickAna/xAODInclude.h>
00023 #include <string>
00024
00025 #ifdef ROOTCORE
00026 #include <EventLoop/Global.h>
00027 #endif
00028
00029 class TH1;
00030
00031 namespace ana
00032 {
00033 class ValidationHists
00034 {
00035
00036
00037
00038
00041 public:
00042 void testInvariant () const;
00043
00044
00048 public:
00049 ValidationHists (EL::Worker *val_worker,
00050 const InternalConfiguration& configuration);
00051
00052
00056 public:
00057 void fillHists (const std::string& prefix, const IEventObjects& objects,
00058 float weight);
00059
00060
00064 public:
00065 void fillHists (const std::string& prefix,
00066 const xAOD::IParticleContainer& particles,
00067 float weight);
00068 void fillHists (const std::string& prefix,
00069 const xAOD::MissingET& met,
00070 float weight);
00071
00072
00076 public:
00077 void fillHist (const std::string& name, unsigned nbins, float low,
00078 float high, float value, float weight);
00079
00080
00081
00082
00083
00084
00085
00087 private:
00088 EL::Worker *m_worker;
00089
00091 private:
00092 std::unordered_map<std::string,TH1*> m_hists;
00093
00095 private:
00096 SG::AuxElement::Accessor<SelectType> m_selectionAccessor;
00097 };
00098 }
00099
00100 #endif