/[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 by pam-fi, Fri May 29 10:08:45 2009 UTC revision 1.2 by pam-fi, Thu Jul 8 14:00:12 2010 UTC
# Line 38  void VerboseCollection::Finalize() { Line 38  void VerboseCollection::Finalize() {
38    cout << "     " << setw(nDigitsEvents) << "tot.";    cout << "     " << setw(nDigitsEvents) << "tot.";
39    cout << "     " << setw(newPrec + 2) << "eff.";    cout << "     " << setw(newPrec + 2) << "eff.";
40    cout << "     " << setw(newPrec + 2) << "prog. eff.\n";    cout << "     " << setw(newPrec + 2) << "prog. eff.\n";
41    for (unsigned int i = 0; i < GetSize(); i++) {  
42      cout << "     " << setw(nameWidth) << GetCut(i)->GetName() << ":";    // Print the names of the actions placed before the cuts
43      cout << "     " << setw(nDigitsEvents) << GetCut(i)->GetNGood();    unsigned int iAction = 0;
44      cout << "     " << setw(nDigitsEvents) << GetCut(i)->GetNEv();    if (_actions.size() > 0) {
45      cout << "     " << (float) GetCut(i)->GetNGood() / (float) GetCut(i)->GetNEv();      while (_actionsPositions[iAction] == -1) {
46      cout << "     " << (float) GetCut(i)->GetNGood() / (float) GetNEv();        cout << "     " << setw(nameWidth) << _actions[iAction]->GetName() << ":" << "                   ACTION\n";
47          iAction++;
48          if (iAction == _actions.size())
49            break;
50        }
51      }
52    
53      for (unsigned int iCut = 0; iCut < GetSize(); iCut++) {
54        cout << "     " << setw(nameWidth) << GetCut(iCut)->GetName() << ":";
55        cout << "     " << setw(nDigitsEvents) << GetCut(iCut)->GetNGood();
56        cout << "     " << setw(nDigitsEvents) << GetCut(iCut)->GetNEv();
57        cout << "     " << (float) GetCut(iCut)->GetNGood() / (float) GetCut(iCut)->GetNEv();
58        cout << "     " << (float) GetCut(iCut)->GetNGood() / (float) GetNEv();
59      cout << "\n";      cout << "\n";
60    
61        if (iAction < _actions.size()) {
62          while (_actionsPositions[iAction] == (int) iCut) {
63            cout << "     " << setw(nameWidth) << _actions[iAction]->GetName() << ":                   ACTION\n";
64            iAction++;
65            if (iAction == _actions.size())
66              break;
67          }
68        }
69    }    }
70    cout << endl;    cout << endl;
71    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23