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::EPDX() {
61 return sc.rich_scalers[13];
64 int SC_Reader::PVPDEast() {
65 return sc.rich_scalers[8];
68 int SC_Reader::PVPDWest() {
69 return sc.rich_scalers[9];
72 int SC_Reader::CTBWest() {
76 int SC_Reader::CTBEast() {
80 int SC_Reader::TOFp() {
84 int SC_Reader::CTBOrTOFp() {
88 int SC_Reader::Mult() {
89 return sc.rich_scalers[10];
96 int SC_Reader::BBCXCTB() {
105 std::time_t utime = er->getEventInfo().UnixTime;
106 std::tm *time = gmtime(&utime);
107 flipBBCBkg = (time->tm_year > 95 && time->tm_year < 109 ? 1 : 0) ;
111 #ifndef NEW_DAQ_READER
113 datap=er->getDATAP();
114 if (datap) OLDEVP::scReader(datap);
116 assert(0 &&
"SC_Reader is no use with the new DAQ reader");