Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:15:44

0001 #ifndef EVENT_H
0002 #define EVENT_H
0003 
0004 #include "TString.h"
0005 #include "TTimeStamp.h"
0006 #include <map>
0007 #include <iostream>
0008 #include "Caen.h"
0009 #include "HGCROC.h"
0010 #include "Setup.h"
0011 #include "Calib.h"
0012 #include "TRandom3.h"
0013 
0014 class Event{
0015 
0016  public:
0017 
0018   void    AddTile      (Tile*);
0019   void    RemoveTile   (Tile*);
0020   void    ClearTiles   (void);
0021   
0022   double  GetBeamEnergy(void) const;
0023   int     GetBeamID    (void) const;
0024   TString GetBeamName  (void) const;
0025   int     GetEventID   (void) const;
0026   int     GetNTiles    (void) const;
0027   int     GetROtype    (void) const;
0028   int     GetRunNumber (void) const;
0029   Tile*   GetTile      (int);
0030   Tile*   GetTileFromID(int);
0031   int     GetTimeStamp (void) const;
0032   double  GetVov       (void) const;
0033   double  GetVop       (void) const;
0034   double    GetBeamPosX(void);
0035   double    GetBeamPosY(void);
0036   const TTimeStamp* GetBeginRunTime(void) const;
0037   
0038   void    SetBeamEnergy(double);
0039   void    SetBeamID    (int);
0040   void    SetBeamName  (TString);
0041   void    SetEventID   (int);
0042   void    SetROtype    (int);
0043   void    SetRunNumber (int);
0044   void    SetBeginRunTime(TTimeStamp);
0045   void    SetVov(double);
0046   void    SetVop(double);
0047   void    SetBeamPosX(double);
0048   void    SetBeamPosY(double);
0049   void    SetTimeStamp (int);
0050 
0051   bool    InspectIfLocalMuonTrigg(int, double, double, double);
0052   bool    InspectIfNoiseTrigg(int, double, double);
0053   double  CalculateLocalMuonTrigg(Calib, TRandom3*, int, int, double);
0054 
0055  private:
0056 
0057   double                BeamEnergy;
0058   int                   BeamID;
0059   TString               BeamName;
0060   int                   EventID;
0061   int                   ROtype;
0062   int                   RunNumber;
0063   TTimeStamp            BeginRun;
0064   double                Vov;
0065   double                Vop;
0066   double                BeamPosX;
0067   double                BeamPosY;
0068   std::map<int, Tile* > Tiles;
0069   std::vector<int>      TileIDs;
0070   int                   TimeStamp;
0071   
0072  protected:
0073   
0074 
0075 };
0076 
0077 
0078 #endif