Changeset 8952
- Timestamp:
- 06/14/08 00:29:53 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8951 r8952 24 24 * datacenter/macros/fillcalib.C: 25 25 - fixed a bug introduced by the usage of InserUpdate 26 27 * datacenter/macros/fillsignal.C: 28 - fixed a type (the wrong number was printed to the console) 29 30 * mjobs/MJCalibrateSignal.cc: 31 - let all calibration triggered events pass to calibration 32 33 * mtrigger/MFTriggerPattern.[h,cc]: 34 - count a bit more to increase the printed amout of 35 information at the end 26 36 27 37 -
trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C
r8940 r8952 330 330 cout << " UnsuitableMax (99.9%) " << setw(6) << unsuitablemax << endl; 331 331 cout << " DeadMax " << setw(6) << deadmax << endl; 332 cout << " Rate Trigger [Hz] " << rate ped<< endl;332 cout << " Rate Trigger [Hz] " << ratetrig << endl; 333 333 cout << " Rate SUM [Hz] " << ratesum << endl; 334 334 cout << " Rate Ped+Trigger [Hz] " << rateped2 << endl; -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8948 r8952 515 515 // Deny or allow is done before prescaling. 516 516 // 517 MFTriggerPattern fped ;517 MFTriggerPattern fped("SelectPedestals"); 518 518 fped.SetDefault(kTRUE); 519 519 fped.DenyCalibration(); … … 580 580 fcalib.DenyAll(); 581 581 fcalib.RequireCalibration(); 582 fcalib.AllowTriggerLvl1(); 583 fcalib.AllowTriggerLvl2(); 584 fcalib.AllowSumTrigger(); 582 585 583 586 MCalibrationChargeCalc chcalc; -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.cc
r8929 r8952 101 101 // 102 102 // If Prescaled and Unprescaled pattern is 0 return default. 103 // If all bits of the fMaskRequired* mask are found in the pattern set 104 // fResult to true. 103 // 104 // If at least all bits in the fMaskRequired* mask are found in the 105 // trigger pattern set fResult to true. This means that is the required 106 // mask is 0 the dafult is changed from false to true. 107 // 105 108 // If any bit matches the fMasDenied* mask fResult is forced to be false. 106 109 // 107 Int_t MFTriggerPattern::Eval() const110 Int_t MFTriggerPattern::Eval() 108 111 { 109 112 const Byte_t p = fPattern->GetPrescaled(); … … 111 114 if (p==0 && u==0) 112 115 { 116 fCounter[2]++; 113 117 return fDefault; 114 118 } … … 123 127 // Now overwrite the result if one of the bits is denied 124 128 if ( (p & fMaskDeniedPrescaled) || (u & fMaskDeniedUnprescaled) ) 129 { 130 fCounter[3]++; 125 131 return kFALSE; 132 } 126 133 127 134 return rc; … … 155 162 *fLog << dec << setfill(' '); 156 163 157 *fLog << " " << setw(7) << fCounter[0] << " (" << setw(3) ; 164 *fLog << " " << setw(7) << fCounter[2] << " (" << setw(3); 165 *fLog << (int)(fCounter[2]*100/n); 166 *fLog << "%) Default (" << (fDefault?"true":"false") << ") returned." << endl; 167 168 *fLog << " " << setw(7) << fCounter[3] << " (" << setw(3); 169 *fLog << (int)(fCounter[3]*100/n); 170 *fLog << "%) Trigger denied." << endl; 171 172 *fLog << " " << setw(7) << fCounter[0] << " (" << setw(3); 158 173 *fLog << (int)(fCounter[0]*100/n); 159 174 *fLog << "%) Accepted trigger pattern." << endl; 160 175 161 *fLog << " " << setw(7) << fCounter[1] << " (" << setw(3) 176 *fLog << " " << setw(7) << fCounter[1] << " (" << setw(3); 162 177 *fLog << (int)(fCounter[1]*100/n); 163 178 *fLog << "%) Rejected trigger pattern!" << endl; -
trunk/MagicSoft/Mars/mtrigger/MFTriggerPattern.h
r8929 r8952 31 31 32 32 Bool_t fResult; //! Calculated result to be returned by IsExpressionTrue 33 Int_t fCounter[ 2]; //! Counter for results33 Int_t fCounter[4]; //! Counter for results 34 34 35 35 // MFTriggerPattern … … 38 38 void Allow(const Byte_t mask, Prescale_t prescaled=kUnPrescaled); 39 39 40 Int_t Eval() const;40 Int_t Eval(); 41 41 42 42 // MTask
Note:
See TracChangeset
for help on using the changeset viewer.