CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
PixelToFEDAssociateFromAscii Class Reference

#include <PixelToFEDAssociateFromAscii.h>

Inheritance diagram for PixelToFEDAssociateFromAscii:
PixelToFEDAssociate

Classes

struct  Bdu
 
struct  Edu
 

Public Member Functions

virtual int operator() (const PixelModuleName &) const override
 FED id for module. More...
 
int operator() (const PixelBarrelName &) const
 FED id to which barrel modul (identified by name) should be assigned. More...
 
int operator() (const PixelEndcapName &) const
 FED id to which endcape modul (identified by name) should be assigned. More...
 
 PixelToFEDAssociateFromAscii (const std::string &fileName)
 
virtual std::string version () const override
 version More...
 
- Public Member Functions inherited from PixelToFEDAssociate
virtual const CablingRocIdoperator() (const DetectorRocId &roc) const
 LNK id for module. More...
 
virtual ~PixelToFEDAssociate ()
 

Private Types

typedef std::vector< std::pair
< int, std::vector< Bdu > > > 
BarrelConnections
 
typedef std::vector< std::pair
< int, std::vector< Edu > > > 
EndcapConnections
 
typedef TRange< int > Range
 

Private Member Functions

Bdu getBdu (std::string) const
 
Edu getEdu (std::string) const
 
void init (const std::string &fileName)
 initialisatin (read file) More...
 
Range readRange (const std::string &) const
 
void send (std::pair< int, std::vector< Bdu > > &, std::pair< int, std::vector< Edu > > &)
 initialisation (read input file) More...
 

Private Attributes

BarrelConnections theBarrel
 
EndcapConnections theEndcap
 
std::string theVersion
 

Detailed Description

Check to which FED pixel module belongs to. The associacions are read from the datafile

Definition at line 21 of file PixelToFEDAssociateFromAscii.h.

Member Typedef Documentation

typedef std::vector< std::pair< int, std::vector<Bdu> > > PixelToFEDAssociateFromAscii::BarrelConnections
private

Definition at line 54 of file PixelToFEDAssociateFromAscii.h.

typedef std::vector< std::pair< int, std::vector<Edu> > > PixelToFEDAssociateFromAscii::EndcapConnections
private

Definition at line 55 of file PixelToFEDAssociateFromAscii.h.

Definition at line 44 of file PixelToFEDAssociateFromAscii.h.

Constructor & Destructor Documentation

PixelToFEDAssociateFromAscii::PixelToFEDAssociateFromAscii ( const std::string &  fileName)

Definition at line 14 of file PixelToFEDAssociateFromAscii.cc.

Member Function Documentation

PixelToFEDAssociateFromAscii::Bdu PixelToFEDAssociateFromAscii::getBdu ( std::string  ) const
private

Definition at line 174 of file PixelToFEDAssociateFromAscii.cc.

PixelToFEDAssociateFromAscii::Edu PixelToFEDAssociateFromAscii::getEdu ( std::string  ) const
private

Definition at line 196 of file PixelToFEDAssociateFromAscii.cc.

void PixelToFEDAssociateFromAscii::init ( const std::string &  fileName)
private

initialisatin (read file)

Definition at line 63 of file PixelToFEDAssociateFromAscii.cc.

int PixelToFEDAssociateFromAscii::operator() ( const PixelModuleName id) const
overridevirtual

FED id for module.

Reimplemented from PixelToFEDAssociate.

Definition at line 22 of file PixelToFEDAssociateFromAscii.cc.

int PixelToFEDAssociateFromAscii::operator() ( const PixelBarrelName id) const

FED id to which barrel modul (identified by name) should be assigned.

Definition at line 29 of file PixelToFEDAssociateFromAscii.cc.

int PixelToFEDAssociateFromAscii::operator() ( const PixelEndcapName id) const

FED id to which endcape modul (identified by name) should be assigned.

Definition at line 46 of file PixelToFEDAssociateFromAscii.cc.

PixelToFEDAssociateFromAscii::Range PixelToFEDAssociateFromAscii::readRange ( const std::string &  ) const
private

Definition at line 215 of file PixelToFEDAssociateFromAscii.cc.

void PixelToFEDAssociateFromAscii::send ( std::pair< int, std::vector< Bdu > > &  b,
std::pair< int, std::vector< Edu > > &  e 
)
private

initialisation (read input file)

Definition at line 165 of file PixelToFEDAssociateFromAscii.cc.

std::string PixelToFEDAssociateFromAscii::version ( ) const
overridevirtual

version

Implements PixelToFEDAssociate.

Definition at line 17 of file PixelToFEDAssociateFromAscii.cc.

Member Data Documentation

BarrelConnections PixelToFEDAssociateFromAscii::theBarrel
private

Definition at line 56 of file PixelToFEDAssociateFromAscii.h.

EndcapConnections PixelToFEDAssociateFromAscii::theEndcap
private

Definition at line 57 of file PixelToFEDAssociateFromAscii.h.

std::string PixelToFEDAssociateFromAscii::theVersion
private

Definition at line 61 of file PixelToFEDAssociateFromAscii.h.