CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
FTLDataFrameT< D, S, DECODE > Class Template Reference

Readout digi for HGC. More...

#include <FTLDataFrameT.h>

Public Types

typedef D key_type
 key to sort the collection More...
 

Public Member Functions

const int column () const
 column More...
 
 FTLDataFrameT ()
 CTOR. More...
 
 FTLDataFrameT (const D &id)
 
 FTLDataFrameT (const FTLDataFrameT &o)
 
const D & id () const
 det id More...
 
const Soperator[] (int i) const
 assess/set specific samples More...
 
void print (std::ostream &out=std::cout)
 
void resize (size_t s)
 allow to set size More...
 
const int row () const
 row More...
 
const Ssample (int i) const
 
void setSample (int i, const S &sample)
 
int size () const
 total number of samples in the digi More...
 

Private Attributes

std::vector< Sdata_
 
id_
 
size_t maxSampleSize_
 

Detailed Description

template<class D, class S, class DECODE>
class FTLDataFrameT< D, S, DECODE >

Readout digi for HGC.

Definition at line 14 of file FTLDataFrameT.h.

Member Typedef Documentation

◆ key_type

template<class D , class S , class DECODE >
typedef D FTLDataFrameT< D, S, DECODE >::key_type

key to sort the collection

Definition at line 19 of file FTLDataFrameT.h.

Constructor & Destructor Documentation

◆ FTLDataFrameT() [1/3]

template<class D , class S , class DECODE >
FTLDataFrameT< D, S, DECODE >::FTLDataFrameT ( )
inline

◆ FTLDataFrameT() [2/3]

template<class D , class S , class DECODE >
FTLDataFrameT< D, S, DECODE >::FTLDataFrameT ( const D &  id)
inline

◆ FTLDataFrameT() [3/3]

template<class D , class S , class DECODE >
FTLDataFrameT< D, S, DECODE >::FTLDataFrameT ( const FTLDataFrameT< D, S, DECODE > &  o)
inline

Definition at line 26 of file FTLDataFrameT.h.

26 : data_(o.data_), id_(o.id_), maxSampleSize_(o.maxSampleSize_) {}

Member Function Documentation

◆ column()

template<class D , class S , class DECODE >
const int FTLDataFrameT< D, S, DECODE >::column ( ) const
inline

◆ id()

template<class D , class S , class DECODE >
const D& FTLDataFrameT< D, S, DECODE >::id ( ) const
inline

◆ operator[]()

template<class D , class S , class DECODE >
const S& FTLDataFrameT< D, S, DECODE >::operator[] ( int  i) const
inline

assess/set specific samples

Definition at line 56 of file FTLDataFrameT.h.

56 { return data_[i]; }

References FTLDataFrameT< D, S, DECODE >::data_, and mps_fire::i.

◆ print()

template<class D , class S , class DECODE >
void FTLDataFrameT< D, S, DECODE >::print ( std::ostream &  out = std::cout)
inline

Definition at line 62 of file FTLDataFrameT.h.

62  {
63  for (size_t i = 0; i < data_.size(); i++) {
64  out << "[" << i << "] ";
65  data_[i].print(out);
66  }
67  }

References FTLDataFrameT< D, S, DECODE >::data_, mps_fire::i, and MillePedeFileConverter_cfg::out.

Referenced by BTLElectronicsSim::runTrivialShaper(), and ETLElectronicsSim::runTrivialShaper().

◆ resize()

template<class D , class S , class DECODE >
void FTLDataFrameT< D, S, DECODE >::resize ( size_t  s)
inline

allow to set size

Definition at line 51 of file FTLDataFrameT.h.

51 { data_.resize(s); }

References FTLDataFrameT< D, S, DECODE >::data_, and alignCSCRings::s.

Referenced by BTLElectronicsSim::updateOutput(), and ETLElectronicsSim::updateOutput().

◆ row()

template<class D , class S , class DECODE >
const int FTLDataFrameT< D, S, DECODE >::row ( ) const
inline

◆ sample()

template<class D , class S , class DECODE >
const S& FTLDataFrameT< D, S, DECODE >::sample ( int  i) const
inline

◆ setSample()

template<class D , class S , class DECODE >
void FTLDataFrameT< D, S, DECODE >::setSample ( int  i,
const S sample 
)
inline

◆ size()

template<class D , class S , class DECODE >
int FTLDataFrameT< D, S, DECODE >::size ( void  ) const
inline

total number of samples in the digi

Definition at line 46 of file FTLDataFrameT.h.

46 { return data_.size() & 0xf; }

References FTLDataFrameT< D, S, DECODE >::data_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and ETLElectronicsSim::updateOutput().

Member Data Documentation

◆ data_

template<class D , class S , class DECODE >
std::vector<S> FTLDataFrameT< D, S, DECODE >::data_
private

◆ id_

template<class D , class S , class DECODE >
D FTLDataFrameT< D, S, DECODE >::id_
private

◆ maxSampleSize_

template<class D , class S , class DECODE >
size_t FTLDataFrameT< D, S, DECODE >::maxSampleSize_
private

Definition at line 77 of file FTLDataFrameT.h.

Referenced by FTLDataFrameT< D, S, DECODE >::FTLDataFrameT().

mps_fire.i
i
Definition: mps_fire.py:428
FTLDataFrameT::id_
D id_
Definition: FTLDataFrameT.h:74
cuy.col
col
Definition: cuy.py:1010
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
alignCSCRings.s
s
Definition: alignCSCRings.py:92
FTLDataFrameT::sample
const S & sample(int i) const
Definition: FTLDataFrameT.h:57
FTLDataFrameT::maxSampleSize_
size_t maxSampleSize_
Definition: FTLDataFrameT.h:77
FTLDataFrameT::data_
std::vector< S > data_
Definition: FTLDataFrameT.h:71
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31