Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, file /coresoftware/offline/packages/mbd/MbdRawContainer.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // virtual Mbd RAW Container class
0002 
0003 #ifndef MBD_MBDRAWCONTAINER_H__
0004 #define MBD_MBDRAWCONTAINER_H__
0005 
0006 #include <phool/PHObject.h>
0007 
0008 #include <iostream>
0009 #include <string>
0010 
0011 class MbdRawHit;
0012 
0013 ///
0014 class MbdRawContainer : public PHObject
0015 {
0016  public:
0017   /// dtor
0018   virtual ~MbdRawContainer() {}
0019 
0020   /** identify Function from PHObject
0021       @param os Output Stream
0022    */
0023   virtual void identify(std::ostream& os = std::cout) const override;
0024 
0025   /// Clear Event
0026   virtual void Reset() override;
0027 
0028   /// isValid returns non zero if object contains valid data
0029   virtual int isValid() const override;
0030 
0031   /** Add Mbd data containing evt, clk, and femclk
0032       @param ievt   Event number
0033       @param iclk    XMIT clock
0034       @param ifemclk FEM clock
0035    */
0036   virtual void set_clocks(const Int_t ievt, const UShort_t iclk, const UShort_t ifemclk);
0037 
0038   //! get Event Number
0039   virtual Int_t get_evt() const;
0040 
0041   //! get XMIT Clock Counter
0042   virtual UShort_t get_clock() const;
0043 
0044   //! get FEM Clock Counter
0045   virtual UShort_t get_femclock() const;
0046 
0047   /** set number of PMT's for Mbd
0048       @param ival Number of Mbd Pmt's
0049    */
0050   virtual void set_npmt(const short ival);
0051 
0052   //! get Number of Mbd Pmt's
0053   virtual Short_t get_npmt() const;
0054 
0055   //! get MbdRawHit Object
0056   virtual MbdRawHit *get_pmt(const int ipmt) const;
0057 
0058   virtual void Print(Option_t *option="") const override;
0059 
0060  private:
0061   static void virtual_warning(const std::string& funcsname) ;
0062 
0063   ClassDefOverride(MbdRawContainer, 1)
0064 };
0065 
0066 #endif  // __MBD_MBDRAWCONTAINER_H__