//-------------------------------------------------------------------------- // File and Version Information: // // Description: // Class InitStntupleModule: initializations for STNTUPLE maker // // Environment: // Software developed for the CDF at FNAL. // // Nov 23 2000 P.Murat // // revision history: // ----------------- //------------------------------------------------------------------------ #ifndef ROOTMODS_InitStntupleModule #define ROOTMODS_InitStntupleModule #ifdef __GNUG__ #pragma interface #endif #ifdef __CINT__ class AbsParmGeneral; #else # include "Framework/AbsParmGeneral.hh" #endif class CotBeam; class SvxBeam; class TObjArray; #ifndef __CINT__ #include "ShMaxCalibDBTables/CESDeadChannels.Defs.hh" #include "ShMaxCalibDBTables/PESDeadChannels.Defs.hh" #include "ShMaxCalibDBTables/CPRDeadChannels.Defs.hh" #include "ShMaxCalibDBTables/CCRDeadChannels.Defs.hh" #endif #include "Stntuple/mod/StntupleModule.hh" #include "Stntuple/obj/TStnHeaderBlock.hh" class InitStntupleModule : public StntupleModule { //------------------------------------------------------------------------------ // data members //------------------------------------------------------------------------------ protected: AbsParmGeneral fBeamHistoryCode; CotBeam* fCotBeam; // not owned, do not have to delete SvxBeam* fSvxBeam; // not owned, do not have to delete Int_t fLastRun; Float_t fSumInstLum; //! avg inst lum for evaluating Int_t fnLum; //! exe speed #ifndef __CINT__ CESDeadChannels_mgr* fCesMgr; CESDeadChannelsContainer_ptr* fCesPtr; PESDeadChannels_mgr* fPesMgr; PESDeadChannelsContainer_ptr* fPesPtr; CPRDeadChannels_mgr* fCprMgr; CPRDeadChannelsContainer_ptr* fCprPtr; CCRDeadChannels_mgr* fCcrMgr; CCRDeadChannelsContainer_ptr* fCcrPtr; #endif //------------------------------------------------------------------------------ // function members //------------------------------------------------------------------------------ public: // constructors and destructor InitStntupleModule(const char* name = "InitStntuple", const char* desc = "Initializes STNTUPLE tree"); ~InitStntupleModule(); // ****** accessors // ****** overwritten virtual functions // of AppModule AppResult beginRun(AbsEvent* event); AppResult event (AbsEvent* event); AppResult endRun (AbsEvent* event); AppResult beginJob(AbsEvent* event); AppResult endJob (AbsEvent* event); // ****** functions of the module Int_t ProcessNewRun (AbsEvent* event); Int_t InitBeamPositions (); Int_t InitTriggerTable (); Int_t InitRunSummary (); Int_t InitDeadList (); // ****** setters ClassDef(InitStntupleModule,0) }; #endif