Changeset 991 for trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.cxx
- Timestamp:
- 10/26/01 10:11:30 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/include-Classes/MMcFormat/MMcTrig.cxx
r686 r991 1 #include "MMcTrig.hxx" 2 1 3 #include <iostream.h> 2 #include "MMcTrig.hxx"3 4 4 5 … … 12 13 13 14 14 ClassImp(MMcTrig) 15 ClassImp(MMcTrig); 15 16 16 17 … … 49 50 } 50 51 52 inline void MMcTrig::SetTime(Float_t t, Int_t i) 53 { 54 if (i>TOTAL_TRIGGER_TIME/LEVEL1_DEAD_TIME+1 || i<1) 55 { 56 cout << "fNumFirstLevel out of range. Time will be -99" << endl; 57 return; 58 } 59 60 fTimeFirst[i-1]=t; 61 } 62 51 63 void MMcTrig::Clear(Option_t *opt) { 52 64 // … … 71 83 } 72 84 73 void MMcTrig::Print(Option_t *Option) {85 void MMcTrig::Print(Option_t *Option) const { 74 86 // 75 87 // print out the data member on screen … … 78 90 79 91 cout <<endl << "Monte Carlo Trigger output:" <<endl; 80 cout << " First Level Trigger in this Event 81 cout << " Times of first Level Trigger in this Event 92 cout << " First Level Trigger in this Event: "<<fNumFirstLevel<<endl; 93 cout << " Times of first Level Trigger in this Event: "; 82 94 for (i=0;i<fNumFirstLevel;i++){ 83 95 cout<< fTimeFirst[i]<<"-"; … … 91 103 } 92 104 cout<<endl; 93 cout << " Second Level Trigger in this Event 105 cout << " Second Level Trigger in this Event: " << fNumSecondLevel << endl; 94 106 cout << endl ; 95 107 }
Note:
See TracChangeset
for help on using the changeset viewer.