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 
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
HLTExoticaPlotter::_elements
std::map< std::string, MonitorElement * > _elements
Definition: HLTExoticaPlotter.h:91
HLTExoticaPlotter::beginJob
void beginJob()
Definition: HLTExoticaPlotter.cc:44
Handle.h
Muon.h
HLTExoticaPlotter::plotterBookHistos
void plotterBookHistos(DQMStore::IBooker &iBooker, const edm::Run &iRun, const edm::EventSetup &iSetup)
Definition: HLTExoticaPlotter.cc:46
edm::Run
Definition: Run.h:45
HLTExoticaPlotter::DQMStore
dqm::legacy::DQMStore DQMStore
Definition: HLTExoticaPlotter.h:45
HLTExoticaPlotter::_objectsType
std::set< unsigned int > _objectsType
Definition: HLTExoticaPlotter.h:77
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
HLTExoticaPlotter::_parametersTurnOnSumEt
std::vector< double > _parametersTurnOnSumEt
Definition: HLTExoticaPlotter.h:84
HLTExoticaPlotter::_parametersDxy
std::vector< double > _parametersDxy
Definition: HLTExoticaPlotter.h:85
GenParticle.h
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
Photon.h
dqm::legacy::DQMStore
Definition: DQMStore.h:727
HLTExoticaPlotter::_parametersEta
std::vector< double > _parametersEta
Definition: HLTExoticaPlotter.h:81
source
static const std::string source
Definition: EdmProvDump.cc:47
LeafCandidate.h
GsfElectron.h
HLTExoticaPlotter::HLTExoticaPlotter
HLTExoticaPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType)
Definition: HLTExoticaPlotter.cc:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HLTExoticaPlotter::_hltPath
std::string _hltPath
Definition: HLTExoticaPlotter.h:74
electrons_cff.objType
objType
Definition: electrons_cff.py:514
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
HLTExoticaPlotter::_hltProcessName
std::string _hltProcessName
Definition: HLTExoticaPlotter.h:75
HLTExoticaPlotter::_parametersTurnOn
std::vector< double > _parametersTurnOn
Definition: HLTExoticaPlotter.h:83
value
Definition: value.py:1
HLTExoticaPlotter::gethltpath
const std::string gethltpath() const
Definition: HLTExoticaPlotter.h:61
edm::EventSetup
Definition: EventSetup.h:57
HLTExoticaPlotter::fillHist
void fillHist(const bool &passTrigger, const std::string &source, const std::string &objType, const std::string &var, const float &value)
Definition: HLTExoticaPlotter.cc:246
HLTExoticaPlotter::_parametersPhi
std::vector< double > _parametersPhi
Definition: HLTExoticaPlotter.h:82
HLTExoticaPlotter::bookHist
void bookHist(DQMStore::IBooker &iBooker, const std::string &source, const std::string &objType, const std::string &variable)
Definition: HLTExoticaPlotter.cc:185
taus_updatedMVAIds_cff.variable
variable
Definition: taus_updatedMVAIds_cff.py:33
RecoEcalCandidate.h
StringCutObjectSelector.h
zMuMuMuonUserData.hltPath
hltPath
Definition: zMuMuMuonUserData.py:20
HLTExoticaPlotter
Definition: HLTExoticaPlotter.h:43
HLTExoticaPlotter::beginRun
void beginRun(const edm::Run &, const edm::EventSetup &)
HLTExoticaPlotter::_nObjects
unsigned int _nObjects
Definition: HLTExoticaPlotter.h:79
RecoChargedCandidate.h
HLTExoticaPlotter::MonitorElement
dqm::legacy::MonitorElement MonitorElement
Definition: HLTExoticaPlotter.h:46
dqm::implementation::IBooker
Definition: DQMStore.h:43
patCandidatesForDimuonsSequences_cff.matches
matches
Definition: patCandidatesForDimuonsSequences_cff.py:131
RecoEcalCandidateFwd.h
HLTExoticaPlotter::analyze
void analyze(const bool &isPassTrigger, const std::string &source, const std::vector< reco::LeafCandidate > &matches, std::map< int, double > theSumEt, std::vector< float > &dxys)
Definition: HLTExoticaPlotter.cc:103
HLTExoticaPlotter::_drop_pt3
bool _drop_pt3
Definition: HLTExoticaPlotter.h:89
Candidate.h
HLTExoticaPlotter::_drop_pt2
bool _drop_pt2
Definition: HLTExoticaPlotter.h:88
ParameterSet.h
HLTExoticaPlotter::~HLTExoticaPlotter
~HLTExoticaPlotter()
Definition: HLTExoticaPlotter.cc:42
EVTColContainer
container with all the objects needed
Definition: EVTColContainer.cc:45
RecoChargedCandidateFwd.h
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27