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

beamtime/tof-tdctest/go4/PADRPC/PadRpc_Event.h (r4864/r4267)

Go to the documentation of this file.
00001 #ifndef PADRPC_EVENT_H
00002 #define PADRPC_EVENT_H
00003 
00004 /*
00005  * Put all definitions here and use them in processor,
00006  * since they are necessary for data structure of event
00007  */
00008 #ifdef WITHGO4ROC
00009    #include "TGo4Version.h"
00010    #if __GO4BUILDVERSION__ > 40502
00011       #include "go4iostream.h"
00012    #endif
00013 #else
00014    #include <vector>
00015    #include "Riostream.h"
00016 #endif // WITHGO4ROC
00017 #include "TObject.h"
00018 
00019 class PadRpc_Hit: public TObject {
00020    public:
00021      Int_t    iPadIndexX;
00022      Int_t    iPadIndexY;
00023      Double_t dTime;  // in ps
00024      Double_t dTot;   // in ps
00025 
00026      PadRpc_Hit() : TObject() { Clear(); };
00027 
00028      void Clear(void);
00029 
00030      ClassDef(PadRpc_Hit, 1)
00031 };
00032 
00033 class PadRpc_Cluster: public TObject {
00034   public:
00035       std::vector<PadRpc_Hit>  fHits;
00036       Double_t dX;
00037       Double_t dY;
00038       Double_t dMeanTime;
00039       Double_t dMeanPadX;
00040       Double_t dMeanPadY;
00041 
00042       PadRpc_Cluster() : TObject() { Clear(); };
00043 
00044      void Clear(void);
00045 
00046      void PositionCalculation(  Double_t dMiddlePadX, Double_t dMiddlePadY,
00047                                    UInt_t uOrientation,
00048                                    Double_t dPadSizeX,  Double_t dPadSizeY );
00049 
00050    ClassDef(PadRpc_Cluster, 1)
00051 };
00052 
00053 class PadRpc_Event : public TObject {
00054    public:
00055 
00056 
00057       PadRpc_Event() : TObject() { Clear(); };
00058       ~PadRpc_Event(){ Clear(); };
00059 
00060       void Clear();
00061 
00062       // Maybe to be transformed into a TObjArray or TCloneArray
00063       std::vector<PadRpc_Cluster>  fClusters;
00064 
00065    ClassDef(PadRpc_Event,1)
00066 };
00067 #endif //PADRPC_EVENT_H
00068 
00069 
00070 

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