17 std::ostringstream sout;
20 if (
hasMuon()) sout << std::endl;
28 <<
" scatters " <<
nscatters << std::endl;
31 sout.setf(std::ios::left);
33 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
34 std::vector<ChamberHitSummary>::const_iterator chit_last = chit_end - 1;
35 for (; chit != chit_end; ++chit) {
37 bool isMdt = chit->isMdt();
39 sout <<
" " << std::setw(35) << printer.chamberIdentifier(chId);
44 std::string firstString = isMdt ?
"ml1 " :
"eta ";
45 std::string secondString = isMdt ?
"ml2 " :
"phi ";
47 sout <<
" Hits: " << firstString << std::setw(3) <<
first.nhits <<
" " << secondString << std::setw(3) <<
second.nhits;
51 if (
first.nholes != 0) sout << firstString << std::setw(3) <<
first.nholes;
53 if (
first.nholes != 0) sout <<
" ";
54 sout << secondString << std::setw(3) <<
second.nholes;
58 sout <<
" Outliers: ";
59 if (
first.noutliers != 0) sout << firstString << std::setw(3) <<
first.noutliers <<
" ";
60 if (
second.noutliers != 0) {
61 if (
first.noutliers != 0) sout <<
" ";
62 sout << secondString << std::setw(3) <<
second.noutliers;
68 if (
first.ndeltas != 0) sout << firstString << std::setw(3) <<
first.ndeltas <<
" ";
70 if (
first.ndeltas != 0) sout <<
" ";
71 sout << secondString << std::setw(3) <<
second.ndeltas;
75 if (chit != chit_last) sout << std::endl;
82 unsigned int nhits = 0;
84 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
85 for (; chit != chit_end; ++chit) {
86 if (chit->chId.is_mdt()) {
88 nhits += chit->nMdtHitsMl1();
90 nhits += chit->nMdtHitsMl2();
99 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
100 for (; chit != chit_end; ++chit) {
101 if (chit->chId.is_mdt()) ++nCh;
107 unsigned int nCh = 0;
109 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
110 for (; chit != chit_end; ++chit) {
111 if (chit->chId.is_rpc()) {
112 if (phi && chit->nphiHits() > 0)
114 else if (!phi && chit->netaHits() > 0)
122 unsigned int nCh = 0;
124 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
125 for (; chit != chit_end; ++chit) {
126 if (chit->chId.is_tgc()) {
127 if (phi && chit->nphiHits() > 0)
129 else if (!phi && chit->netaHits() > 0)
137 unsigned int nCh = 0;
139 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
140 for (; chit != chit_end; ++chit) {
141 if (chit->chId.is_csc()) {
142 if (phi && chit->nphiHits() > 0)
144 else if (!phi && chit->netaHits() > 0)
152 unsigned int nCh = 0;
154 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
155 for (; chit != chit_end; ++chit) {
156 if (chit->chId.is_rpc()) {
157 if (chit->nphiHits() > 0 && chit->netaHits() > 0) ++nCh;
164 unsigned int nCh = 0;
166 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
167 for (; chit != chit_end; ++chit) {
168 if (chit->chId.is_tgc()) {
169 if (chit->nphiHits() > 0 && chit->netaHits() > 0) ++nCh;
176 unsigned int nCh = 0;
178 std::vector<ChamberHitSummary>::const_iterator chit_end =
chamberHitSummary.end();
179 for (; chit != chit_end; ++chit) {
180 if (chit->chId.is_csc()) {
181 if (chit->nphiHits() > 0 && chit->netaHits() > 0) ++nCh;