• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

beamtime/gsi-aug12/prod/go4/RPC/TRpcEvent.h (r4864/r3742)

Go to the documentation of this file.
00001 #ifndef TRPCEVENT_H
00002 #define TRPCEVENT_H
00003 
00004 #include "TGo4EventElement.h"
00005 
00006 /*
00007  * Put all definitions here and use them in processor,
00008  * since they are necessary for data structure of event
00009  */
00010 
00011 class Rpc_Hit: public TObject {
00012    public:
00013      Int_t    iStrip;
00014      Double_t dTimeLeft;  // in ps
00015      Double_t dTotLeft;   // in ps
00016      Double_t dTimeRight; // in ps
00017      Double_t dTotRight;  // in ps
00018 
00019      Rpc_Hit() : TObject() { Clear(); };
00020 
00021      void Clear(void);
00022 
00023      Double_t PositionCalculation( Double_t dTimeConv );
00024 
00025      /*
00026      // copy constructor, used by vector to copy content
00027      Rpc_Hit(const Rpc_Hit& src) :
00028         iStrip(src.iStrip),
00029         dTimeLeft(src.dTimeLeft), dTotLeft(src.dTotLeft),
00030         dTimeRight(src.dTimeRight), dTotRight(src.dTotRight) {}
00031         */
00032 
00033      ClassDef(Rpc_Hit, 1)
00034 };
00035 
00036 class Rpc_Cluster: public TObject {
00037   public:
00038       std::vector<Rpc_Hit>  fHits;
00039       Double_t dX;
00040       Double_t dY;
00041       Double_t dMeanTime;
00042       Double_t dMeanStrip;
00043 
00044      Rpc_Cluster() : TObject() { Clear(); };
00045 
00046      void Clear(void);
00047 
00048      void PositionCalculation( Double_t dMiddleStrip, UInt_t uOrientation,
00049                                    Double_t dStripWidth, Double_t dTimeConv,
00050                                    UInt_t uUseGravityCenter = 0);
00051 
00052    ClassDef(Rpc_Cluster, 1)
00053 };
00054 
00055 class TRpcEvent : public TGo4EventElement {
00056    public:      
00057    
00058 
00059       TRpcEvent();
00060       TRpcEvent(const char* name, Short_t id=0);
00061       virtual ~TRpcEvent();
00062 
00064       virtual void Clear(Option_t *t="");
00065 
00066       // Maybe to be transformed into a TObjArray or TCloneArray
00067       std::vector<Rpc_Cluster>  fClusters;
00068 
00069    ClassDef(TRpcEvent,1)
00070 };
00071 #endif //TRPCEVENT_H
00072 
00073 
00074 

Generated on Tue Dec 10 2013 04:52:20 for ROCsoft by  doxygen 1.7.1