|
|
Go to the documentation of this file.
25 const std::vector<unsigned int> &objectsType,
26 const unsigned int &NptPlots,
29 _hltProcessName(
pset.getParameter<
std::
string>(
"hltProcessName")),
30 _objectsType(
std::set<unsigned
int>(objectsType.begin(), objectsType.
end())),
31 _nObjects(objectsType.
size()),
32 _parametersEta(
pset.getParameter<
std::
vector<double> >(
"parametersEta")),
33 _parametersPhi(
pset.getParameter<
std::
vector<double> >(
"parametersPhi")),
34 _parametersTurnOn(
pset.getParameter<
std::
vector<double> >(
"parametersTurnOn")),
53 std::vector<std::string>
sources(2);
100 const std::vector<MatchStruct> &
matches,
102 if (!isPassTrigger) {
105 std::map<unsigned int, int> countobjects;
108 countobjects[*
co] = 0;
112 const int totalobjectssize2 =
_NptPlots * countobjects.size();
146 if (counttotal == totalobjectssize2) {
154 const std::vector<MatchStruct> &
matches,
155 std::map<std::string, bool> &nMinOne,
162 const bool &passAllCuts) {
163 if (!isPassTrigger) {
166 std::map<unsigned int, int> countobjects;
170 countobjects[*
co] = 0;
174 const int totalobjectssize2 =
_NptPlots * countobjects.size();
209 if (counttotal == totalobjectssize2) {
226 nameCSVplot =
"maxCSV";
227 if (nMinOne[nameCSVplot])
245 sourceUpper[0] = std::toupper(sourceUpper[0]);
249 if (
variable.find(
"MaxPt") != std::string::npos) {
254 desc =
"Next-to-Leading";
259 "where event pass the " +
262 size_t nBins = nBinsStandard;
263 float *
edges =
new float[nBinsStandard + 1];
264 for (
size_t i = 0;
i < nBinsStandard + 1;
i++) {
270 const size_t nBinsJets = 25;
273 edges =
new float[nBinsJets + 1];
274 for (
size_t i = 0;
i < nBinsJets + 1;
i++) {
279 const size_t nBinsJets = 30;
282 edges =
new float[nBinsJets + 1];
283 for (
size_t i = 0;
i < nBinsJets + 1;
i++) {
352 const float &
value) {
354 sourceUpper[0] = toupper(sourceUpper[0]);
const static std::string getTypeString(const unsigned int &objtype)
Tranform types into strings.
std::map< std::string, MonitorElement * > _elements
HLTHiggsPlotter(const edm::ParameterSet &pset, const std::string &hltPath, const std::vector< unsigned int > &objectsType, const unsigned int &minCandidates, const std::vector< double > &NminOneCuts)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::vector< double > _NminOneCuts
void bookHist(const std::string &source, const std::string &objType, const std::string &variable, DQMStore::IBooker &)
std::set< unsigned int > _objectsType
void bookHistograms(DQMStore::IBooker &, const bool &)
std::map< unsigned int, double > _cutMinPt
static const std::string source
void beginRun(const edm::Run &, const edm::EventSetup &)
std::vector< double > _parametersPhi
std::vector< double > _parametersTurnOn
std::vector< double > _parametersEta
void analyze(const bool &isPassTrigger, const std::string &source, const std::vector< MatchStruct > &matches, const unsigned int &minCandidates)
std::map< unsigned int, double > _cutMaxEta
void fillHist(const bool &passTrigger, const std::string &source, const std::string &objType, const std::string &var, const float &value)
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())