Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RawDaqSnarlHeader.cxx

Go to the documentation of this file.
00001 
00002 // $Id: RawDaqSnarlHeader.cxx,v 1.12 2005/06/02 05:46:39 rhatcher Exp $
00003 //
00004 // RawDaqSnarlHeader
00005 //
00006 // RawDaqSnarlHeader is the header for raw MINOS snarl data from the DAQ
00007 // It serves to tag the specifics of where/when the data was recorded
00008 //
00009 // Author:  R. Hatcher 2000.04.19
00010 //
00012 
00013 #include "RawData/RawDaqSnarlHeader.h"
00014 #include "RawData/RawTriggerCodes.h"
00015 
00016 #include <iostream>
00017 #include <iomanip>
00018 
00019 ClassImp(RawDaqSnarlHeader)
00020 
00021 //_____________________________________________________________________________
00022   RawDaqSnarlHeader::RawDaqSnarlHeader() :
00023     RawDaqHeader(), fSnarl(-1), fTrigSrc(0xFFFF), fErrorCode(0xFFFF),
00024     fNumRawDigits(-1), fRemoteSpillType(-1)
00025 {
00026    // Default constructor
00027 
00028 }
00029 
00030 //_____________________________________________________________________________
00031 RawDaqSnarlHeader::RawDaqSnarlHeader(const VldContext& vldc, Int_t run,
00032                                      Short_t subrun, Short_t runtype,
00033                                      Int_t timeframe,
00034                                      Int_t snarl, UInt_t trigsrc, 
00035                                      UInt_t errcode, Int_t nrawdigits,
00036                                      Int_t spilltype) :
00037    RawDaqHeader(vldc,run,subrun,runtype,timeframe), 
00038    fSnarl(snarl), fTrigSrc(trigsrc), fErrorCode(errcode),
00039    fNumRawDigits(nrawdigits), fRemoteSpillType(spilltype)
00040 {
00041    
00042 }
00043 
00044 //_____________________________________________________________________________
00045  std::ostream& RawDaqSnarlHeader::FormatToOStream(std::ostream& os,
00046                                                   Option_t *option) const
00047 {
00048    RawDaqHeader::FormatToOStream(os,option);
00049 
00050    Int_t trigSrc = GetTrigSrc();
00051    os << std::endl
00052       << " Snarl " << GetSnarl()
00053       << std::hex << std::setfill('0')
00054       << ", TrigSrc 0x"  << std::setw(8) << trigSrc
00055       << std::setfill(' ') << std::dec
00056       << " \"" << RawTriggerCodes::MaskToString(trigSrc) << "\""
00057       << std::endl
00058       << std::hex << std::setfill('0')
00059       << " ErrorCode 0x" << std::setw(8) << GetErrorCode()
00060       << std::setfill(' ') << std::dec
00061       << ", # RawDigits " << GetNumRawDigits()
00062       << ", SpillType " << GetRemoteSpillType();
00063    return os;
00064 }
00065 
00066 //_____________________________________________________________________________

Generated on Mon Feb 15 11:07:28 2010 for loon by  doxygen 1.3.9.1