Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DrawUtil.h

Go to the documentation of this file.
00001 #ifndef ANP_DRAWUTIL_H
00002 #define ANP_DRAWUTIL_H
00003 
00004 //C++
00005 #include <string>
00006 
00007 // MINOS
00008 #include "Registry/Registry.h"
00009 #include "Validity/VldContext.h"
00010 
00011 // Local
00012 #include "PhysicsNtuple/Record.h"
00013 
00014 class TPad;
00015 class TGraph;
00016 class TH1;
00017 class TH2;
00018 
00019 namespace Anp
00020 {   
00021    namespace Draw
00022    {
00023       typedef std::vector<Anp::StripIter> SVec;
00024       typedef SVec::iterator SIterator;
00025       typedef SVec::const_iterator SIter;
00026 
00027       typedef std::vector<Anp::StdHepIter> HepVec;
00028       typedef HepVec::iterator HepIterator;
00029       typedef HepVec::const_iterator HepIter;
00030 
00031       void Config(TPad *pad, const std::string &prefix, const Registry &reg);
00032       void Config(TH1 *h, const std::string &prefix, const Registry &reg);
00033 
00034       TH2* CreateTH2(const std::string &prefix, const Registry &reg, const Header &header);
00035       TGraph* CreateTGraph(const std::string &prefix, const Registry &reg);
00036 
00037       double Read(const std::string &key, double pvalue, const Registry &reg);
00038       int Read(const std::string &key, int pvalue, const Registry &reg);
00039       const std::string Read(const std::string &key, const std::string &pvalue, const Registry &reg);
00040 
00041       int Read(const Record &record, HepVec &hvec, int beg, int end);
00042 
00043       const VldContext GetValidity(const Header &header);
00044    }
00045 }
00046 
00047 #endif

Generated on Mon Feb 15 11:06:38 2010 for loon by  doxygen 1.3.9.1