GEMELMap

GEMStripMap

GEMVFatMap

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
#ifndef CondFormats_GEMObjects_GEMELMap_h
#define CondFormats_GEMObjects_GEMELMap_h

#include "CondFormats/Serialization/interface/Serializable.h"
#include <string>
#include <vector>

class GEMROmap;

class GEMELMap {
public:
  GEMELMap();
  explicit GEMELMap(const std::string& version);

  virtual ~GEMELMap();

  const std::string& version() const;
  void convert(GEMROmap& romap);
  void convertDummy(GEMROmap& romap);

  struct GEMVFatMap {
    int VFATmapTypeId;
    std::vector<int> vfat_position;
    std::vector<int> z_direction;
    std::vector<int> iEta;
    std::vector<int> iPhi;
    std::vector<int> depth;
    std::vector<int> vfatType;
    std::vector<uint16_t> vfatId;
    std::vector<uint16_t> amcId;
    std::vector<uint16_t> gebId;
    std::vector<int> sec;

    COND_SERIALIZABLE;
  };
  struct GEMStripMap {
    std::vector<int> vfatType;
    std::vector<int> vfatCh;
    std::vector<int> vfatStrip;

    COND_SERIALIZABLE;
  };

  std::vector<GEMVFatMap> theVFatMap_;
  std::vector<GEMStripMap> theStripMap_;

private:
  std::string theVersion;

  COND_SERIALIZABLE;

public:
  // size of ID bits
  static const int chipIdBits_ = 12;     // ID size from VFat
  static const int chipIdMask_ = 0xfff;  // chipId mask for 12 bits
  static const int gebIdBits_ = 5;       // ID size from GEB
  static const int maxGEBs_ = 24;        // 24 gebs per amc
  static const int maxVFatGE0_ = 12;     // vFat per eta partition, not known yet for ME0
  static const int maxVFatGE11_ = 3;     // vFat per eta partition in GE11
  static const int maxVFatGE21_ = 6;     // vFat per eta partition in GE21
  static const int maxChan_ = 128;       // channels per vFat
  static const int amcBX_ = 25;          // amc BX to get strip bx
};
#endif  // GEMELMap_H