CMS 3D CMS Logo

PixelToFEDAssociateFromAscii.h
Go to the documentation of this file.
1 #ifndef PixelToFEDAssociateFromAscii_H
2 #define PixelToFEDAssociateFromAscii_H
3 
9 #include <vector>
10 #include <string>
11 
14 
15 class PixelBarrelName;
16 class PixelEndcapName;
17 class PixelModuleName;
18 
20 public:
22 
24  int operator()(const PixelModuleName &) const override;
25 
27  std::string version() const override;
28 
30  int operator()(const PixelBarrelName &) const;
31 
33  int operator()(const PixelEndcapName &) const;
34 
35 private:
37  void init(const std::string &fileName);
38 
39  typedef TRange<int> Range;
40 
43  struct Bdu {
44  int b;
45  Range l, z, f;
46  bool operator()(const PixelBarrelName &) const;
47  };
48 
51  struct Edu {
52  int e;
53  Range d, b;
54  bool operator()(const PixelEndcapName &) const;
55  };
56 
57  typedef std::vector<std::pair<int, std::vector<Bdu> > > BarrelConnections;
58  typedef std::vector<std::pair<int, std::vector<Edu> > > EndcapConnections;
61 
62 private:
64 
66  void send(std::pair<int, std::vector<Bdu> > &, std::pair<int, std::vector<Edu> > &);
67  Bdu getBdu(std::string) const;
68  Edu getEdu(std::string) const;
69  Range readRange(const std::string &) const;
70 };
71 #endif
PixelToFEDAssociateFromAscii::Edu::operator()
bool operator()(const PixelEndcapName &) const
PixelModuleName
Definition: PixelModuleName.h:12
PixelToFEDAssociateFromAscii::Bdu::b
int b
Definition: PixelToFEDAssociateFromAscii.h:44
PixelToFEDAssociateFromAscii::send
void send(std::pair< int, std::vector< Bdu > > &, std::pair< int, std::vector< Edu > > &)
initialisation (read input file)
Definition: PixelToFEDAssociateFromAscii.cc:140
PixelToFEDAssociateFromAscii::Bdu::l
Range l
Definition: PixelToFEDAssociateFromAscii.h:45
PixelToFEDAssociateFromAscii::theEndcap
EndcapConnections theEndcap
Definition: PixelToFEDAssociateFromAscii.h:60
PixelBarrelName
Definition: PixelBarrelName.h:16
PixelToFEDAssociateFromAscii::Edu::d
Range d
Definition: PixelToFEDAssociateFromAscii.h:53
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
PixelToFEDAssociateFromAscii::Edu::e
int e
Definition: PixelToFEDAssociateFromAscii.h:52
PixelToFEDAssociateFromAscii::Bdu::z
Range z
Definition: PixelToFEDAssociateFromAscii.h:45
PixelToFEDAssociateFromAscii::Range
TRange< int > Range
Definition: PixelToFEDAssociateFromAscii.h:39
PixelToFEDAssociateFromAscii::getBdu
Bdu getBdu(std::string) const
Definition: PixelToFEDAssociateFromAscii.cc:149
PixelToFEDAssociateFromAscii::Edu::b
Range b
Definition: PixelToFEDAssociateFromAscii.h:53
PixelEndcapName
Definition: PixelEndcapName.h:16
PixelToFEDAssociateFromAscii::version
std::string version() const override
version
Definition: PixelToFEDAssociateFromAscii.cc:14
PixelToFEDAssociate
Definition: PixelToFEDAssociate.h:13
PixelToFEDAssociateFromAscii::operator()
int operator()(const PixelModuleName &) const override
FED id for module.
Definition: PixelToFEDAssociateFromAscii.cc:16
TRange.h
PixelToFEDAssociateFromAscii::theBarrel
BarrelConnections theBarrel
Definition: PixelToFEDAssociateFromAscii.h:59
PixelToFEDAssociateFromAscii::EndcapConnections
std::vector< std::pair< int, std::vector< Edu > > > EndcapConnections
Definition: PixelToFEDAssociateFromAscii.h:58
PixelToFEDAssociateFromAscii::readRange
Range readRange(const std::string &) const
Definition: PixelToFEDAssociateFromAscii.cc:192
PixelToFEDAssociateFromAscii::BarrelConnections
std::vector< std::pair< int, std::vector< Bdu > > > BarrelConnections
Definition: PixelToFEDAssociateFromAscii.h:57
TRange< int >
PixelToFEDAssociateFromAscii
Definition: PixelToFEDAssociateFromAscii.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PixelToFEDAssociateFromAscii::theVersion
std::string theVersion
Definition: PixelToFEDAssociateFromAscii.h:63
PixelToFEDAssociateFromAscii::Bdu::f
Range f
Definition: PixelToFEDAssociateFromAscii.h:45
PixelToFEDAssociateFromAscii::Bdu
Definition: PixelToFEDAssociateFromAscii.h:43
PixelToFEDAssociateFromAscii::Edu
Definition: PixelToFEDAssociateFromAscii.h:51
PixelToFEDAssociateFromAscii::PixelToFEDAssociateFromAscii
PixelToFEDAssociateFromAscii(const std::string &fileName)
Definition: PixelToFEDAssociateFromAscii.cc:13
PixelToFEDAssociateFromAscii::init
void init(const std::string &fileName)
initialisatin (read file)
Definition: PixelToFEDAssociateFromAscii.cc:44
PixelToFEDAssociate.h
PixelToFEDAssociateFromAscii::getEdu
Edu getEdu(std::string) const
Definition: PixelToFEDAssociateFromAscii.cc:173
PixelToFEDAssociateFromAscii::Bdu::operator()
bool operator()(const PixelBarrelName &) const