psana_examples/include/EBeamHist.h

Go to the documentation of this file.
00001 #ifndef PSANA_EXAMPLES_EBEAMHIST_H
00002 #define PSANA_EXAMPLES_EBEAMHIST_H
00003 
00004 //--------------------------------------------------------------------------
00005 // File and Version Information:
00006 //      $Id: EBeamHist.h 2066 2011-06-29 22:22:35Z salnikov@SLAC.STANFORD.EDU $
00007 //
00008 // Description:
00009 //      Class EBeamHist.
00010 //
00011 //------------------------------------------------------------------------
00012 
00013 //-----------------
00014 // C/C++ Headers --
00015 //-----------------
00016 
00017 //----------------------
00018 // Base Class Headers --
00019 //----------------------
00020 #include "psana/Module.h"
00021 
00022 //-------------------------------
00023 // Collaborating Class Headers --
00024 //-------------------------------
00025 
00026 //------------------------------------
00027 // Collaborating Class Declarations --
00028 //------------------------------------
00029 
00030 //              ---------------------
00031 //              -- Class Interface --
00032 //              ---------------------
00033 
00034 namespace psana_examples {
00035 
00036 /**
00037  *  @brief Example module class for psana
00038  *
00039  *  This software was developed for the LCLS project.  If you use all or 
00040  *  part of it, please give an appropriate acknowledgment.
00041  *
00042  *  @see AdditionalClass
00043  *
00044  *  @version $Id: EBeamHist.h 2066 2011-06-29 22:22:35Z salnikov@SLAC.STANFORD.EDU $
00045  *
00046  *  @author Andrei Salnikov
00047  */
00048 
00049 class EBeamHist : public Module {
00050 public:
00051 
00052   // Default constructor
00053   EBeamHist (const std::string& name) ;
00054 
00055   // Destructor
00056   virtual ~EBeamHist () ;
00057 
00058   /// Method which is called once at the beginning of the job
00059   virtual void beginJob(Event& evt, Env& env);
00060   
00061   /// Method which is called with event data
00062   virtual void event(Event& evt, Env& env);
00063   
00064 protected:
00065 
00066 private:
00067 
00068   // Data members
00069   
00070   Source m_ebeamSrc;
00071   PSHist::H1* m_ebeamHisto;
00072   PSHist::H1* m_chargeHisto;
00073 
00074 };
00075 
00076 } // namespace psana_examples
00077 
00078 #endif // PSANA_EXAMPLES_EBEAMHIST_H

Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7