/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Attributes
TShiftProxy Class Reference

#include <TShiftProxy.h>

List of all members.

Public Member Functions

 TShiftProxy (int run, int site)
virtual ~TShiftProxy ()
int time_shift (int detId)

Private Attributes

int m_shift [7]

Detailed Description

Definition at line 4 of file TShiftProxy.h.


Constructor & Destructor Documentation

TShiftProxy::TShiftProxy ( int  run,
int  site 
)

Definition at line 7 of file TShiftProxy.cc.

{
    for ( int i = 0; i < 7; ++i ) m_shift[i] = 0;

    std::stringstream ptmp;
    ptmp << run << "  " << (1<<site);
    std::string cpath = getenv("RAWRECORDPOOLROOT");
    cpath += "/test/QueryLatency.py  " + ptmp.str();
    FILE* fres = popen(cpath.c_str(), "r");

    std::stringstream pstr;
    char pbuf[1024];
    while ( fgets(pbuf, 1024, fres) != NULL ) {
        pstr << pbuf;
    }

    std::string tmp;
    pstr >> tmp;

    if ( tmp == "GOOD" ) {
        double dtmp;
        for ( int i = 0; i < 7; ++i ) {
            pstr >> dtmp;
            m_shift[i] = dtmp*2;
        }
    }
}
TShiftProxy::~TShiftProxy ( ) [virtual]

Definition at line 35 of file TShiftProxy.cc.

{
    //for ( int i = 0; i < 7; ++i ) std::cout << i << ": " << m_shift[i] << std::endl;
}

Member Function Documentation

int TShiftProxy::time_shift ( int  detId)

Definition at line 40 of file TShiftProxy.cc.

{
    return m_shift[detId];
}

Member Data Documentation

int TShiftProxy::m_shift[7] [private]

Definition at line 14 of file TShiftProxy.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:52:46 for RawRecordPool by doxygen 1.7.4