CMS 3D CMS Logo

TkCommonMode Class Reference

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). More...

#include <CalibTracker/SiStripAPVAnalysis/interface/TkCommonMode.h>

List of all members.

Public Member Functions

std::vector< float > returnAsVector () const
 Return vector containing all the independent CM values in the APV.
void setCommonMode (std::vector< float > in)
 Set the independent CM values in the APV.
virtual void setTopology (TkCommonModeTopology *in)
virtual TkCommonModeTopologytopology ()
std::vector< float > toVector () const
 Return vector of dimension 128, with CM value on each strip.
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.

00015 {}


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.

Referenced by toVector().

00023 {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 theCommonMode.

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

00021 {theCommonMode = in;}

virtual void TkCommonMode::setTopology ( TkCommonModeTopology in  )  [inline, virtual]

Definition at line 18 of file TkCommonMode.h.

References myTkCommonModeTopology.

Referenced by ApvAnalysisFactory::constructAuxiliaryApvClasses().

00018 {myTkCommonModeTopology = in;}

virtual TkCommonModeTopology& TkCommonMode::topology (  )  [inline, virtual]

Definition at line 17 of file TkCommonMode.h.

References myTkCommonModeTopology.

Referenced by TT6CommonModeCalculator::calculateCommonMode(), ApvAnalysisFactory::deleteApv(), MedianCommonModeCalculator::doIt(), and TT6CommonModeCalculator::doIt().

00017 {return *myTkCommonModeTopology;}

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, myTkCommonModeTopology, TkCommonModeTopology::numberOfStrips(), returnAsVector(), TkCommonModeTopology::setOfStrip(), and pyDBSRunClass::temp.

00003                                            {
00004   vector<float> temp;
00005   for (int i=0; i<myTkCommonModeTopology->numberOfStrips(); i++){
00006     temp.push_back(returnAsVector()[myTkCommonModeTopology->setOfStrip(i)]);
00007   }
00008   return temp;
00009 }


Member Data Documentation

TkCommonModeTopology* TkCommonMode::myTkCommonModeTopology [private]

Definition at line 27 of file TkCommonMode.h.

Referenced by setTopology(), topology(), and toVector().

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

Definition at line 28 of file TkCommonMode.h.

Referenced by returnAsVector(), and setCommonMode().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:33:28 2009 for CMSSW by  doxygen 1.5.4