| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DaqCrate.cc File Reference

#include "Event/DaqCrate.h"
#include "DaqReadoutFormat/ByteBuffer.h"
#include "DaqReadoutFormat/RomData.h"
#include "CbltReadoutFormat/CbltTraits.h"
#include "Event/DaqPmtCrate.h"
#include "Event/DaqLtb.h"
#include "EventReadoutFormat/EventHeader.h"
#include "EventReadoutFormat/EventTraits.h"
#include "EventReadoutFormat/RomFragment.h"
#include "EventReadoutFormat/RomHeader.h"
#include "LtbReadoutFormat/LtbReadout.h"

Include dependency graph for DaqCrate.cc:

Go to the source code of this file.


Functions

static DetectorId::DetectorId_t convertDetector (unsigned int daqDetectorId)
static unsigned int convertDetectorId (DetectorId::DetectorId_t detectorId)
static Site::Site_t convertSite (unsigned int daqSiteId)

Function Documentation

static DetectorId::DetectorId_t convertDetector ( unsigned int  daqDetectorId  )  [static]

Definition at line 37 of file DaqCrate.cc.

00038 {
00039     // Convert detector definition from DAQ to Offline convention 
00040     switch(daqDetectorId){
00041     case 1:
00042         return DetectorId::kAD1;
00043     case 2:
00044         return DetectorId::kAD2;
00045     case 3:
00046         return DetectorId::kAD3;
00047     case 4:
00048         return DetectorId::kAD4;
00049     case 5:
00050         return DetectorId::kIWS;
00051     case 6:
00052         return DetectorId::kOWS;
00053     case 7:
00054         return DetectorId::kRPC;
00055     default:
00056         break;
00057     }
00058     return DetectorId::kUnknown;
00059 }

static unsigned int convertDetectorId ( DetectorId::DetectorId_t  detectorId  )  [static]

Definition at line 61 of file DaqCrate.cc.

00062 {
00063     // Convert detector definition from Offline convention to DAQ
00064     switch(detectorId){
00065     case DetectorId::kAD1:
00066         return 1;
00067     case DetectorId::kAD2:
00068         return 2;
00069     case DetectorId::kAD3:
00070         return 3;
00071     case DetectorId::kAD4:
00072         return 4;
00073     case DetectorId::kIWS:
00074         return 5;
00075     case DetectorId::kOWS:
00076         return 6;
00077     case DetectorId::kRPC:
00078         return 7;
00079     default:
00080         break;
00081     }
00082     return 0;
00083 }

static Site::Site_t convertSite ( unsigned int  daqSiteId  )  [static]

Definition at line 85 of file DaqCrate.cc.

00086 {
00087     // Convert site definition from DAQ to Offline convention 
00088     switch(daqSiteId){
00089     case 1:
00090         return Site::kDayaBay;
00091     case 2:
00092         return Site::kLingAo;
00093     case 3:
00094         return Site::kFar;
00095     case 4:
00096         return Site::kMid;
00097     case 6:
00098         return Site::kSAB;
00099     default:
00100         break;
00101     }
00102     return Site::kUnknown;
00103 }

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:24:28 2011 for DaqEvent by doxygen 1.4.7