Changeset 4971
- Timestamp:
- 09/13/04 11:43:25 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReportTrigger.cc
r4966 r4971 34 34 // *Input: 35 35 // 36 // The report is divided into 8 sections: 36 // The report is divided into 9 sections: 37 // - the name of the Table (1 field) 37 38 // - the cell rates (32 fields) 38 39 // - L1 and L2 table name ( 2 fields) … … 164 165 } 165 166 TString descriptor = str(0, ws); 166 //*fLog << descriptor <<endl;167 167 str.Remove(0, ws); 168 168 … … 174 174 } 175 175 str.Remove(0, len); // Remove Prescal. factors from report string 176 // *fLog << warn << fPrescFactor->fPrescFact[i]<<endl; 177 } 178 str=str.Strip(TString::kLeading); 179 180 return kTRUE; 181 } 182 183 // -------------------------------------------------------------------------- 184 // 185 // Interprete the Scaler with Live-Deadtime section of the report 176 } 177 str=str.Strip(TString::kLeading); 178 179 return kTRUE; 180 } 181 182 // -------------------------------------------------------------------------- 183 // 184 // Interprete the Scalers with Live-Deadtime section of the report 186 185 // Read 4x5 integers separated with a blank 186 // There are 5 scalers,each one with the live and deadtime. 187 // Live and deadtimes have two fields, with the most significant 188 // and less significant bits. 187 189 // 188 190 Bool_t MReportTrigger::InterpreteLiveTime(TString &str) … … 255 257 } 256 258 257 TString L1tablename = str(0, wsL1);259 fL1Tablename = str(0, wsL1); 258 260 str.Remove(0, wsL1); 259 261 … … 277 279 return kCONTINUE; 278 280 } 279 TString L2tablename = str(0, wsL2);281 fL2Tablename = str(0, wsL2); 280 282 str.Remove(0,wsL2); 281 283 str.Strip(TString::kBoth); … … 389 391 } 390 392 391 TString tablename = str(0, ws);393 fTablename = str(0, ws); 392 394 str.Remove(0, ws); 393 395 … … 439 441 if (!InterpreteIPR(str)) 440 442 return kCONTINUE; 441 442 443 444 // str.Remove(0,len);445 // str.Strip(TString::kBoth);446 447 //*fLog << warn << " str=" << str << endl;448 443 449 444 return str==(TString)"OVER" ? kTRUE : kCONTINUE; -
trunk/MagicSoft/Mars/mreport/MReportTrigger.h
r4966 r4971 22 22 Float_t fL2BeforePrescaler; // L2 trigger rate before prescaler 23 23 Float_t fL2AfterPrescaler; // L2 trigger rate after prescaler 24 TString fTablename; // Name of the trigger table 25 TString fL1Tablename; // Name of the L1 trigger table 26 TString fL2Tablename; // Name of the L2 trigger table 24 27 25 28 MTriggerBit *fBit; //! container of the L2 prescaler rates -
trunk/MagicSoft/Mars/mtrigger/MTriggerBit.h
r4966 r4971 2 2 #define MARS_MTriggerBit 3 3 4 #ifndef MARS_MCamEvent5 #include "MCamEvent.h"6 #endif7 4 #ifndef MARS_MParContainer 8 5 #include "MParContainer.h" … … 13 10 #endif 14 11 15 class MTriggerBit : public MParContainer , public MCamEvent12 class MTriggerBit : public MParContainer 16 13 { 17 14 friend class MReportTrigger; 18 15 19 16 private: 17 20 18 static const Int_t gsNBits=20; // number of output bits 21 19 … … 26 24 { 27 25 fName = "MTriggerBit"; 28 fTitle = " Trigger-Container for the L2 output bits rates";26 fTitle = "Container for the L2 output bits rates "; 29 27 } 30 28 31 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const 32 { 33 if (idx > gsNBits) 34 return kFALSE; 35 36 val = fBit[idx]; 37 38 return val>0; 39 } 29 TArrayF GetTriggerBit() const { return fBit; } 40 30 41 31 Double_t operator[](const Int_t idx) … … 47 37 } 48 38 49 void DrawPixelContent(Int_t num) const 50 { 51 } 52 53 ClassDef(MTriggerBit, 1) // Trigger-Container for the L2 output bits rates 39 ClassDef(MTriggerBit, 1) // Container for the L2 output bits rates 54 40 }; 55 41 -
trunk/MagicSoft/Mars/mtrigger/MTriggerCell.h
r4966 r4971 2 2 #define MARS_MTriggerCell 3 3 4 #ifndef MARS_MCamEvent5 #include "MCamEvent.h"6 #endif7 4 #ifndef MARS_MParContainer 8 5 #include "MParContainer.h" … … 13 10 #endif 14 11 15 class MTriggerCell : public MParContainer , public MCamEvent12 class MTriggerCell : public MParContainer 16 13 { 17 14 friend class MReportTrigger; 15 private: 16 static const Int_t gsNCells=32; //Number of fields with cell rates 17 // 19 cells and 12 dummy 18 18 19 private: 20 static const Int_t gsNCells=32; //Number of fields with cell rates 19 cells and 12 dummy 21 22 TArrayF fCellRate; // Array of the measured L1 cell rates 19 TArrayF fCellRate; // Array of the measured L1 cell rates 23 20 24 21 public: … … 26 23 { 27 24 fName = "MTriggerCell"; 28 fTitle = " Trigger-Container for the measured cell rates";25 fTitle = "Container for the measured cell rates"; 29 26 } 30 27 31 28 Float_t GetMean() const { return fCellRate.GetSum()/fCellRate.GetSize(); } 32 29 33 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const 34 { 35 if (idx > gsNCells) 36 return kFALSE; 37 38 val = fCellRate[idx]; 39 return val>0; 40 } 30 TArrayF GetCellRate() const { return fCellRate; } 41 31 42 32 Double_t operator[](const Int_t idx) … … 48 38 } 49 39 50 void DrawPixelContent(Int_t num) const51 {52 }53 40 54 ClassDef(MTriggerCell, 1) // Trigger-Container for the measuredcell rates41 ClassDef(MTriggerCell, 1) // Container for the trigger cell rates 55 42 }; 56 43 -
trunk/MagicSoft/Mars/mtrigger/MTriggerLiveTime.h
r4966 r4971 2 2 #define MARS_MTriggerLiveTime 3 3 4 #ifndef MARS_MCamEvent5 #include "MCamEvent.h"6 #endif7 4 #ifndef MARS_MParContainer 8 5 #include "MParContainer.h" … … 13 10 #endif 14 11 15 class MTriggerLiveTime : public MParContainer , public MCamEvent12 class MTriggerLiveTime : public MParContainer 16 13 { 17 14 friend class MReportTrigger; … … 27 24 { 28 25 fName = "MTriggerLiveTime"; 29 fTitle = " Trigger-Container for the Live-deadtime";26 fTitle = "Container for the Live-deadtime "; 30 27 } 31 28 32 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const 33 { 34 if (idx > gsNScalers) 35 return kFALSE; 29 TArrayL GetLiveTime() const { return fLiveTime; } 30 TArrayL GetDeadTime() const { return fDeadTime; } 36 31 37 val = fLiveTime[idx]; 38 39 return val>0; 40 } 41 32 // !FIX ME! Only live time is returned... 42 33 Double_t operator[](const Int_t idx) 43 34 { … … 48 39 } 49 40 50 void DrawPixelContent(Int_t num) const 51 { 52 } 53 54 ClassDef(MTriggerLiveTime, 1) // Trigger-Container for the Live-Deadtime 41 ClassDef(MTriggerLiveTime, 1) // Container for the Live-Deadtime 55 42 }; 56 43 -
trunk/MagicSoft/Mars/mtrigger/MTriggerPrescFact.h
r4966 r4971 2 2 #define MARS_MTriggerPrescFact 3 3 4 #ifndef MARS_MCamEvent5 #include "MCamEvent.h"6 #endif7 4 #ifndef MARS_MParContainer 8 5 #include "MParContainer.h" … … 13 10 #endif 14 11 15 class MTriggerPrescFact : public MParContainer , public MCamEvent12 class MTriggerPrescFact : public MParContainer 16 13 { 17 14 friend class MReportTrigger; … … 27 24 { 28 25 fName = "MTriggerPrescFact"; 29 fTitle = " Trigger-Container for the L2 Prescaling Factors";26 fTitle = "Container for the L2 Prescaling Factors "; 30 27 } 31 28 32 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const 33 { 34 if (idx > gsNPrescFacts) 35 return kFALSE; 36 37 val = fPrescFact[idx]; 38 39 return val>0; 40 } 29 TArrayL GetPrescFactors() const { return fPrescFact; } 41 30 42 31 Double_t operator[](const Int_t idx) … … 48 37 } 49 38 50 void DrawPixelContent(Int_t num) const 51 { 52 } 53 54 ClassDef(MTriggerPrescFact, 1) // Trigger-Container for the L2 Prescaling Factors 39 ClassDef(MTriggerPrescFact, 1) // Container for the L2 Prescaling Factors 55 40 }; 56 41
Note:
See TracChangeset
for help on using the changeset viewer.