CMS 3D CMS Logo

Public Member Functions | Private Attributes

TkCommonMode Class Reference

#include <TkCommonMode.h>

List of all members.

Public Member Functions

std::vector< float > returnAsVector () const
void setCommonMode (std::vector< float > in)
virtual void setTopology (TkCommonModeTopology *in)
virtual TkCommonModeTopologytopology ()
std::vector< float > toVector () const
virtual ~TkCommonMode ()

Private Attributes

TkCommonModeTopologymyTkCommonModeTopology
std::vector< float > theCommonMode

Detailed Description

A common mode class which can work with any common mode topology, where the topology refers to the number of strips for which a common mode value is calculed (128 or less). Currently quite slow....

Definition at line 13 of file TkCommonMode.h.


Constructor & Destructor Documentation

virtual TkCommonMode::~TkCommonMode ( ) [inline, virtual]

Definition at line 15 of file TkCommonMode.h.

{}

Member Function Documentation

std::vector<float> TkCommonMode::returnAsVector ( ) const [inline]

Return vector containing all the independent CM values in the APV.

Definition at line 23 of file TkCommonMode.h.

References theCommonMode.

{return theCommonMode;}
void TkCommonMode::setCommonMode ( std::vector< float >  in) [inline]

Set the independent CM values in the APV

Definition at line 21 of file TkCommonMode.h.

References recoMuon::in, and theCommonMode.

Referenced by MedianCommonModeCalculator::setCM(), and TT6CommonModeCalculator::setCM().

virtual void TkCommonMode::setTopology ( TkCommonModeTopology in) [inline, virtual]
virtual TkCommonModeTopology& TkCommonMode::topology ( ) [inline, virtual]
vector< float > TkCommonMode::toVector ( ) const

Return vector of dimension 128, with CM value on each strip

Definition at line 3 of file TkCommonMode.cc.

References i, and groupFilesInBlocks::temp.

                                           {
  vector<float> temp;
  for (int i=0; i<myTkCommonModeTopology->numberOfStrips(); i++){
    temp.push_back(returnAsVector()[myTkCommonModeTopology->setOfStrip(i)]);
  }
  return temp;
}

Member Data Documentation

Definition at line 27 of file TkCommonMode.h.

Referenced by setTopology(), and topology().

std::vector<float> TkCommonMode::theCommonMode [private]

Definition at line 28 of file TkCommonMode.h.

Referenced by returnAsVector(), and setCommonMode().