BDSwicPedAccessor.cxx File Reference

#include "BDSwicPedAccessor.h"
#include "BDDevices.h"
#include <Util/UtilBlockedRunningAverageVector.h>
#include <MessageService/MsgService.h>
#include <DatabaseInterface/DbiResultPtr.tpl>
#include <string>
#include <vector>
#include <cmath>

Go to the source code of this file.

Functions

 CVSID ("$Id: BDSwicPedAccessor.cxx,v 1.9 2006/05/27 07:31:45 rhatcher Exp $")
static bool is_profile_monitor (const char *name)
static void mask_high_peds (vector< double > &ped)

Variables

static const float max_profile_ped = 50.0

Function Documentation

CVSID ( "$Id: BDSwicPedAccessor.  cxx,
v 1.9 2006/05/27 07:31:45 rhatcher Exp $"   
)
static bool is_profile_monitor ( const char *  name  )  [static]

Definition at line 20 of file BDSwicPedAccessor.cxx.

References BDDevices::ProfileMonitors().

Referenced by BDSwicPedAccessor::AddDevice().

00021 {
00022     static const vector<string> pm_names =  BDDevices::ProfileMonitors();
00023     for (size_t ind=0; ind<pm_names.size(); ++ind) {
00024         if (pm_names[ind] == name) return true;
00025     }
00026     return false;
00027 }

static void mask_high_peds ( vector< double > &  ped  )  [static]

Definition at line 29 of file BDSwicPedAccessor.cxx.

References max_profile_ped.

Referenced by BDSwicPedAccessor::SetSpillTime().

00030 {
00031     for (int ind=0; ind<96; ++ind)
00032         if (fabs(ped[ind]) > max_profile_ped)
00033             ped[ind] = 0.0;
00034 }


Variable Documentation

const float max_profile_ped = 50.0 [static]

Definition at line 17 of file BDSwicPedAccessor.cxx.

Referenced by mask_high_peds().


Generated on 22 Jul 2018 for loon by  doxygen 1.6.1