Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-16 09:02:04

0001 /**
0002  \file Implementation of class erhic::EventDEMP. 
0003  \author    Wenliang Li
0004  \date      2021-06-21
0005  \email     wenliang.billlee@gmail.com
0006  */
0007 
0008 
0009 #ifndef INCLUDE_EICSMEAR_ERHIC_EVENTDEMP_H_
0010 #define INCLUDE_EICSMEAR_ERHIC_EVENTDEMP_H_
0011 
0012 #include <string>
0013 #include <Rtypes.h>
0014 #include "eicsmear/erhic/EventMC.h"
0015 
0016 namespace erhic {
0017 
0018 /**
0019  Describes an event from the generator DEMP.
0020  */
0021 class EventDEMP : public EventMC {
0022  public:
0023   /**
0024    Constructor.
0025    */
0026   EventDEMP();
0027 
0028   /**
0029    Parses the event information from a text string.
0030    
0031    The string must have the following format (no newlines):
0032    \verbatim
0033    "0 eventnumber numParticles
0034    \endverbatim
0035    Returns true in the event of a successful read operation,
0036    false in case of an error.
0037    */
0038   virtual bool Parse(const std::string&);
0039   const ParticleMC* ScatteredLepton() const;
0040 
0041   Double32_t numParticles;
0042   Double32_t weight;
0043 
0044   ClassDef(erhic::EventDEMP, 1)
0045 };
0046 
0047 }  // namespace erhic
0048 
0049 #endif  // INCLUDE_EICSMEAR_ERHIC_EVENTDEMP_H_