CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HLTHiggsPlotter.h
Go to the documentation of this file.
1 #ifndef HLTriggerOffline_Higgs_HLTHiggsPlotter_H
2 #define HLTriggerOffline_Higgs_HLTHiggsPlotter_H
3 
18 
32 
34 
35 #include "MatchStruct.h"
36 
37 #include <vector>
38 #include <cstring>
39 #include <map>
40 #include <set>
41 
42 const unsigned int kNull = (unsigned int)-1;
43 
44 struct EVTColContainer;
45 
47 public:
50 
52  const std::string &hltPath,
53  //const std::string & lastFilter,
54  const std::vector<unsigned int> &objectsType,
55  const unsigned int &minCandidates,
56  const std::vector<double> &NminOneCuts);
58  void beginJob();
59  void beginRun(const edm::Run &, const edm::EventSetup &);
60  void bookHistograms(DQMStore::IBooker &, const bool &);
61  void analyze(const bool &isPassTrigger,
62  const std::string &source,
63  const std::vector<MatchStruct> &matches,
64  const unsigned int &minCandidates);
65  void analyze(const bool &isPassTrigger,
66  const std::string &source,
67  const std::vector<MatchStruct> &matches,
68  std::map<std::string, bool> &nMinOne,
69  const float &dEtaqq,
70  const float &mqq,
71  const float &dPhibb,
72  const float &CSV1,
73  const float &CSV2,
74  const float &CSV3,
75  const bool &passAllCuts);
76 
77  inline const std::string gethltpath() const { return _hltPath; }
78 
79 private:
80  void bookHist(const std::string &source, const std::string &objType, const std::string &variable, DQMStore::IBooker &);
81  void fillHist(const bool &passTrigger,
82  const std::string &source,
83  const std::string &objType,
84  const std::string &var,
85  const float &value);
86 
88  //std::string _lastFilter;
90 
91  std::set<unsigned int> _objectsType;
92  // Number of objects (elec,muons, ...) needed in the hlt path
93  unsigned int _nObjects;
94 
95  std::vector<double> _parametersEta;
96  std::vector<double> _parametersPhi;
97  std::vector<double> _parametersTurnOn;
98 
99  std::map<unsigned int, double> _cutMinPt;
100  std::map<unsigned int, double> _cutMaxEta;
101  std::map<unsigned int, unsigned int> _cutMotherId;
102  std::map<unsigned int, std::vector<double> > _cutsDr;
103 
104  // The amount of Pt plots needed for the hlt path
105  unsigned int _NptPlots;
106 
107  //N-1 cut values
108  std::vector<double> _NminOneCuts;
109 
110  std::map<std::string, MonitorElement *> _elements;
111 };
112 #endif
std::map< unsigned int, double > _cutMaxEta
unsigned int _NptPlots
std::string _hltProcessName
dqm::legacy::MonitorElement MonitorElement
const std::string gethltpath() const
HLTHiggsPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType, const unsigned int &minCandidates, const std::vector< double > &NminOneCuts)
container with all the objects needed
std::vector< double > _parametersPhi
std::map< unsigned int, unsigned int > _cutMotherId
std::set< unsigned int > _objectsType
std::map< std::string, MonitorElement * > _elements
std::string _hltPath
const unsigned int kNull
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::vector< double > _parametersTurnOn
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 &)
dqm::legacy::DQMStore DQMStore
std::vector< double > _parametersEta
void beginRun(const edm::Run &, const edm::EventSetup &)
void bookHistograms(DQMStore::IBooker &, const bool &)
void analyze(const bool &isPassTrigger, const std::string &source, const std::vector< MatchStruct > &matches, const unsigned int &minCandidates)
std::map< unsigned int, double > _cutMinPt
unsigned int _nObjects
std::map< unsigned int, std::vector< double > > _cutsDr
static std::string const source
Definition: EdmProvDump.cc:46
std::vector< double > _NminOneCuts
Definition: Run.h:45