Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-07-01 07:05:42

0001 /**
0002  \file
0003  Declaration of class erhic::EventMilou.
0004  
0005  \author    Thomas Burton
0006  \date      2011-07-07
0007  \copyright 2011 Brookhaven National Lab
0008  */
0009 
0010 #ifndef INCLUDE_EICSMEAR_ERHIC_EVENTMILOU_H_
0011 #define INCLUDE_EICSMEAR_ERHIC_EVENTMILOU_H_
0012 
0013 #include <string>
0014 
0015 #include <Rtypes.h>
0016 
0017 #include "eicsmear/erhic/EventMC.h"
0018 
0019 namespace erhic {
0020 
0021 /**
0022  Describes an event from the generator MILOU.
0023  */
0024 class EventMilou : public EventMC {
0025  public:
0026   /**
0027    Constructor.
0028    */
0029   EventMilou();
0030 
0031   /**
0032    Parses the event information from a text string.
0033    
0034    The string must have the following format (no newlines):
0035    \verbatim
0036    "0 eventnumber numTracks weight processId radiativeCorrectionFlag
0037    trueX trueQ2 trueY trueT truePhi phi phiResolution reconstructedPhi"
0038    \endverbatim
0039    Returns true in the event of a successful read operation,
0040    false in case of an error.
0041    */
0042   virtual bool Parse(const std::string&);
0043 
0044   /**
0045    Azimuthal angle between the production and the scattering plane.
0046    */
0047   Double_t GetPhiBelGen() const;
0048 
0049   /**
0050    Resolution in azimuthal angle.
0051    */
0052   Double_t GetPhiBelRes() const;
0053 
0054   /**
0055    Reconstructed azimuthal angle.
0056    */
0057   Double_t GetPhiBelRec() const;
0058 
0059   Bool_t radcorr;
0060   Double32_t weight;
0061   Double32_t trueX;
0062   Double32_t trueQ2;
0063   Double32_t trueY;
0064   Double32_t trueT;
0065   Double32_t truePhi;
0066   Double32_t phibelgen;  ///> the azimuthal angle between the production
0067                          ///> and the scattering plane
0068   Double32_t phibelres;  ///> the resolution of the previous angle
0069                          ///> according to H1
0070   Double32_t phibelrec;  ///> the reconstructed phi angle
0071 
0072   ClassDef(erhic::EventMilou, 1)
0073 };
0074 
0075 inline Double_t EventMilou::GetPhiBelGen() const {
0076   return phibelgen;
0077 }
0078 
0079 inline Double_t EventMilou::GetPhiBelRes() const {
0080   return phibelres;
0081 }
0082 
0083 inline Double_t EventMilou::GetPhiBelRec() const {
0084   return phibelrec;
0085 }
0086 
0087 }  // namespace erhic
0088 
0089 #endif  // INCLUDE_EICSMEAR_ERHIC_EVENTMILOU_H_