#include #include #include #include using namespace RAT; FitterPMT::FitterPMT( const DS::PMTCal& pmtCal ) { fID = pmtCal.GetID(); fCCCC = pmtCal.GetCCCC(); fTime = pmtCal.GetTime(); fTimeError = 1.0; fQHL = pmtCal.GetQHL(); fQHLError = 1.0; fQHS = pmtCal.GetQHS(); fQHSError = 1.0; fQLX = pmtCal.GetQLX(); fQLXError = 1.0; fStatus = pmtCal.GetStatus(); fCrossTalkFlag = pmtCal.GetCrossTalkFlag(); } FitterPMT::FitterPMT( const DS::SOCPMT& socPMT ) { fID = socPMT.GetLCN(); fCCCC = 0; // CCCC not defined in SOCPMT // Get centroid and centroid error fTime = socPMT.GetTimeCentroid(); fTimeError = socPMT.GetTimeCentroidError(); // Set charges to zero not used in the fit fQHL = 0.0; fQHLError = 0.0; fQHS = 0.0; fQHSError = 0.0; // No QLX information in SOCPMTs fQLX = 0.0; fQLXError = 0.0; }