CMS 3D CMS Logo

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 
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:
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
Handle.h
Muon.h
HLTHiggsPlotter::_nObjects
unsigned int _nObjects
Definition: HLTHiggsPlotter.h:93
HLTHiggsPlotter::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: HLTHiggsPlotter.h:49
HLTHiggsPlotter::_elements
std::map< std::string, MonitorElement * > _elements
Definition: HLTHiggsPlotter.h:110
edm::Run
Definition: Run.h:45
kNull
const unsigned int kNull
Definition: HLTHiggsPlotter.h:42
HLTHiggsPlotter::HLTHiggsPlotter
HLTHiggsPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType, const unsigned int &minCandidates, const std::vector< double > &NminOneCuts)
Definition: HLTHiggsPlotter.cc:23
HLTHiggsPlotter
Definition: HLTHiggsPlotter.h:46
PFJet.h
HLTHiggsPlotter::_cutMotherId
std::map< unsigned int, unsigned int > _cutMotherId
Definition: HLTHiggsPlotter.h:101
TriggerEventWithRefs.h
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
HLTHiggsPlotter::_NminOneCuts
std::vector< double > _NminOneCuts
Definition: HLTHiggsPlotter.h:108
HLTHiggsPlotter::bookHist
void bookHist(const std::string &source, const std::string &objType, const std::string &variable, DQMStore::IBooker &)
Definition: HLTHiggsPlotter.cc:240
HLTHiggsPlotter::_objectsType
std::set< unsigned int > _objectsType
Definition: HLTHiggsPlotter.h:91
HLTHiggsPlotter::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: HLTHiggsPlotter.h:48
HLTHiggsPlotter::_hltPath
std::string _hltPath
Definition: HLTHiggsPlotter.h:87
HLTHiggsPlotter::bookHistograms
void bookHistograms(DQMStore::IBooker &, const bool &)
Definition: HLTHiggsPlotter.cc:51
GenParticle.h
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
Photon.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
HLTHiggsPlotter::_NptPlots
unsigned int _NptPlots
Definition: HLTHiggsPlotter.h:105
HLTHiggsPlotter::_cutMinPt
std::map< unsigned int, double > _cutMinPt
Definition: HLTHiggsPlotter.h:99
source
static const std::string source
Definition: EdmProvDump.cc:47
GsfElectron.h
HLTHiggsPlotter::beginJob
void beginJob()
Definition: HLTHiggsPlotter.cc:47
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTHiggsPlotter::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
Definition: HLTHiggsPlotter.cc:49
HLTHiggsPlotter::_hltProcessName
std::string _hltProcessName
Definition: HLTHiggsPlotter.h:89
electrons_cff.objType
objType
Definition: electrons_cff.py:514
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
MatchStruct.cc
HLTHiggsPlotter::_parametersPhi
std::vector< double > _parametersPhi
Definition: HLTHiggsPlotter.h:96
createfilelist.int
int
Definition: createfilelist.py:10
value
Definition: value.py:1
HLTHiggsPlotter::_parametersTurnOn
std::vector< double > _parametersTurnOn
Definition: HLTHiggsPlotter.h:97
edm::EventSetup
Definition: EventSetup.h:57
HLTHiggsPlotter::~HLTHiggsPlotter
~HLTHiggsPlotter()
Definition: HLTHiggsPlotter.cc:45
hltExoticaCaloHT_cff.minCandidates
minCandidates
Definition: hltExoticaCaloHT_cff.py:23
HLTHiggsPlotter::_parametersEta
std::vector< double > _parametersEta
Definition: HLTHiggsPlotter.h:95
HLTHiggsPlotter::_cutsDr
std::map< unsigned int, std::vector< double > > _cutsDr
Definition: HLTHiggsPlotter.h:102
taus_updatedMVAIds_cff.variable
variable
Definition: taus_updatedMVAIds_cff.py:33
RecoEcalCandidate.h
StringCutObjectSelector.h
zMuMuMuonUserData.hltPath
hltPath
Definition: zMuMuMuonUserData.py:20
RecoChargedCandidate.h
HLTHiggsPlotter::gethltpath
const std::string gethltpath() const
Definition: HLTHiggsPlotter.h:77
HLTHiggsPlotter::analyze
void analyze(const bool &isPassTrigger, const std::string &source, const std::vector< MatchStruct > &matches, const unsigned int &minCandidates)
Definition: HLTHiggsPlotter.cc:98
dqm::implementation::IBooker
Definition: DQMStore.h:43
patCandidatesForDimuonsSequences_cff.matches
matches
Definition: patCandidatesForDimuonsSequences_cff.py:131
RecoEcalCandidateFwd.h
GenJet.h
Candidate.h
HLTHiggsPlotter::_cutMaxEta
std::map< unsigned int, double > _cutMaxEta
Definition: HLTHiggsPlotter.h:100
ParameterSet.h
HLTHiggsPlotter::fillHist
void fillHist(const bool &passTrigger, const std::string &source, const std::string &objType, const std::string &var, const float &value)
Definition: HLTHiggsPlotter.cc:348
EVTColContainer
container with all the objects needed
Definition: EVTColContainer.cc:45
RecoChargedCandidateFwd.h
hltHiggsPostProcessors_cff.NminOneCuts
NminOneCuts
Definition: hltHiggsPostProcessors_cff.py:131
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27