CMS 3D CMS Logo

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 struct EVTColContainer;
43 
45 public:
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  std::map<int,double> theSumEt,
55  std::vector<float> & dxys);
56 
57  inline const std::string gethltpath() const
58  {
59  return _hltPath;
60  }
61 
62 private:
63  void bookHist(DQMStore::IBooker & iBooker, 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 
70 
71  std::set<unsigned int> _objectsType;
72  // Number of objects (elec,muons, ...) needed in the hlt path
73  unsigned int _nObjects;
74 
75  std::vector<double> _parametersEta;
76  std::vector<double> _parametersPhi;
77  std::vector<double> _parametersTurnOn;
78  std::vector<double> _parametersTurnOnSumEt;
79  std::vector<double> _parametersDxy;
80 
81  // flag to switch off
82  bool _drop_pt2;
83  bool _drop_pt3;
84 
85  std::map<std::string, MonitorElement *> _elements;
86 };
87 #endif
const std::string gethltpath() const
void plotterBookHistos(DQMStore::IBooker &iBooker, const edm::Run &iRun, const edm::EventSetup &iSetup)
std::set< unsigned int > _objectsType
std::vector< double > _parametersDxy
container with all the objects needed
std::vector< double > _parametersTurnOnSumEt
HLTExoticaPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType)
std::vector< double > _parametersEta
std::string _hltProcessName
Definition: value.py:1
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)
void analyze(const bool &isPassTrigger, const std::string &source, const std::vector< reco::LeafCandidate > &matches, std::map< int, double > theSumEt, std::vector< float > &dxys)
unsigned int _nObjects
void beginRun(const edm::Run &, const edm::EventSetup &)
static std::string const source
Definition: EdmProvDump.cc:44
Definition: Run.h:44
std::map< std::string, MonitorElement * > _elements