/[PAMELA software]/DarthVader/TrackerLevel2/inc/TrkLevel0.h
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/inc/TrkLevel0.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by pam-fi, Fri Feb 16 14:56:00 2007 UTC revision 1.6 by pam-fi, Thu Dec 4 14:33:38 2008 UTC
# Line 5  Line 5 
5  #ifndef trklevel0_h  #ifndef trklevel0_h
6  #define trklevel0_h  #define trklevel0_h
7    
8    #include <TGraph.h>
9    
10  #include <TObject.h>  #include <TObject.h>
11  #include <physics/tracker/TrackerEvent.h>  #include <physics/tracker/TrackerEvent.h>
12  #include <TrkParams.h>  #include <TrkParams.h>
# Line 27  class TrkLevel0 : public TObject{ Line 29  class TrkLevel0 : public TObject{
29   public:   public:
30    
31      TrkLevel0(){ yodaobj = 0; };      TrkLevel0(){ yodaobj = 0; };
32      ~TrkLevel0(){ if(yodaobj)delete yodaobj; };      ~TrkLevel0(){ if(yodaobj) delete yodaobj; };
33      void Set(){ yodaobj = new TrackerEvent(); };          void Set(){ yodaobj = new TrackerEvent(); };    
34    
 //    void GetCommonVar(cTrkLevel0 *);  
35      void GetLevel0Struct(cTrkLevel0 *);      void GetLevel0Struct(cTrkLevel0 *);
36      void SetFromLevel0Struct(cTrkLevel0 *);      void SetFromLevel0Struct(cTrkLevel0 *);
37      void GetLevel0Struct(){ GetLevel0Struct(&level0event_); };      void GetLevel0Struct(){ GetLevel0Struct(&level0event_); };
38      void SetFromLevel0Struct(){ SetFromLevel0Struct(&level0event_); };      void SetFromLevel0Struct(){ SetFromLevel0Struct(&level0event_); };
39        
40        bool FillADC();
41        bool GetCalibratedEvent( int, TGraph* );
42        bool GetCalibratedEvent( int iview){ return GetCalibratedEvent(iview,NULL); };
43    
 //    cTrkLevel0* GetLevel0Struct(){ GetCommonVar(&level0event_); };  
44      void* GetPointerToTrackerEvent(){ return &yodaobj; };      void* GetPointerToTrackerEvent(){ return &yodaobj; };
45      TrackerEvent* GetTrackerEvent(){ return yodaobj; }      TrackerEvent* GetTrackerEvent(){ return yodaobj; }
46      int ProcessEvent();      int ProcessEvent();
47        void Decode(int from,int to,bool &COMPRESSED,bool &FULL, int* datacomp, int* datafull);
48        bool GetFullEvent(int iview, TGraph* graph);
49        bool GetCompressedEvent(int iview, TGraph* graph);
50        bool GetUnCompressedEvent(int iview, TGraph* graph);
51        bool GetSigma(int iview, TGraph* graph);
52            
53      ClassDef(TrkLevel0,1);      ClassDef(TrkLevel0,1);
54    
55  };  };
56    
57    /**
58     * \brief Struct to decode tracker words
59     *
60     */
61    typedef struct trkword{
62      int type;
63      int decode;
64    };
65    
66  #endif  #endif

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23