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:
24 
25  PixelToLNKAssociateFromAscii(const std::string& fileName, const bool phase1 = false);
26 
27  const CablingRocId* operator()(const DetectorRocId& roc) const override;
28 
30  std::string version() const override;
31 
32 private:
33  typedef TRange<int> Range;
34 
36  void init(const std::string& fileName);
37  void addConnections(int fedId, int linkId, std::string module, Range rocDetIds);
39  std::vector<std::pair<DetectorRocId, CablingRocId> > theConnection;
40  Range readRange(const std::string&) const;
41  bool phase1_; // signals phase1 detector
42 };
43 #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