CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TkCommonMode Class Reference

#include <TkCommonMode.h>

Public Member Functions

std::vector< float > returnAsVector () const
 
void setCommonMode (const 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

◆ ~TkCommonMode()

virtual TkCommonMode::~TkCommonMode ( )
inlinevirtual

Definition at line 15 of file TkCommonMode.h.

15 {}

Member Function Documentation

◆ returnAsVector()

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.

23 { return theCommonMode; }

References theCommonMode.

◆ setCommonMode()

void TkCommonMode::setCommonMode ( const std::vector< float > &  in)
inline

Set the independent CM values in the APV

Definition at line 21 of file TkCommonMode.h.

21 { theCommonMode = in; }

References recoMuon::in, and theCommonMode.

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

◆ setTopology()

virtual void TkCommonMode::setTopology ( TkCommonModeTopology in)
inlinevirtual

◆ topology()

virtual TkCommonModeTopology& TkCommonMode::topology ( )
inlinevirtual

◆ toVector()

vector< float > TkCommonMode::toVector ( ) const

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

Definition at line 3 of file TkCommonMode.cc.

3  {
4  vector<float> temp;
5  for (int i = 0; i < myTkCommonModeTopology->numberOfStrips(); i++) {
7  }
8  return temp;
9 }

References mps_fire::i, and groupFilesInBlocks::temp.

Member Data Documentation

◆ myTkCommonModeTopology

TkCommonModeTopology* TkCommonMode::myTkCommonModeTopology
private

Definition at line 27 of file TkCommonMode.h.

Referenced by setTopology(), and topology().

◆ theCommonMode

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

Definition at line 28 of file TkCommonMode.h.

Referenced by returnAsVector(), and setCommonMode().

mps_fire.i
i
Definition: mps_fire.py:355
TkCommonModeTopology::setOfStrip
int setOfStrip(int)
Definition: TkCommonModeTopology.cc:3
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
recoMuon::in
Definition: RecoMuonEnumerators.h:6
TkCommonMode::theCommonMode
std::vector< float > theCommonMode
Definition: TkCommonMode.h:28
TkCommonMode::myTkCommonModeTopology
TkCommonModeTopology * myTkCommonModeTopology
Definition: TkCommonMode.h:27
TkCommonMode::returnAsVector
std::vector< float > returnAsVector() const
Definition: TkCommonMode.h:23
TkCommonModeTopology::numberOfStrips
int numberOfStrips() const
Definition: TkCommonModeTopology.h:19