BMWriteHadMuRel Class Reference

#include <BeamMonFillerHelpers.h>

List of all members.

Public Member Functions

 BMWriteHadMuRel (VldRange range, const char *comment)
 ~BMWriteHadMuRel ()
void Write (const char *device_name, float channel_rel_calibs[], int nchan)

Private Attributes

BMWriteHadMuRelImpimp

Detailed Description

Definition at line 8 of file BeamMonFillerHelpers.h.


Constructor & Destructor Documentation

BMWriteHadMuRel::BMWriteHadMuRel ( VldRange  range,
const char *  comment 
)

Definition at line 24 of file BeamMonFillerHelpers.cxx.

00025     : imp(new BMWriteHadMuRelImp(range,comment))
00026 {
00027 
00028 }

BMWriteHadMuRel::~BMWriteHadMuRel (  ) 

Definition at line 29 of file BeamMonFillerHelpers.cxx.

References DbiWriter< T >::Close(), imp, Msg::kInfo, MSG, and BMWriteHadMuRelImp::writer.

00030 {
00031     MSG("BD",Msg::kInfo) << "Closing writer\n";
00032     imp->writer.Close();
00033     delete imp;
00034 }


Member Function Documentation

void BMWriteHadMuRel::Write ( const char *  device_name,
float  channel_rel_calibs[],
int  nchan 
)

Definition at line 36 of file BeamMonFillerHelpers.cxx.

References BeamMonSwicRel::GetChannels(), imp, Msg::kInfo, MSG, and BMWriteHadMuRelImp::writer.

00039 {
00040     BeamMonSwicRel had_row(device_name);
00041     vector<float> &channel = had_row.GetChannels();
00042     MSG("BD",Msg::kInfo) << device_name << endl;
00043     for (int ch=0; ch<96; ++ch) {
00044         int ind = ch-48;
00045         if (ch<48) ind = ch+48;
00046         if (ch<nchan)
00047             channel[ind] = channel_rel_calibs[ch];
00048         else
00049             channel[ind] = 0;
00050         MSG("BD",Msg::kInfo) << "[" << channel[ind] << "] ";
00051     }
00052 
00053     MSG("BD",Msg::kInfo) << "\nWriting\n";
00054     imp->writer << had_row;
00055 }


Member Data Documentation

Definition at line 10 of file BeamMonFillerHelpers.h.

Referenced by Write(), and ~BMWriteHadMuRel().


The documentation for this class was generated from the following files:

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1