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
PixelModuleName
Definition: PixelModuleName.h:12
PixelToLNKAssociateFromAscii::theConnection
std::vector< std::pair< DetectorRocId, CablingRocId > > theConnection
Definition: PixelToLNKAssociateFromAscii.h:39
PixelBarrelName
Definition: PixelBarrelName.h:16
PixelToLNKAssociateFromAscii::theVersion
std::string theVersion
Definition: PixelToLNKAssociateFromAscii.h:38
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
PixelToLNKAssociateFromAscii::operator()
const CablingRocId * operator()(const DetectorRocId &roc) const override
LNK id for module.
Definition: PixelToLNKAssociateFromAscii.cc:20
PVValHelper::phase1
Definition: PVValidationHelpers.h:80
PixelEndcapName
Definition: PixelEndcapName.h:16
PixelToFEDAssociate
Definition: PixelToFEDAssociate.h:13
TRange.h
PixelToLNKAssociateFromAscii::CablingRocId
PixelToFEDAssociate::CablingRocId CablingRocId
Definition: PixelToLNKAssociateFromAscii.h:22
TRange< int >
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelToLNKAssociateFromAscii::version
std::string version() const override
version
Definition: PixelToLNKAssociateFromAscii.cc:18
PixelToLNKAssociateFromAscii::Range
TRange< int > Range
Definition: PixelToLNKAssociateFromAscii.h:33
PixelToLNKAssociateFromAscii::PixelToLNKAssociateFromAscii
PixelToLNKAssociateFromAscii(const std::string &fileName, const bool phase1=false)
Definition: PixelToLNKAssociateFromAscii.cc:14
PixelToLNKAssociateFromAscii::addConnections
void addConnections(int fedId, int linkId, std::string module, Range rocDetIds)
Definition: PixelToLNKAssociateFromAscii.cc:126
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:88
PixelToLNKAssociateFromAscii
Definition: PixelToLNKAssociateFromAscii.h:20
PixelToLNKAssociateFromAscii::readRange
Range readRange(const std::string &) const
Definition: PixelToLNKAssociateFromAscii.cc:502
PixelToLNKAssociateFromAscii::init
void init(const std::string &fileName)
initialisatin (read file)
Definition: PixelToLNKAssociateFromAscii.cc:32
PixelToFEDAssociate::CablingRocId
Definition: PixelToFEDAssociate.h:15
PixelMapPlotter.roc
roc
Definition: PixelMapPlotter.py:498
PixelToFEDAssociate.h
PixelToFEDAssociate::DetectorRocId
Definition: PixelToFEDAssociate.h:20
PixelToLNKAssociateFromAscii::phase1_
bool phase1_
Definition: PixelToLNKAssociateFromAscii.h:41
PixelToLNKAssociateFromAscii::DetectorRocId
PixelToFEDAssociate::DetectorRocId DetectorRocId
Definition: PixelToLNKAssociateFromAscii.h:23