Functions
SimpleChannelNoiseDB.cxx File Reference
#include "WireCellSigProc/SimpleChannelNoiseDB.h"
#include "WireCellUtil/Response.h"
#include "WireCellUtil/Binning.h"
#include "WireCellUtil/NamedFactory.h"

Go to the source code of this file.

Functions

 WIRECELL_FACTORY (testChannelNoiseDB, WireCell::SigProc::SimpleChannelNoiseDB, WireCell::IChannelNoiseDatabase) using namespace WireCell
 
template<typename T >
void set_one (int ind, T val, std::vector< T > &vec, T def)
 

Function Documentation

template<typename T >
void set_one ( int  ind,
val,
std::vector< T > &  vec,
def 
)

Definition at line 237 of file SimpleChannelNoiseDB.cxx.

238 {
239  if (ind >= (int)vec.size()) {
240  vec.resize(ind+1, def);
241  }
242  vec[ind] = val;
243 }
WIRECELL_FACTORY ( testChannelNoiseDB  ,
WireCell::SigProc::SimpleChannelNoiseDB  ,
WireCell::IChannelNoiseDatabase   
)