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();
129 unsigned int jaux = 0;
147 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT"))) {
150 }
else if (
source !=
"gen") {
158 this->
fillHist(isPassTrigger,
source, objTypeStr,
"Dxy", dxys[jaux]);
162 if (countobjects[
objType] == 0) {
163 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT")) ||
source !=
"gen") {
170 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT"))) {
177 if (!(TString(objTypeStr).Contains(
"MET") || TString(objTypeStr).Contains(
"MHT"))) {
184 if (counttotal == totalobjectssize) {
196 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::bookHist()";
198 sourceUpper[0] = std::toupper(sourceUpper[0]);
202 if (
variable.find(
"SumEt") != std::string::npos) {
206 for (
size_t i = 0;
i <
nBins + 1;
i++) {
211 }
else if (
variable.find(
"Dxy") != std::string::npos) {
217 }
else if (
variable.find(
"MaxPt") != std::string::npos) {
223 desc =
"Next-to-Leading";
225 desc =
"Next-to-next-to-Leading";
229 "where event pass the " +
233 for (
size_t i = 0;
i <
nBins + 1;
i++) {
264 const float &
value) {
266 sourceUpper[0] = toupper(sourceUpper[0]);
269 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::fillHist()" <<
name <<
" " <<
value;
271 LogDebug(
"ExoticaValidation") <<
"In HLTExoticaPlotter::fillHist()" <<
name <<
" worked";