21 const std::vector<unsigned int> &objectsType)
23 _hltProcessName(
pset.getParameter<
std::
string>(
"hltProcessName")),
24 _objectsType(
std::set<unsigned
int>(objectsType.begin(), objectsType.
end())),
25 _nObjects(objectsType.
size()),
26 _parametersEta(
pset.getParameter<
std::
vector<double>>(
"parametersEta")),
27 _parametersPhi(
pset.getParameter<
std::
vector<double>>(
"parametersPhi")),
28 _parametersTurnOn(
pset.getParameter<
std::
vector<double>>(
"parametersTurnOn")),
29 _parametersTurnOnSumEt(
pset.getParameter<
std::
vector<double>>(
"parametersTurnOnSumEt")),
30 _parametersDxy(
pset.getParameter<
std::
vector<double>>(
"parametersDxy")),
33 if (
pset.exists(
"dropPt2")) {
36 if (
pset.exists(
"dropPt3")) {
39 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::constructor()";
49 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::plotterBookHistos()";
51 std::vector<std::string>
sources(2);
61 if (TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT") ||
62 TString(objTypeStr).Contains(
"Jet")) {
80 if (TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT")) {
105 const std::vector<reco::LeafCandidate> &
matches,
106 std::map<int, double> theSumEt,
107 std::vector<float> &dxys) {
108 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::analyze()";
109 if (!isPassTrigger) {
113 std::map<unsigned int, int> countobjects;
116 countobjects[*
co] = 0;
122 int totalobjectssize = 1;
127 totalobjectssize *= countobjects.size();
142 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT"))) {
145 }
else if (
source !=
"gen") {
155 if (countobjects[
objType] == 0) {
156 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT")) ||
source !=
"gen") {
163 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT"))) {
170 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT"))) {
177 if (counttotal == totalobjectssize) {
189 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::bookHist()";
191 sourceUpper[0] = std::toupper(sourceUpper[0]);
195 if (
variable.find(
"SumEt") != std::string::npos) {
199 for (
size_t i = 0;
i <
nBins + 1;
i++) {
204 }
else if (
variable.find(
"Dxy") != std::string::npos) {
210 }
else if (
variable.find(
"MaxPt") != std::string::npos) {
212 (
variable ==
"MaxPt1") ?
"Leading" : (
variable ==
"MaxPt2") ?
"Next-to-Leading" :
"Next-to-next-to-Leading";
215 "where event pass the " +
219 for (
size_t i = 0;
i <
nBins + 1;
i++) {
250 const float &
value) {
252 sourceUpper[0] = toupper(sourceUpper[0]);
255 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::fillHist()" <<
name <<
" " <<
value;
257 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::fillHist()" <<
name <<
" worked";