CMS 3D CMS Logo

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

#include <PixelToLNKAssociateFromAscii.h>

Inheritance diagram for PixelToLNKAssociateFromAscii:
PixelToFEDAssociate

Public Types

typedef
PixelToFEDAssociate::CablingRocId 
CablingRocId
 
typedef
PixelToFEDAssociate::DetectorRocId 
DetectorRocId
 

Public Member Functions

virtual const CablingRocIdoperator() (const DetectorRocId &roc) const
 LNK id for module. More...
 
 PixelToLNKAssociateFromAscii (const std::string &fileName, const bool phase1=false)
 
virtual std::string version () const
 version More...
 
- Public Member Functions inherited from PixelToFEDAssociate
virtual int operator() (const PixelModuleName &) const
 FED id for module. More...
 
virtual ~PixelToFEDAssociate ()
 

Private Types

typedef TRange< int > Range
 

Private Member Functions

void addConnections (int fedId, int linkId, std::string module, Range rocDetIds)
 
void init (const std::string &fileName)
 initialisatin (read file) More...
 
Range readRange (const std::string &) const
 

Private Attributes

bool phase1_
 
std::vector< std::pair
< DetectorRocId, CablingRocId > > 
theConnection
 
std::string theVersion
 

Detailed Description

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

Definition at line 20 of file PixelToLNKAssociateFromAscii.h.

Member Typedef Documentation

Definition at line 23 of file PixelToLNKAssociateFromAscii.h.

Definition at line 24 of file PixelToLNKAssociateFromAscii.h.

Definition at line 34 of file PixelToLNKAssociateFromAscii.h.

Constructor & Destructor Documentation

PixelToLNKAssociateFromAscii::PixelToLNKAssociateFromAscii ( const std::string &  fileName,
const bool  phase1 = false 
)

Definition at line 14 of file PixelToLNKAssociateFromAscii.cc.

Member Function Documentation

void PixelToLNKAssociateFromAscii::addConnections ( int  fedId,
int  linkId,
std::string  module,
Range  rocDetIds 
)
private

Definition at line 135 of file PixelToLNKAssociateFromAscii.cc.

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

initialisatin (read file)

Definition at line 36 of file PixelToLNKAssociateFromAscii.cc.

const PixelToLNKAssociateFromAscii::CablingRocId * PixelToLNKAssociateFromAscii::operator() ( const DetectorRocId roc) const
virtual

LNK id for module.

Reimplemented from PixelToFEDAssociate.

Definition at line 23 of file PixelToLNKAssociateFromAscii.cc.

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

Definition at line 431 of file PixelToLNKAssociateFromAscii.cc.

std::string PixelToLNKAssociateFromAscii::version ( ) const
virtual

version

Implements PixelToFEDAssociate.

Definition at line 19 of file PixelToLNKAssociateFromAscii.cc.

Member Data Documentation

bool PixelToLNKAssociateFromAscii::phase1_
private

Definition at line 42 of file PixelToLNKAssociateFromAscii.h.

std::vector< std::pair<DetectorRocId,CablingRocId> > PixelToLNKAssociateFromAscii::theConnection
private

Definition at line 40 of file PixelToLNKAssociateFromAscii.h.

std::string PixelToLNKAssociateFromAscii::theVersion
private

Definition at line 39 of file PixelToLNKAssociateFromAscii.h.