00001 #ifndef FILLFARRUNQUALITY_H 00002 #define FILLFARRUNQUALITY_H 00003 00004 #include "JobControl/JobCModule.h" 00005 00006 #include "TFile.h" 00007 #include "TTree.h" 00008 #include "TString.h" 00009 00010 #include "RawReadout.h" 00011 00012 class MomNavigator; 00013 00014 class FillFarRunQuality : public JobCModule 00015 { 00016 public: 00017 FillFarRunQuality(); 00018 ~FillFarRunQuality(); 00019 void BeginJob(); 00020 JobCResult Get(MomNavigator *mom); 00021 // JobCResult Ana(const MomNavigator *mom); 00022 const Registry& DefaultConfig() const; 00023 void Config(const Registry& r); 00024 void HandleCommand(JobCommand* command); 00025 void EndJob(); 00026 00027 private: 00028 00029 TFile* fRunQualityFile; 00030 TTree* fRunQualityTree; 00031 00032 TString fRunQualityFileName; 00033 Int_t fWriteToDatabase; 00034 Int_t fReadFromDatabase; 00035 Int_t fWriteOutResults; 00036 00037 Int_t fTime; 00038 Int_t fRecord; 00039 Int_t fCounter; 00040 Int_t fGoodCounter; 00041 Int_t fHvStatus; 00042 Int_t fHvStatusSM1; 00043 Int_t fHvStatusSM2; 00044 Int_t fReadoutStatus; 00045 Int_t fTimeFrame; 00046 00047 Int_t fSource; 00048 Int_t fRun; 00049 Int_t fSubRun; 00050 Int_t fRunType; 00051 Int_t fRopMask; 00052 Int_t fCrateMask; 00053 Int_t fTriggerMask; 00054 Int_t fStartTime; 00055 Int_t fEndTime; 00056 Int_t fTimeFrames; 00057 Int_t fSnarls; 00058 Int_t fGoodSnarls; 00059 Int_t fSnarlRateMin; 00060 Int_t fSnarlRateMax; 00061 Float_t fSnarlRateMean; 00062 Float_t fSnarlRateMedian; 00063 Int_t fTriggersPlane; 00064 Int_t fTriggersEnergy; 00065 Int_t fTriggersSpill; 00066 Int_t fTriggersRealSpill; 00067 Int_t fTriggersFakeSpill; 00068 Int_t fPhysicsRun; 00069 Int_t fModifiedRun; 00070 Int_t fTestRun; 00071 Int_t fGoodRun; 00072 00073 Int_t* fSnarlRates; 00074 Int_t* fCrateRates; 00075 00076 void WriteToDatabase(); 00077 void ReadFromDatabase(); 00078 void WriteOutResults(); 00079 void WriteOutFile(); 00080 00081 void ProcessHeader(TObject* obj); 00082 void ProcessBlock(TObject* obj); 00083 00084 void EndSubRun(); 00085 void WriteSubRun(); 00086 00087 void Reset(); 00088 00089 RawReadout* fRawReadout; 00090 }; 00091 00092 #endif
1.3.9.1