CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTExoticaPlotter.h
Go to the documentation of this file.
1 #ifndef HLTriggerOffline_Exotica_HLTExoticaPlotter_H
2 #define HLTriggerOffline_Exotica_HLTExoticaPlotter_H
3 
19 
31 
34 
35 #include <vector>
36 #include <cstring>
37 #include <map>
38 #include <set>
39 
40 //const unsigned int kNull = (unsigned int) - 1;
41 
42 class EVTColContainer;
43 
45 public:
46  HLTExoticaPlotter(const edm::ParameterSet & pset, const std::string & hltPath,
47  const std::vector<unsigned int> & objectsType);
49  void beginJob();
50  void beginRun(const edm::Run &, const edm::EventSetup &);
51  void plotterBookHistos(DQMStore::IBooker & iBooker, const edm::Run & iRun, const edm::EventSetup & iSetup);
52  void analyze(const bool & isPassTrigger, const std::string & source,
53  const std::vector<reco::LeafCandidate> & matches);
54 
55  inline const std::string gethltpath() const
56  {
57  return _hltPath;
58  }
59 
60 private:
61  void bookHist(DQMStore::IBooker & iBooker, const std::string & source, const std::string & objType, const std::string & variable);
62  void fillHist(const bool & passTrigger, const std::string & source,
63  const std::string & objType, const std::string & var,
64  const float & value);
65 
68 
69  std::set<unsigned int> _objectsType;
70  // Number of objects (elec,muons, ...) needed in the hlt path
71  unsigned int _nObjects;
72 
73  std::vector<double> _parametersEta;
74  std::vector<double> _parametersPhi;
75  std::vector<double> _parametersTurnOn;
76 
77  std::map<std::string, MonitorElement *> _elements;
78 };
79 #endif
const std::string gethltpath() const
void plotterBookHistos(DQMStore::IBooker &iBooker, const edm::Run &iRun, const edm::EventSetup &iSetup)
void analyze(const bool &isPassTrigger, const std::string &source, const std::vector< reco::LeafCandidate > &matches)
std::set< unsigned int > _objectsType
container with all the objects needed
HLTExoticaPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType)
std::vector< double > _parametersEta
std::string _hltProcessName
std::vector< double > _parametersTurnOn
void fillHist(const bool &passTrigger, const std::string &source, const std::string &objType, const std::string &var, const float &value)
std::vector< double > _parametersPhi
void bookHist(DQMStore::IBooker &iBooker, const std::string &source, const std::string &objType, const std::string &variable)
unsigned int _nObjects
void beginRun(const edm::Run &, const edm::EventSetup &)
static std::string const source
Definition: EdmProvDump.cc:43
Definition: Run.h:41
std::map< std::string, MonitorElement * > _elements