hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TSData.h
Go to the documentation of this file.
1
8#ifndef _TS_DATA_H_
9#define _TS_DATA_H_
10
11#include <vector>
12
13//----------//
14// LCIO //
15//----------//
16#include <EVENT/LCGenericObject.h>
17
18//----------//
19// ROOT //
20//----------//
21#include <TObject.h>
22
23class TSData : public TObject {
24
25 public:
26 // tsHeader.type meaning:
27 // 0: Filler events
28 // 1-32: GTP Physics trigger;
29 // 33-64: Front panel physics trigger;
30 // 250: multi-hit on GTP or Front panel physics trigger
31 // 251: Multi-hit on GTP and Front panel physics trigger
32 // 253: VME trigger;
33 // 254: VME random trigger;
34 struct tsHeader
35 {
36 int wordCount; // 0-15 Event wordcount; Event header is excluded from the count
37 int test ; // 16-23 0000,0001, or 0x01
38 int type ; // 24-31 Trigger Type
40
41 struct tsBits
42 {
43 bool Single_0_Top ; // 0 ( 150-8191) MeV (-31,31) Low energy cluster
44 bool Single_1_Top ; // 1 ( 300-3000) MeV ( 5,31) e+
45 bool Single_2_Top ; // 2 ( 300-3000) MeV ( 5,31) e+ : Position dependent energy cut
46 bool Single_3_Top ; // 3 ( 300-3000) MeV ( 5,31) e+ : HODO L1*L2 Match with cluster
47 bool Single_0_Bot ; // 4 ( 150-8191) MeV (-31,31) Low energy cluster
48 bool Single_1_Bot ; // 5 ( 300-3000) MeV ( 5,31) e+
49 bool Single_2_Bot ; // 6 ( 300-3000) MeV ( 5,31) e+ : Position dependent energy cut
50 bool Single_3_Bot ; // 7 ( 300-3000) MeV ( 5,31) e+ : HODO L1*L2 Match with cluster
51 bool Pair_0 ; // 8 A'
52 bool Pair_1 ; // 9 Moller
53 bool Pair_2 ; // 10 pi0
54 bool Pair_3 ; // 11 -
55 bool LED ; // 12 LED
56 bool Cosmic ; // 13 Cosmic
57 bool Hodoscope ; // 14 Hodoscope
58 bool Pulser ; // 15 Pulser
59 bool Mult_0 ; // 16 Multiplicity-0 2 Cluster Trigger
60 bool Mult_1 ; // 17 Multiplicity-1 3 Cluster trigger
61 bool FEE_Top ; // 18 FEE Top ( 2600-5200)
62 bool FEE_Bot ; // 19 FEE Bot ( 2600-5200)
63 unsigned int NA ; // 20-31 Not used
64 unsigned int intval; // Full word
65 };
68
69 unsigned long EN; // Event Number in Run
70 unsigned long T; // Trigger Time
71
72 public:
74 ~TSData();
75
76 void print();
77
78 void Clear(){
79 TObject::Clear();
80 };
81
83
84};
85
86#endif // __TS_DATA_H__
unsigned long T
Definition TSData.h:70
void print()
Definition TSData.cxx:20
ClassDef(TSData, 1)
struct TSData::tsHeader header
tsBits prescaled
Definition TSData.h:66
~TSData()
Definition TSData.cxx:15
void Clear()
Definition TSData.h:78
tsBits ext
Definition TSData.h:67
unsigned long EN
Definition TSData.h:69
bool Pulser
Definition TSData.h:58
bool Cosmic
Definition TSData.h:56
bool Single_1_Bot
Definition TSData.h:48
bool Pair_1
Definition TSData.h:52
bool Hodoscope
Definition TSData.h:57
bool Pair_2
Definition TSData.h:53
bool Single_1_Top
Definition TSData.h:44
bool Single_2_Bot
Definition TSData.h:49
bool Mult_0
Definition TSData.h:59
bool Single_0_Bot
Definition TSData.h:47
unsigned int NA
Definition TSData.h:63
bool Single_2_Top
Definition TSData.h:45
unsigned int intval
Definition TSData.h:64
bool Single_0_Top
Definition TSData.h:43
bool Single_3_Top
Definition TSData.h:46
bool Single_3_Bot
Definition TSData.h:50
bool Pair_3
Definition TSData.h:54
bool Mult_1
Definition TSData.h:60
bool FEE_Bot
Definition TSData.h:62
bool Pair_0
Definition TSData.h:51
bool FEE_Top
Definition TSData.h:61