CMS 3D CMS Logo

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  const CablingRocId * operator()(const DetectorRocId& roc) const override;
29 
31  std::string version() const override;
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)
std::vector< std::pair< DetectorRocId, CablingRocId > > theConnection
const CablingRocId * operator()(const DetectorRocId &roc) const override
LNK id for module.
std::string version() const override
version
PixelToFEDAssociate::DetectorRocId DetectorRocId
Range readRange(const std::string &) const
PixelToLNKAssociateFromAscii(const std::string &fileName, const bool phase1=false)
Definition: vlib.h:208