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> producePedestals(const EcalTPGPedestalsRcd &);
56  std::unique_ptr<EcalTPGLinearizationConst> produceLinearizationConst(const EcalTPGLinearizationConstRcd &);
57  std::unique_ptr<EcalTPGSlidingWindow> produceSlidingWindow(const EcalTPGSlidingWindowRcd &);
58  std::unique_ptr<EcalTPGFineGrainEBIdMap> produceFineGrainEB(const EcalTPGFineGrainEBIdMapRcd &);
59  std::unique_ptr<EcalTPGFineGrainStripEE> produceFineGrainEEstrip(const EcalTPGFineGrainStripEERcd &);
60  std::unique_ptr<EcalTPGFineGrainTowerEE> produceFineGrainEEtower(const EcalTPGFineGrainTowerEERcd &);
61  std::unique_ptr<EcalTPGLutIdMap> produceLUT(const EcalTPGLutIdMapRcd &);
62  std::unique_ptr<EcalTPGWeightIdMap> produceWeight(const EcalTPGWeightIdMapRcd &);
63  std::unique_ptr<EcalTPGWeightGroup> produceWeightGroup(const EcalTPGWeightGroupRcd &);
64  std::unique_ptr<EcalTPGLutGroup> produceLutGroup(const EcalTPGLutGroupRcd &);
65  std::unique_ptr<EcalTPGFineGrainEBGroup> produceFineGrainEBGroup(const EcalTPGFineGrainEBGroupRcd &);
66  std::unique_ptr<EcalTPGPhysicsConst> producePhysicsConst(const EcalTPGPhysicsConstRcd &);
67  std::unique_ptr<EcalTPGCrystalStatus> produceBadX(const EcalTPGCrystalStatusRcd &);
68  std::unique_ptr<EcalTPGStripStatus> produceBadStrip(const EcalTPGStripStatusRcd &);
69  std::unique_ptr<EcalTPGTowerStatus> produceBadTT(const EcalTPGTowerStatusRcd &);
70  std::unique_ptr<EcalTPGSpike> produceSpike(const EcalTPGSpikeRcd &);
71 
72 private:
73  void parseTextFile();
74  std::vector<int> getRange(int subdet, int smNb, int towerNbInSm, int stripNbInTower = 0, int xtalNbInStrip = 0);
75 
76  // ----------member data ---------------------------
78  bool flagPrint_;
79  std::map<uint32_t, std::vector<uint32_t>> mapXtal_;
80  std::map<uint32_t, std::vector<uint32_t>> mapStrip_[2];
81  std::map<uint32_t, std::vector<uint32_t>> mapTower_[2];
82  std::map<uint32_t, std::vector<uint32_t>> mapWeight_;
83  std::map<uint32_t, std::vector<uint32_t>> mapFg_;
84  std::map<uint32_t, std::vector<uint32_t>> mapLut_;
85  std::map<uint32_t, std::vector<float>> mapPhys_;
86 
87  // typedef voidp gzFile;
88  // bool getNextString(gzFile &gzf);
89  // int converthex();
90  // char buf_[100];
91  // std::string bufString_;
92  // std::string sub_;
93  // int bufpos_;
94 };
95 
96 #endif
EcalTrigPrimESProducer::produceSpike
std::unique_ptr< EcalTPGSpike > produceSpike(const EcalTPGSpikeRcd &)
Definition: EcalTrigPrimESProducer.cc:291
EcalTrigPrimESProducer::produceFineGrainEBGroup
std::unique_ptr< EcalTPGFineGrainEBGroup > produceFineGrainEBGroup(const EcalTPGFineGrainEBGroupRcd &)
Definition: EcalTrigPrimESProducer.cc:226
EcalTPGLutGroupRcd.h
EcalTrigPrimESProducer::produceSlidingWindow
std::unique_ptr< EcalTPGSlidingWindow > produceSlidingWindow(const EcalTPGSlidingWindowRcd &)
Definition: EcalTrigPrimESProducer.cc:116
EcalTPGFineGrainTowerEERcd
Definition: EcalTPGFineGrainTowerEERcd.h:5
EcalTPGStripStatusRcd.h
EcalTrigPrimESProducer::produceFineGrainEEtower
std::unique_ptr< EcalTPGFineGrainTowerEE > produceFineGrainEEtower(const EcalTPGFineGrainTowerEERcd &)
Definition: EcalTrigPrimESProducer.cc:164
ESHandle.h
EcalTPGLinearizationConstRcd.h
EcalTrigPrimESProducer::EcalTrigPrimESProducer
EcalTrigPrimESProducer(const edm::ParameterSet &)
Definition: EcalTrigPrimESProducer.cc:52
EcalTPGSpikeRcd.h
EcalTPGCrystalStatusRcd
Definition: EcalTPGCrystalStatusRcd.h:5
EcalTPGFineGrainEBIdMap.h
EcalTrigPrimESProducer::produceLutGroup
std::unique_ptr< EcalTPGLutGroup > produceLutGroup(const EcalTPGLutGroupRcd &)
Definition: EcalTrigPrimESProducer.cc:214
ESProducer.h
EcalTPGPedestalsRcd
Definition: EcalTPGPedestalsRcd.h:5
EcalTPGCrystalStatusRcd.h
EcalTrigPrimESProducer::mapPhys_
std::map< uint32_t, std::vector< float > > mapPhys_
Definition: EcalTrigPrimESProducer.h:85
EcalTrigPrimESProducer::mapLut_
std::map< uint32_t, std::vector< uint32_t > > mapLut_
Definition: EcalTrigPrimESProducer.h:84
EcalTrigPrimESProducer::mapWeight_
std::map< uint32_t, std::vector< uint32_t > > mapWeight_
Definition: EcalTrigPrimESProducer.h:82
EcalTPGFineGrainStripEERcd
Definition: EcalTPGFineGrainStripEERcd.h:5
EcalTPGFineGrainTowerEE.h
EcalTrigPrimESProducer::~EcalTrigPrimESProducer
~EcalTrigPrimESProducer() override
Definition: EcalTrigPrimESProducer.cc:76
EcalTPGFineGrainStripEE.h
EcalTPGStripStatusRcd
Definition: EcalTPGStripStatusRcd.h:5
EcalTPGSpike.h
EcalTPGLutIdMap.h
EcalTrigPrimESProducer::mapFg_
std::map< uint32_t, std::vector< uint32_t > > mapFg_
Definition: EcalTrigPrimESProducer.h:83
EcalTrigPrimESProducer::getRange
std::vector< int > getRange(int subdet, int smNb, int towerNbInSm, int stripNbInTower=0, int xtalNbInStrip=0)
Definition: EcalTrigPrimESProducer.cc:681
EcalTPGSpikeRcd
Definition: EcalTPGSpikeRcd.h:5
EcalTPGFineGrainEBGroupRcd
Definition: EcalTPGFineGrainEBGroupRcd.h:5
EcalTPGWeightIdMapRcd.h
EcalTrigPrimESProducer::produceBadStrip
std::unique_ptr< EcalTPGStripStatus > produceBadStrip(const EcalTPGStripStatusRcd &)
Definition: EcalTrigPrimESProducer.cc:267
EcalTPGSlidingWindowRcd.h
EcalTPGFineGrainEBGroupRcd.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalTPGWeightGroup.h
EcalTrigPrimESProducer::mapStrip_
std::map< uint32_t, std::vector< uint32_t > > mapStrip_[2]
Definition: EcalTrigPrimESProducer.h:80
EcalTPGLutGroup.h
EcalTrigPrimESProducer::produceFineGrainEEstrip
std::unique_ptr< EcalTPGFineGrainStripEE > produceFineGrainEEstrip(const EcalTPGFineGrainStripEERcd &)
Definition: EcalTrigPrimESProducer.cc:142
EcalTrigPrimESProducer::produceWeightGroup
std::unique_ptr< EcalTPGWeightGroup > produceWeightGroup(const EcalTPGWeightGroupRcd &)
Definition: EcalTrigPrimESProducer.cc:202
edm::ParameterSet
Definition: ParameterSet.h:47
EcalTrigPrimESProducer::produceWeight
std::unique_ptr< EcalTPGWeightIdMap > produceWeight(const EcalTPGWeightIdMapRcd &)
Definition: EcalTrigPrimESProducer.cc:190
EcalTPGLinearizationConst.h
EcalTPGFineGrainEBIdMapRcd
Definition: EcalTPGFineGrainEBIdMapRcd.h:5
EcalTrigPrimESProducer::parseTextFile
void parseTextFile()
Definition: EcalTrigPrimESProducer.cc:302
EcalTPGFineGrainEBGroup.h
EcalTrigPrimESProducer::produceLinearizationConst
std::unique_ptr< EcalTPGLinearizationConst > produceLinearizationConst(const EcalTPGLinearizationConstRcd &)
Definition: EcalTrigPrimESProducer.cc:98
EcalTPGPedestals.h
EcalTPGStripStatus.h
EcalTrigPrimESProducer::produceLUT
std::unique_ptr< EcalTPGLutIdMap > produceLUT(const EcalTPGLutIdMapRcd &)
Definition: EcalTrigPrimESProducer.cc:175
EcalTPGTowerStatus.h
EcalTrigPrimESProducer::dbFilename_
std::string dbFilename_
Definition: EcalTrigPrimESProducer.h:77
EcalTPGFineGrainEBIdMapRcd.h
EcalTPGFineGrainTowerEERcd.h
EcalTPGWeightGroupRcd
Definition: EcalTPGWeightGroupRcd.h:5
EcalTrigPrimESProducer::mapTower_
std::map< uint32_t, std::vector< uint32_t > > mapTower_[2]
Definition: EcalTrigPrimESProducer.h:81
EcalTrigPrimESProducer::produceBadX
std::unique_ptr< EcalTPGCrystalStatus > produceBadX(const EcalTPGCrystalStatusRcd &)
Definition: EcalTrigPrimESProducer.cc:255
EcalTPGLutIdMapRcd
Definition: EcalTPGLutIdMapRcd.h:5
ModuleFactory.h
EcalTPGSlidingWindow.h
EcalTPGWeightIdMapRcd
Definition: EcalTPGWeightIdMapRcd.h:5
EcalTPGSlidingWindowRcd
Definition: EcalTPGSlidingWindowRcd.h:5
EcalTPGLutIdMapRcd.h
EcalTrigPrimESProducer::mapXtal_
std::map< uint32_t, std::vector< uint32_t > > mapXtal_
Definition: EcalTrigPrimESProducer.h:79
EcalTrigPrimESProducer::produceBadTT
std::unique_ptr< EcalTPGTowerStatus > produceBadTT(const EcalTPGTowerStatusRcd &)
Definition: EcalTrigPrimESProducer.cc:273
EcalTPGCrystalStatus.h
EcalTPGTowerStatusRcd.h
EcalTPGWeightGroupRcd.h
EcalTrigPrimESProducer::producePhysicsConst
std::unique_ptr< EcalTPGPhysicsConst > producePhysicsConst(const EcalTPGPhysicsConstRcd &)
Definition: EcalTrigPrimESProducer.cc:237
EcalTPGPhysicsConst.h
EcalTrigPrimESProducer
Definition: EcalTrigPrimESProducer.h:50
edm::ESProducer
Definition: ESProducer.h:104
EcalTrigPrimESProducer::producePedestals
std::unique_ptr< EcalTPGPedestals > producePedestals(const EcalTPGPedestalsRcd &)
Definition: EcalTrigPrimESProducer.cc:84
EcalTPGPedestalsRcd.h
ParameterSet.h
EcalTPGLutGroupRcd
Definition: EcalTPGLutGroupRcd.h:5
EcalTPGPhysicsConstRcd.h
EcalTrigPrimESProducer::produceFineGrainEB
std::unique_ptr< EcalTPGFineGrainEBIdMap > produceFineGrainEB(const EcalTPGFineGrainEBIdMapRcd &)
Definition: EcalTrigPrimESProducer.cc:129
EcalTPGTowerStatusRcd
Definition: EcalTPGTowerStatusRcd.h:5
EcalTPGLinearizationConstRcd
Definition: EcalTPGLinearizationConstRcd.h:5
EcalTPGPhysicsConstRcd
Definition: EcalTPGPhysicsConstRcd.h:5
EcalTPGWeightIdMap.h
EcalTPGFineGrainStripEERcd.h
EcalTrigPrimESProducer::flagPrint_
bool flagPrint_
Definition: EcalTrigPrimESProducer.h:78