/[PAMELA software]/PamCut/Collections/VerboseCollection/VerboseCollection.cpp
ViewVC logotype

Diff of /PamCut/Collections/VerboseCollection/VerboseCollection.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.1 by pam-fi, Mon Jun 7 13:58:48 2010 UTC revision 1.3 by pam-fi, Mon Sep 5 13:01:30 2011 UTC
# Line 29  void VerboseCollection::Finalize() { Line 29  void VerboseCollection::Finalize() {
29      if (strlen(GetCut(i)->GetName()) > nameWidth)      if (strlen(GetCut(i)->GetName()) > nameWidth)
30        nameWidth = strlen(GetCut(i)->GetName());        nameWidth = strlen(GetCut(i)->GetName());
31    }    }
32      for (unsigned int i = 0; i < _actions.size(); i++) {
33        if (strlen(GetAction(i)->GetName()) > nameWidth)
34          nameWidth = strlen(GetAction(i)->GetName());
35      }
36    cout << "\n- Collection: " << GetName() << "\n";    cout << "\n- Collection: " << GetName() << "\n";
37    cout << "  Selected/Analized events (eff.): " << GetNGood() << "/" << GetNEv() << "  (" << (float) GetNGood()    cout << "  Selected/Analized events (eff.): " << GetNGood() << "/" << GetNEv() << "  ("
38        / (float) GetNEv() << ")\n";        << (float) GetNGood() / (float) GetNEv() << ")\n";
39    cout << "     " << setw(nameWidth + 1) << "--Single cuts--";    cout << "     " << setw(nameWidth + 1) << "--Single cuts--";
40    cout << "     " << setw(nDigitsEvents) << "sel.";    cout << "     " << setw(nDigitsEvents) << "sel.";
41    cout << "     " << setw(nDigitsEvents) << "tot.";    cout << "     " << setw(nDigitsEvents) << "tot.";
# Line 43  void VerboseCollection::Finalize() { Line 46  void VerboseCollection::Finalize() {
46    unsigned int iAction = 0;    unsigned int iAction = 0;
47    if (_actions.size() > 0) {    if (_actions.size() > 0) {
48      while (_actionsPositions[iAction] == -1) {      while (_actionsPositions[iAction] == -1) {
49        cout << "     " << setw(nameWidth) << _actions[iAction]->GetName() << ":                   ACTION\n";        cout << "     " << setw(nameWidth) << _actions[iAction]->GetName() << ":" << "                   ACTION\n";
50        iAction++;        iAction++;
51        if (iAction == _actions.size())        if (iAction == _actions.size())
52          break;          break;

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23