Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
novaddt::calib::HitMap< T, Dimension > Class Template Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-01-21/OnlineCalibration/HitMap.h"

Inheritance diagram for novaddt::calib::HitMap< T, Dimension >:

Public Member Functions

 HitMap ()
 
void reset ()
 
void Scale (T koeff)
 
Tat (novaddt::Plane plane, novaddt::Cell cell)
 access operators by plane&cell numbers More...
 
const Tat (novaddt::Plane plane, novaddt::Cell cell) const
 
Toperator() (novaddt::Plane plane, novaddt::Cell cell)
 
const Toperator() (novaddt::Plane plane, novaddt::Cell cell) const
 
Toperator[] (const novaddt::DAQHit &h)
 access operators by hit More...
 
const Toperator[] (const novaddt::DAQHit &h) const
 
const Toperator[] (size_t n)
 access operators by index More...
 

Static Public Member Functions

static size_t Nplanes ()
 
static size_t Ncells ()
 
static size_t Length ()
 

Public Attributes

std::array< T, Dimension::length > data
 

Detailed Description

template<typename T, typename Dimension>
class novaddt::calib::HitMap< T, Dimension >

Definition at line 17 of file HitMap.h.

Constructor & Destructor Documentation

template<typename T , typename Dimension >
novaddt::calib::HitMap< T, Dimension >::HitMap ( )
inline

Definition at line 32 of file HitMap.h.

32 { }

Member Function Documentation

template<typename T , typename Dimension >
T& novaddt::calib::HitMap< T, Dimension >::at ( novaddt::Plane  plane,
novaddt::Cell  cell 
)
inline

access operators by plane&cell numbers

Definition at line 44 of file HitMap.h.

References allTimeWatchdog::index, novaddt::Plane::val, and novaddt::Cell::val.

45  { return data[Dimension::index(plane.val,cell.val)]; }
value_type val
Definition: BaseProducts.h:109
const XML_Char const XML_Char * data
Definition: expat.h:268
value_type val
Definition: BaseProducts.h:84
template<typename T , typename Dimension >
const T& novaddt::calib::HitMap< T, Dimension >::at ( novaddt::Plane  plane,
novaddt::Cell  cell 
) const
inline

Definition at line 46 of file HitMap.h.

References allTimeWatchdog::index, novaddt::Plane::val, and novaddt::Cell::val.

47  { return data[Dimension::index(plane.val,cell.val)]; }
value_type val
Definition: BaseProducts.h:109
const XML_Char const XML_Char * data
Definition: expat.h:268
value_type val
Definition: BaseProducts.h:84
template<typename T , typename Dimension >
static size_t novaddt::calib::HitMap< T, Dimension >::Length ( )
inlinestatic

Definition at line 36 of file HitMap.h.

References demo0::length.

36 {return Dimension::length;}
length
Definition: demo0.py:21
template<typename T , typename Dimension >
static size_t novaddt::calib::HitMap< T, Dimension >::Ncells ( )
inlinestatic

Definition at line 35 of file HitMap.h.

Referenced by novaddt::Calibration::MakeNoiseHisto().

35 {return Dimension::NY;}
template<typename T , typename Dimension >
static size_t novaddt::calib::HitMap< T, Dimension >::Nplanes ( )
inlinestatic

Definition at line 34 of file HitMap.h.

Referenced by novaddt::Calibration::MakeNoiseHisto().

34 {return Dimension::NX;}
template<typename T , typename Dimension >
T& novaddt::calib::HitMap< T, Dimension >::operator() ( novaddt::Plane  plane,
novaddt::Cell  cell 
)
inline

Definition at line 49 of file HitMap.h.

50  { return at(plane,cell); }
T & at(novaddt::Plane plane, novaddt::Cell cell)
access operators by plane&cell numbers
Definition: HitMap.h:44
template<typename T , typename Dimension >
const T& novaddt::calib::HitMap< T, Dimension >::operator() ( novaddt::Plane  plane,
novaddt::Cell  cell 
) const
inline

Definition at line 52 of file HitMap.h.

53  { return at(plane,cell); }
T & at(novaddt::Plane plane, novaddt::Cell cell)
access operators by plane&cell numbers
Definition: HitMap.h:44
template<typename T , typename Dimension >
T& novaddt::calib::HitMap< T, Dimension >::operator[] ( const novaddt::DAQHit h)
inline

access operators by hit

Definition at line 55 of file HitMap.h.

References novaddt::DAQHit::Cell(), and novaddt::DAQHit::Plane().

56  { return at(h.Plane(),h.Cell()); }
novaddt::Plane const & Plane() const
Definition: DAQHit.h:70
novaddt::Cell const & Cell() const
Definition: DAQHit.h:71
T & at(novaddt::Plane plane, novaddt::Cell cell)
access operators by plane&cell numbers
Definition: HitMap.h:44
template<typename T , typename Dimension >
const T& novaddt::calib::HitMap< T, Dimension >::operator[] ( const novaddt::DAQHit h) const
inline

Definition at line 58 of file HitMap.h.

References novaddt::DAQHit::Cell(), and novaddt::DAQHit::Plane().

59  { return at(h.Plane(),h.Cell()); }
novaddt::Plane const & Plane() const
Definition: DAQHit.h:70
novaddt::Cell const & Cell() const
Definition: DAQHit.h:71
T & at(novaddt::Plane plane, novaddt::Cell cell)
access operators by plane&cell numbers
Definition: HitMap.h:44
template<typename T , typename Dimension >
const T& novaddt::calib::HitMap< T, Dimension >::operator[] ( size_t  n)
inline

access operators by index

Definition at line 61 of file HitMap.h.

References getGoodRuns4SAM::n.

61 {return data[n];}
const XML_Char const XML_Char * data
Definition: expat.h:268
template<typename T , typename Dimension >
void novaddt::calib::HitMap< T, Dimension >::reset ( )
inline

Definition at line 33 of file HitMap.h.

References stan::math::fill().

Referenced by novaddt::HotMapMaker::analyze(), novaddt::HotMapMaker::HotMapMaker(), novaddt::ChannelMapMaker::reset(), and novaddt::HotMapMaker::ResetMaps().

33 {std::fill(data.begin(),data.end(),0);}
const XML_Char const XML_Char * data
Definition: expat.h:268
void fill(std::vector< T > &x, const S &y)
Definition: fill.hpp:22
template<typename T , typename Dimension >
void novaddt::calib::HitMap< T, Dimension >::Scale ( T  koeff)
inline

scale the map contents (normalize to N events)

Definition at line 37 of file HitMap.h.

References d.

Referenced by novaddt::HotMapMaker::analyze(), novaddt::ChannelMapMaker::saveMap(), and novaddt::HotMapMaker::SaveMaps().

37  {
38  /// scale the map contents (normalize to N events)
39  for(auto &d:data){
40  d*=koeff;
41  }
42  }
const XML_Char const XML_Char * data
Definition: expat.h:268
Float_t d
Definition: plot.C:236

Member Data Documentation

template<typename T , typename Dimension >
std::array<T,Dimension::length> novaddt::calib::HitMap< T, Dimension >::data

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