CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTHiggsPlotter.h
Go to the documentation of this file.
1 #ifndef HLTriggerOffline_Higgs_HLTHiggsPlotter_H
2 #define HLTriggerOffline_Higgs_HLTHiggsPlotter_H
3 
18 
30 
33 
35 
36 #include <vector>
37 #include <cstring>
38 #include <map>
39 #include <set>
40 
41 const unsigned int kNull = (unsigned int) -1;
42 
43 class EVTColContainer;
44 
46 {
47  public:
48  HLTHiggsPlotter(const edm::ParameterSet & pset, const std::string & hltPath,
49  //const std::string & lastFilter,
50  const std::vector<unsigned int> & objectsType);
52  void beginJob();
53  void beginRun(const edm::Run &, const edm::EventSetup &);
55  void analyze(const bool & isPassTrigger,const std::string & source,
56  const std::vector<MatchStruct> & matches);
57 
58  inline const std::string gethltpath() const { return _hltPath; }
59 
60  private:
61  void bookHist(const std::string & source, const std::string & objType, const std::string & variable, DQMStore::IBooker &);
62  void fillHist(const bool & passTrigger, const std::string & source,
63  const std::string & objType, const std::string & var,
64  const float & value);
65 
67  //std::string _lastFilter;
69 
70  std::set<unsigned int> _objectsType;
71  // Number of objects (elec,muons, ...) needed in the hlt path
72  unsigned int _nObjects;
73 
74  std::vector<double> _parametersEta;
75  std::vector<double> _parametersPhi;
76  std::vector<double> _parametersTurnOn;
77 
78  std::map<unsigned int,double> _cutMinPt;
79  std::map<unsigned int,double> _cutMaxEta;
80  std::map<unsigned int,unsigned int> _cutMotherId;
81  std::map<unsigned int,std::vector<double> > _cutsDr;
82 
83 
84  std::map<std::string, MonitorElement *> _elements;
85 };
86 #endif
std::string _hltProcessName
const std::string gethltpath() const
void bookHistograms(DQMStore::IBooker &)
HLTHiggsPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType)
container with all the objects needed
std::vector< double > _parametersPhi
std::set< unsigned int > _objectsType
std::map< std::string, MonitorElement * > _elements
std::string _hltPath
const unsigned int kNull
std::map< unsigned int, double > _cutMinPt
std::vector< double > _parametersTurnOn
std::map< unsigned int, std::vector< double > > _cutsDr
std::map< unsigned int, unsigned int > _cutMotherId
void fillHist(const bool &passTrigger, const std::string &source, const std::string &objType, const std::string &var, const float &value)
void bookHist(const std::string &source, const std::string &objType, const std::string &variable, DQMStore::IBooker &)
std::vector< double > _parametersEta
void beginRun(const edm::Run &, const edm::EventSetup &)
unsigned int _nObjects
void analyze(const bool &isPassTrigger, const std::string &source, const std::vector< MatchStruct > &matches)
std::map< unsigned int, double > _cutMaxEta
static std::string const source
Definition: EdmProvDump.cc:43
Definition: Run.h:41