test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelToLNKAssociateFromAscii.h
Go to the documentation of this file.
1 #ifndef PixelToLNKAssociateFromAscii_H
2 #define PixelToLNKAssociateFromAscii_H
3 
9 #include <vector>
10 #include <string>
11 #include <map>
12 
15 
16 class PixelBarrelName;
17 class PixelEndcapName;
18 class PixelModuleName;
19 
21 public:
22 
25 
26  PixelToLNKAssociateFromAscii(const std::string & fileName, const bool phase1=false);
27 
28  virtual const CablingRocId * operator()(const DetectorRocId& roc) const;
29 
31  virtual std::string version() const;
32 
33 private:
34  typedef TRange<int> Range;
35 
37  void init( const std::string & fileName);
38  void addConnections( int fedId, int linkId, std::string module, Range rocDetIds);
40  std::vector< std::pair<DetectorRocId,CablingRocId> > theConnection;
41  Range readRange( const std::string &) const;
42  bool phase1_; // signals phase1 detector
43 
44 };
45 #endif
void init(const std::string &fileName)
initialisatin (read file)
PixelToFEDAssociate::CablingRocId CablingRocId
void addConnections(int fedId, int linkId, std::string module, Range rocDetIds)
virtual const CablingRocId * operator()(const DetectorRocId &roc) const
LNK id for module.
std::vector< std::pair< DetectorRocId, CablingRocId > > theConnection
virtual std::string version() const
version
PixelToFEDAssociate::DetectorRocId DetectorRocId
Range readRange(const std::string &) const
PixelToLNKAssociateFromAscii(const std::string &fileName, const bool phase1=false)
Definition: vlib.h:208