35 : m_type(iType), m_titleWidth(0) {
36 if (!strcmp(iType.
name().c_str(),
"CaloTower")) {
37 if (iPurpose ==
"ECal")
39 else if (iPurpose ==
"HCal")
41 else if (iPurpose ==
"HCal Outer")
43 }
else if (strstr(iPurpose.c_str(),
"Beam Spot")) {
47 }
else if (strstr(iPurpose.c_str(),
"Vertices")) {
51 }
else if (strstr(iPurpose.c_str(),
"Conversion")) {
52 addEntry(
"pairMomentum().rho()", 1,
"pt",
"GeV");
53 addEntry(
"pairMomentum().eta()", 2,
"eta");
54 addEntry(
"pairMomentum().phi()", 2,
"phi");
55 }
else if (strstr(iPurpose.c_str(),
"Candidate") || strstr(iPurpose.c_str(),
"GenParticle")) {
62 }
else if (iPurpose ==
"Jets") {
64 }
else if (iPurpose ==
"DT-segments") {
65 addEntry(
"chamberId().wheel()", 0,
"wh");
66 addEntry(
"chamberId().station()", 0,
"st");
67 addEntry(
"chamberId().sector()", 0,
"sc");
69 }
else if (iPurpose ==
"CSC-segments") {
70 addEntry(
"cscDetId().endcap()", 0,
"ec");
71 addEntry(
"cscDetId().station()", 0,
"st");
72 addEntry(
"cscDetId().ring()", 0,
"rn");
73 }
else if (iPurpose ==
"HGCal Trigger Cell" || iPurpose ==
"HGCal Trigger Cluster") {
75 }
else if (iPurpose ==
"CaloParticle") {
78 addEntry(
"simClusters().size()", 3,
"SimClSize");
79 }
else if (iPurpose ==
"Trackster" || iPurpose ==
"Trackster hits" || iPurpose ==
"Trackster layers") {
80 addEntry(
"raw_energy", 3,
"E",
"GeV");
81 addEntry(
"barycenter().Eta()", 3,
"eta");
82 addEntry(
"barycenter().Phi()", 3,
"phi");
83 }
else if (iPurpose ==
"HGCal MultiCluster") {
112 if (
parse(
temp.c_str(), grammar.use_parser<1>() >> end_p, space_p).full) {
113 m_entries.push_back(
Entry(tmpPtr, iExpression, iUnit, iTitle.empty() ? iExpression : iTitle, iPrec));
135 std::vector<std::string> titles;
139 titles.push_back((*i).m_title.empty() ? (*i).m_expression : (*i).m_title);
156 off += snprintf(&buff[off],
161 e.m_precision ? (
e.m_precision + 1) : 0,