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 
20 
32 
35 
37 
38 #include <vector>
39 #include <cstring>
40 #include <map>
41 #include <set>
42 
43 const unsigned int kNull = (unsigned int) -1;
44 
45 class EVTColContainer;
46 
48 {
49  public:
50  HLTHiggsPlotter(const edm::ParameterSet & pset, const std::string & hltPath,
51  //const std::string & lastFilter,
52  const std::vector<unsigned int> & objectsType,
53  DQMStore * dbe);
55  void beginJob();
56  void beginRun(const edm::Run &, const edm::EventSetup &);
57  void analyze(const bool & isPassTrigger,const std::string & source,
58  const std::vector<MatchStruct> & matches);
59 
60  inline const std::string gethltpath() const { return _hltPath; }
61 
62  private:
63  void bookHist(const std::string & source, const std::string & objType, const std::string & variable);
64  void fillHist(const bool & passTrigger, const std::string & source,
65  const std::string & objType, const std::string & var,
66  const float & value);
67 
68  std::string _hltPath;
69  //std::string _lastFilter;
70  std::string _hltProcessName;
71 
72  std::set<unsigned int> _objectsType;
73  // Number of objects (elec,muons, ...) needed in the hlt path
74  unsigned int _nObjects;
75 
76  std::vector<double> _parametersEta;
77  std::vector<double> _parametersPhi;
78  std::vector<double> _parametersTurnOn;
79 
80  std::map<unsigned int,double> _cutMinPt;
81  std::map<unsigned int,double> _cutMaxEta;
82  std::map<unsigned int,unsigned int> _cutMotherId;
83  std::map<unsigned int,std::vector<double> > _cutsDr;
84 
85 
87  std::map<std::string, MonitorElement *> _elements;
88 };
89 #endif
std::string _hltProcessName
const std::string gethltpath() const
container with all the objects needed
std::vector< double > _parametersPhi
std::set< unsigned int > _objectsType
std::map< std::string, MonitorElement * > _elements
HLTHiggsPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType, DQMStore *dbe)
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)
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
void bookHist(const std::string &source, const std::string &objType, const std::string &variable)
Definition: Run.h:33