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

TestCalibModule.cxx File Reference

#include <BeamDataUtil/test/TestCalibModule.h>
#include <BeamDataUtil/BDSwicCalibrator.h>
#include <BeamDataUtil/BDHadMuMon.h>
#include <BeamDataUtil/BDDevices.h>
#include <Conventions/Munits.h>
#include <DataUtil/GetRawBlock.h>
#include <RawData/RawRecord.h>
#include <RawData/RawBeamMonHeaderBlock.h>
#include <RawData/RawBeamMonBlock.h>
#include <JobControl/JobCModuleRegistry.h>
#include <JobControl/JobCResult.h>
#include <MessageService/MsgService.h>
#include <vector>
#include <string>

Go to the source code of this file.

Functions

 CVSID ("$Id: TestCalibModule.cxx,v 1.1 2005/05/09 22:12:26 minoscvs Exp $")
 JOBMODULE (TestCalibModule,"BeamMonTestCalib","Test calibrating the SWIC data.")
void dump_hadmus (BDHadMuMon *hm[])


Function Documentation

CVSID "$Id: TestCalibModule cxx,
v 1.1 2005/05/09 22:12:26 minoscvs Exp $" 
 

void dump_hadmus BDHadMuMon hm[]  )  [static]
 

Definition at line 37 of file TestCalibModule.cxx.

References BDHadMuMon::Channel(), Form(), BDSwicDevice::GetCharge(), BDHadMuMon::GetNrowcol(), BDHadMuMon::GetStats(), BDSwicDevice::GetTotalCharge(), and BDHadMuMon::Index().

Referenced by TestCalibModule::Ana().

00038 {    
00039     for (int ind=0; ind<4; ++ind) {
00040         double x,y,w,h;
00041         BDHadMuMon* hmm = hm[ind];
00042 
00043         hmm->GetStats(x,y,w,h);
00044 
00045         cerr << "\t" << ind << ": "
00046              << hmm->GetTotalCharge()
00047              << " (" << x<<", " << y << "),["<< w<<", "<<h<<"]\n";
00048         continue;
00049         int nrowcol = hmm->GetNrowcol();
00050         cerr << "pC:";
00051         for (int xind=0; xind<nrowcol; ++xind) {
00052             cerr << "\t\t";
00053             for (int yind=0; yind<nrowcol; ++yind) {
00054                 double q = hmm->GetCharge(hmm->Index(hmm->Channel(xind+1,yind+1)));
00055                 cerr << Form("%7.4e ",q/Munits::picocoloumb);
00056             }
00057             cerr << endl;
00058         }
00059 
00060     }
00061 }

JOBMODULE TestCalibModule  ,
"BeamMonTestCalib"  ,
"Test calibrating the SWIC data." 
 


Generated on Mon Feb 15 11:08:13 2010 for loon by  doxygen 1.3.9.1