CMS 3D CMS Logo

EcalTrigPrimESProducer.h
Go to the documentation of this file.
1 #ifndef SimCalorimetry_EcalTrigPrimProducers_EcalTrigPrimESProducer_H
2 #define SimCalorimetry_EcalTrigPrimProducers_EcalTrigPrimESProducer_H
3 
4 // user include files
7 
10 
43 
44 #include "zlib.h"
45 
46 //
47 // class declaration
48 //
49 
51 public:
53  ~EcalTrigPrimESProducer() override;
54 
55  std::unique_ptr<EcalTPGPedestals>
57  std::unique_ptr<EcalTPGLinearizationConst>
59  std::unique_ptr<EcalTPGSlidingWindow>
61  std::unique_ptr<EcalTPGFineGrainEBIdMap>
63  std::unique_ptr<EcalTPGFineGrainStripEE>
65  std::unique_ptr<EcalTPGFineGrainTowerEE>
67  std::unique_ptr<EcalTPGLutIdMap> produceLUT(const EcalTPGLutIdMapRcd &);
68  std::unique_ptr<EcalTPGWeightIdMap>
70  std::unique_ptr<EcalTPGWeightGroup>
72  std::unique_ptr<EcalTPGLutGroup> produceLutGroup(const EcalTPGLutGroupRcd &);
73  std::unique_ptr<EcalTPGFineGrainEBGroup>
75  std::unique_ptr<EcalTPGPhysicsConst>
77  std::unique_ptr<EcalTPGCrystalStatus>
79  std::unique_ptr<EcalTPGStripStatus>
81  std::unique_ptr<EcalTPGTowerStatus>
83  std::unique_ptr<EcalTPGSpike> produceSpike(const EcalTPGSpikeRcd &);
84 
85 private:
86  void parseTextFile();
87  std::vector<int> getRange(int subdet, int smNb, int towerNbInSm,
88  int stripNbInTower = 0, int xtalNbInStrip = 0);
89 
90  // ----------member data ---------------------------
92  bool flagPrint_;
93  std::map<uint32_t, std::vector<uint32_t>> mapXtal_;
94  std::map<uint32_t, std::vector<uint32_t>> mapStrip_[2];
95  std::map<uint32_t, std::vector<uint32_t>> mapTower_[2];
96  std::map<uint32_t, std::vector<uint32_t>> mapWeight_;
97  std::map<uint32_t, std::vector<uint32_t>> mapFg_;
98  std::map<uint32_t, std::vector<uint32_t>> mapLut_;
99  std::map<uint32_t, std::vector<float>> mapPhys_;
100 
101  // typedef voidp gzFile;
102  // bool getNextString(gzFile &gzf);
103  // int converthex();
104  // char buf_[100];
105  // std::string bufString_;
106  // std::string sub_;
107  // int bufpos_;
108 };
109 
110 #endif
std::vector< int > getRange(int subdet, int smNb, int towerNbInSm, int stripNbInTower=0, int xtalNbInStrip=0)
std::unique_ptr< EcalTPGWeightGroup > produceWeightGroup(const EcalTPGWeightGroupRcd &)
std::unique_ptr< EcalTPGCrystalStatus > produceBadX(const EcalTPGCrystalStatusRcd &)
std::unique_ptr< EcalTPGLinearizationConst > produceLinearizationConst(const EcalTPGLinearizationConstRcd &)
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]
std::unique_ptr< EcalTPGFineGrainEBIdMap > produceFineGrainEB(const EcalTPGFineGrainEBIdMapRcd &)
std::unique_ptr< EcalTPGLutIdMap > produceLUT(const EcalTPGLutIdMapRcd &)
std::unique_ptr< EcalTPGTowerStatus > produceBadTT(const EcalTPGTowerStatusRcd &)
std::unique_ptr< EcalTPGPedestals > producePedestals(const EcalTPGPedestalsRcd &)
std::unique_ptr< EcalTPGPhysicsConst > producePhysicsConst(const EcalTPGPhysicsConstRcd &)
std::map< uint32_t, std::vector< uint32_t > > mapXtal_
std::unique_ptr< EcalTPGFineGrainTowerEE > produceFineGrainEEtower(const EcalTPGFineGrainTowerEERcd &)
std::unique_ptr< EcalTPGSpike > produceSpike(const EcalTPGSpikeRcd &)
std::map< uint32_t, std::vector< uint32_t > > mapWeight_
std::unique_ptr< EcalTPGSlidingWindow > produceSlidingWindow(const EcalTPGSlidingWindowRcd &)
std::unique_ptr< EcalTPGFineGrainEBGroup > produceFineGrainEBGroup(const EcalTPGFineGrainEBGroupRcd &)
EcalTrigPrimESProducer(const edm::ParameterSet &)
std::unique_ptr< EcalTPGLutGroup > produceLutGroup(const EcalTPGLutGroupRcd &)
std::map< uint32_t, std::vector< uint32_t > > mapFg_
std::map< uint32_t, std::vector< float > > mapPhys_
std::unique_ptr< EcalTPGFineGrainStripEE > produceFineGrainEEstrip(const EcalTPGFineGrainStripEERcd &)
std::unique_ptr< EcalTPGWeightIdMap > produceWeight(const EcalTPGWeightIdMapRcd &)
std::unique_ptr< EcalTPGStripStatus > produceBadStrip(const EcalTPGStripStatusRcd &)
std::map< uint32_t, std::vector< uint32_t > > mapLut_
std::map< uint32_t, std::vector< uint32_t > > mapStrip_[2]