1 #ifndef NEW_DAQ_READER_DAQ
2 # include "StDaqLib/EVP/scReader.h"
5 # include "RTS/src/DAQ_SC/sc.h"
7 #include "SC_Reader.hh"
8 #include "StDaqLib/GENERIC/EventReader.hh"
14 using namespace OLDEVP;
16 int SC_Reader::BBCEast() {
17 return sc.rich_scalers[0];
20 int SC_Reader::BBCWest() {
21 return sc.rich_scalers[1];
24 int SC_Reader::BBCX() {
25 return sc.rich_scalers[2];
28 int SC_Reader::BBCBlueBkg() {
29 return sc.rich_scalers[4 - flipBBCBkg];
32 int SC_Reader::BBCYellowBkg() {
33 return sc.rich_scalers[3 + flipBBCBkg];
36 int SC_Reader::ZDCEast() {
37 return sc.rich_scalers[5];
40 int SC_Reader::ZDCWest() {
41 return sc.rich_scalers[6];
44 int SC_Reader::ZDCX() {
45 return sc.rich_scalers[7];
48 int SC_Reader::ZDCEastNoKiller() {
49 return sc.rich_scalers[12];
52 int SC_Reader::ZDCWestNoKiller() {
53 return sc.rich_scalers[11];
56 int SC_Reader::ZDCXNoKiller() {
57 return sc.rich_scalers[14];
60 int SC_Reader::PVPDEast() {
61 return sc.rich_scalers[8];
64 int SC_Reader::PVPDWest() {
65 return sc.rich_scalers[9];
68 int SC_Reader::CTBWest() {
72 int SC_Reader::CTBEast() {
76 int SC_Reader::TOFp() {
80 int SC_Reader::CTBOrTOFp() {
84 int SC_Reader::Mult() {
85 return sc.rich_scalers[10];
92 int SC_Reader::BBCXCTB() {
101 std::time_t utime = er->getEventInfo().UnixTime;
102 std::tm *time = gmtime(&utime);
103 flipBBCBkg = (time->tm_year > 95 && time->tm_year < 109 ? 1 : 0) ;
107 #ifndef NEW_DAQ_READER
109 datap=er->getDATAP();
110 if (datap) OLDEVP::scReader(datap);
112 assert(0 &&
"SC_Reader is no use with the new DAQ reader");