StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTRGReader.h
1 /***************************************************************************
2  *
3  * $Id: StTRGReader.h,v 1.8 2009/11/02 21:42:52 fine Exp $
4  *
5  * Author: Herbert Ward
6  ***************************************************************************
7  *
8  * Description: Offline Wrapper for TRG reader class
9  *
10  ***************************************************************************
11  *
12  * $Log: StTRGReader.h,v $
13  * Revision 1.8 2009/11/02 21:42:52 fine
14  * allow the Akio DAT file to be read in 1999-2008 format
15  *
16  * Revision 1.7 2007/11/19 19:40:11 akio
17  * Change fro run8
18  *
19  * Revision 1.6 2007/02/22 22:18:41 akio
20  * Update for 2007
21  *
22  * Revision 1.5 2004/11/03 17:55:28 akio
23  * update for fy05 run
24  *
25  * Revision 1.4 2003/12/23 23:17:10 akio
26  * Update for Fy04 run
27  *
28  * Revision 1.3 2003/07/16 19:58:29 perev
29  * Cleanup of StTriggerData2003 at all
30  *
31  * Revision 1.2 2000/06/12 15:04:02 perev
32  * SVT + cleanup
33  *
34  * Revision 1.1 2000/01/24 20:35:37 ward
35  * Access trigger data.
36  *
37  *
38  **************************************************************************/
39 #ifndef _StTRGReader_
40 #define _StTRGReader_
41 
42 #ifndef __CINT__
43 #include "StDaqLib/GENERIC/EventReader.hh"
44 #include "StDaqLib/TRG/trgStructures2000.h"
45 #include "StDaqLib/TRG/trgStructures2003.h"
46 #include "StDaqLib/TRG/trgStructures2004.h"
47 #include "StDaqLib/TRG/trgStructures2005.h"
48 #include "StDaqLib/TRG/trgStructures2007.h"
49 #include "StDaqLib/TRG/trgStructures2008.h"
50 #endif /*__CINT__*/
51 
52 #include "StDaqLib/TRG/TRG_Reader.hh"
53 
54 class EventReader;
55 class StDAQReader;
56 
57 class StTRGReader {
58  public:
59 
61  char thereIsTriggerData(); // returns FALSE if there is no trigger data in the .daq file
62  virtual ~StTRGReader();
63  virtual int close();
64  int getYear() const;
65 
66  const char *getData() const;
67  const TrgDataType2000 *getDataType2000() const;
68  const TrgDataType2003 *getDataType2003() const;
69  const TrgDataType2004 *getDataType2004() const;
70  const TrgDataType2005 *getDataType2005() const;
71  const TrgDataType2007 *getDataType2007() const;
72  const TrgDataType2008 *getDataType2008() const;
73 
74  virtual void Update();
75  enum { kTrgOldVersionFormat=0};
76  static bool OldFormat(int version) { return (version <= kTrgOldVersionFormat); }
77 protected:
78  TRG_Reader *fTRGImpReader; // Making this protected hide implementation from the user
79 
80  StDAQReader *fDAQReader;
81 };
82 #endif
void rd(int hits=0, bool clear=false)
This function redraws all hits and/or tracks from the current event.
Definition: Ed.C:69