CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 
33 
34 #include <cstring>
35 #include <map>
36 #include <set>
37 #include <vector>
38 
39 // const unsigned int kNull = (unsigned int) - 1;
40 
41 struct EVTColContainer;
42 
44 public:
47 
49  const std::string &hltPath,
50  const std::vector<unsigned int> &objectsType);
52  void beginJob();
53  void beginRun(const edm::Run &, const edm::EventSetup &);
54  void plotterBookHistos(DQMStore::IBooker &iBooker, const edm::Run &iRun, const edm::EventSetup &iSetup);
55  void analyze(const bool &isPassTrigger,
56  const std::string &source,
57  const std::vector<reco::LeafCandidate> &matches,
58  std::map<int, double> theSumEt,
59  std::vector<float> &dxys);
60 
61  inline const std::string gethltpath() const { return _hltPath; }
62 
63 private:
64  void bookHist(DQMStore::IBooker &iBooker,
65  const std::string &source,
66  const std::string &objType,
67  const std::string &variable);
68  void fillHist(const bool &passTrigger,
69  const std::string &source,
70  const std::string &objType,
71  const std::string &var,
72  const float &value);
73 
76 
77  std::set<unsigned int> _objectsType;
78  // Number of objects (elec,muons, ...) needed in the hlt path
79  unsigned int _nObjects;
80 
81  std::vector<double> _parametersEta;
82  std::vector<double> _parametersPhi;
83  std::vector<double> _parametersTurnOn;
84  std::vector<double> _parametersTurnOnSumEt;
85  std::vector<double> _parametersDxy;
86 
87  // flag to switch off
88  bool _drop_pt2;
89  bool _drop_pt3;
90 
91  std::map<std::string, MonitorElement *> _elements;
92 };
93 #endif
dqm::legacy::DQMStore DQMStore
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
list var
if using global norm cols_to_minmax = [&#39;t_delta&#39;, &#39;t_hmaxNearP&#39;,&#39;t_emaxNearP&#39;, &#39;t_hAnnular&#39;, &#39;t_eAnnular&#39;,&#39;t_pt&#39;,&#39;t_nVtx&#39;,&#39;t_ieta&#39;,&#39;t_eHcal10&#39;, &#39;t_eHcal30&#39;,&#39;t_rhoh&#39;,&#39;t_eHcal&#39;] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() &gt; 0) else 1.0/200.0)
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)
dqm::legacy::MonitorElement MonitorElement
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:46
Definition: Run.h:45
std::map< std::string, MonitorElement * > _elements