CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalTPCondAnalyzer Class Reference

#include <EcalTPCondAnalyzer.h>

Inheritance diagram for EcalTPCondAnalyzer:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &) override
 
virtual void beginJob ()
 
void beginRun (const edm::Run &run, const edm::EventSetup &es) override
 
 EcalTPCondAnalyzer (const edm::ParameterSet &)
 
virtual void endJob ()
 
 ~EcalTPCondAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

unsigned long long getRecords (edm::EventSetup const &setup)
 
void printBadStrip (const EcalTPGStripStatus *ecaltpgBadStrip) const
 
void printBadTT (const EcalTPGTowerStatus *ecaltpgBadTT) const
 
void printBadX (const EcalTPGCrystalStatus *ecaltpgBadX) const
 
void printComment () const
 
void printCRYSTAL (const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin)
 
void printEcalTPGFineGrainEBIdMap (const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB) const
 
void printEcalTPGLutIdMap (const EcalTPGLutIdMap *ecaltpgLut) const
 
void printEcalTPGPhysicsConst (const EcalTPGPhysicsConst *) const
 
void printSpikeTh (const EcalTPGSpike *ecaltpgSpike) const
 
void printSTRIP (const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE) const
 
void printTOWEREB (const EcalTPGSpike *ecaltpgSpike, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup) const
 
void printTOWEREE (const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGLutGroup *ecaltpgLutGroup) const
 
void printWEIGHT (const EcalTPGWeightIdMap *ecaltpgWeightMap) const
 

Private Attributes

unsigned long long cacheID_
 
const CaloSubdetectorGeometrytheBarrelGeometry_
 
const CaloSubdetectorGeometrytheEndcapGeometry_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Description: prints the TPG conditions coming from the conditions DB Prints in exactly the same format as TPG.txt, such that a "diff" is possible.

Definition at line 55 of file EcalTPCondAnalyzer.h.

Constructor & Destructor Documentation

EcalTPCondAnalyzer::EcalTPCondAnalyzer ( const edm::ParameterSet iConfig)
explicit

Definition at line 55 of file EcalTPCondAnalyzer.cc.

57 {}
EcalTPCondAnalyzer::~EcalTPCondAnalyzer ( )

Definition at line 75 of file EcalTPCondAnalyzer.cc.

75  {
76 }

Member Function Documentation

void EcalTPCondAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overridevirtual

Implements edm::EDAnalyzer.

Definition at line 179 of file EcalTPCondAnalyzer.cc.

179  {
180 }
void EcalTPCondAnalyzer::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 71 of file EcalTPCondAnalyzer.cc.

72 {}
void EcalTPCondAnalyzer::beginRun ( const edm::Run run,
const edm::EventSetup es 
)
overridevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 59 of file EcalTPCondAnalyzer.cc.

References cacheID_, edm::EventSetup::get(), getRecords(), theBarrelGeometry_, and theEndcapGeometry_.

59  {
60  // get geometry
61 
62  edm::ESHandle<CaloSubdetectorGeometry> theEndcapGeometry_handle, theBarrelGeometry_handle;
63  evtSetup.get<EcalEndcapGeometryRecord>().get("EcalEndcap",theEndcapGeometry_handle);
64  evtSetup.get<EcalBarrelGeometryRecord>().get("EcalBarrel",theBarrelGeometry_handle);
65  theEndcapGeometry_ = &(*theEndcapGeometry_handle);
66  theBarrelGeometry_ = &(*theBarrelGeometry_handle);
67 
68  cacheID_=this->getRecords(evtSetup);
69 }
const CaloSubdetectorGeometry * theBarrelGeometry_
const CaloSubdetectorGeometry * theEndcapGeometry_
unsigned long long cacheID_
unsigned long long getRecords(edm::EventSetup const &setup)
void EcalTPCondAnalyzer::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 183 of file EcalTPCondAnalyzer.cc.

183  {
184 }
unsigned long long EcalTPCondAnalyzer::getRecords ( edm::EventSetup const &  setup)
private

Definition at line 78 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, edm::EventSetup::get(), printComment(), printCRYSTAL(), printEcalTPGFineGrainEBIdMap(), printEcalTPGLutIdMap(), printEcalTPGPhysicsConst(), printSTRIP(), printTOWEREB(), printTOWEREE(), printWEIGHT(), and edm::ESHandle< class >::product().

Referenced by beginRun().

78  {
79  //
80  // get Eventsetup records and print them
81  //
82  printComment();
83 
84  edm::ESHandle<EcalTPGPhysicsConst> theEcalTPGPhysConst_handle;
85  setup.get<EcalTPGPhysicsConstRcd>().get(theEcalTPGPhysConst_handle);
86  const EcalTPGPhysicsConst * ecaltpPhysConst = theEcalTPGPhysConst_handle.product();
87  printEcalTPGPhysicsConst(ecaltpPhysConst);
88  // for EcalFenixStrip...
89 
90  // get parameter records for xtals
91  edm::ESHandle<EcalTPGLinearizationConst> theEcalTPGLinearization_handle;
92  setup.get<EcalTPGLinearizationConstRcd>().get(theEcalTPGLinearization_handle);
93  const EcalTPGLinearizationConst * ecaltpLin = theEcalTPGLinearization_handle.product();
94 
95  edm::ESHandle<EcalTPGPedestals> theEcalTPGPedestals_handle;
96  setup.get<EcalTPGPedestalsRcd>().get(theEcalTPGPedestals_handle);
97  const EcalTPGPedestals * ecaltpPed = theEcalTPGPedestals_handle.product();
98  printCRYSTAL(ecaltpPed,ecaltpLin );
99 
100 
101  //weight
102  edm::ESHandle<EcalTPGWeightIdMap> theEcalTPGWEightIdMap_handle;
103  setup.get<EcalTPGWeightIdMapRcd>().get(theEcalTPGWEightIdMap_handle);
104  const EcalTPGWeightIdMap * ecaltpgWeightMap = theEcalTPGWEightIdMap_handle.product();
105  printWEIGHT(ecaltpgWeightMap);
106 
107  // .. and for EcalFenixTcp
108 
109  edm::ESHandle<EcalTPGFineGrainEBIdMap> theEcalTPGFineGrainEBIdMap_handle;
110  setup.get<EcalTPGFineGrainEBIdMapRcd>().get(theEcalTPGFineGrainEBIdMap_handle);
111  const EcalTPGFineGrainEBIdMap * ecaltpgFineGrainEB = theEcalTPGFineGrainEBIdMap_handle.product();
112  printEcalTPGFineGrainEBIdMap(ecaltpgFineGrainEB);
113 
114 
115  edm::ESHandle<EcalTPGLutIdMap> theEcalTPGLutIdMap_handle;
116  setup.get<EcalTPGLutIdMapRcd>().get(theEcalTPGLutIdMap_handle);
117  const EcalTPGLutIdMap * ecaltpgLut = theEcalTPGLutIdMap_handle.product();
118  printEcalTPGLutIdMap(ecaltpgLut);
119 
120  //for strips
121  edm::ESHandle<EcalTPGSlidingWindow> theEcalTPGSlidingWindow_handle;
122  setup.get<EcalTPGSlidingWindowRcd>().get(theEcalTPGSlidingWindow_handle);
123  const EcalTPGSlidingWindow * ecaltpgSlidW = theEcalTPGSlidingWindow_handle.product();
124  edm::ESHandle<EcalTPGFineGrainStripEE> theEcalTPGFineGrainStripEE_handle;
125  setup.get<EcalTPGFineGrainStripEERcd>().get(theEcalTPGFineGrainStripEE_handle);
126  const EcalTPGFineGrainStripEE * ecaltpgFgStripEE = theEcalTPGFineGrainStripEE_handle.product();
127  edm::ESHandle<EcalTPGWeightGroup> theEcalTPGWEightGroup_handle;
128  setup.get<EcalTPGWeightGroupRcd>().get(theEcalTPGWEightGroup_handle);
129  const EcalTPGWeightGroup * ecaltpgWeightGroup = theEcalTPGWEightGroup_handle.product();
130  printSTRIP(ecaltpgSlidW,ecaltpgWeightGroup,ecaltpgFgStripEE);
131 
132  // get parameter records for towers
133  edm::ESHandle<EcalTPGLutGroup> theEcalTPGLutGroup_handle;
134  setup.get<EcalTPGLutGroupRcd>().get(theEcalTPGLutGroup_handle);
135  const EcalTPGLutGroup * ecaltpgLutGroup = theEcalTPGLutGroup_handle.product();
136 
137  edm::ESHandle<EcalTPGFineGrainEBGroup> theEcalTPGFineGrainEBGroup_handle;
138  setup.get<EcalTPGFineGrainEBGroupRcd>().get(theEcalTPGFineGrainEBGroup_handle);
139  const EcalTPGFineGrainEBGroup * ecaltpgFgEBGroup = theEcalTPGFineGrainEBGroup_handle.product();
140  edm::ESHandle<EcalTPGSpike> theEcalTPGSpike_handle;
141  setup.get<EcalTPGSpikeRcd>().get(theEcalTPGSpike_handle);
142  const EcalTPGSpike * ecaltpgSpikeTh = theEcalTPGSpike_handle.product();
143 
144  printTOWEREB(ecaltpgSpikeTh, ecaltpgFgEBGroup,ecaltpgLutGroup);
145  edm::ESHandle<EcalTPGFineGrainTowerEE> theEcalTPGFineGrainTowerEE_handle;
146  setup.get<EcalTPGFineGrainTowerEERcd>().get(theEcalTPGFineGrainTowerEE_handle);
147  const EcalTPGFineGrainTowerEE * ecaltpgFineGrainTowerEE = theEcalTPGFineGrainTowerEE_handle.product();
148 
149  printTOWEREE(ecaltpgFineGrainTowerEE, ecaltpgLutGroup);
150 
151  // get parameters for BadX
152 /* edm::ESHandle<EcalTPGCrystalStatus> theEcalTPGCrystalStatus_handle;
153  setup.get<EcalTPGCrystalStatusRcd>().get(theEcalTPGCrystalStatus_handle);
154  const EcalTPGCrystalStatus * ecaltpgBadX = theEcalTPGCrystalStatus_handle.product();
155  printBadX(ecaltpgBadX);
156 
157  // get parameters for BadTT
158  edm::ESHandle<EcalTPGTowerStatus> theEcalTPGTowerStatus_handle;
159  setup.get<EcalTPGTowerStatusRcd>().get(theEcalTPGTowerStatus_handle);
160  const EcalTPGTowerStatus * ecaltpgBadTT = theEcalTPGTowerStatus_handle.product();
161  printBadTT(ecaltpgBadTT);
162 */
163 
164  // get parameters for BadStrip
165 /* edm::ESHandle<EcalTPGStripStatus> theEcalTPGStripStatus_handle;
166  setup.get<EcalTPGStripStatusRcd>().get(theEcalTPGStripStatus_handle);
167  const EcalTPGStripStatus * ecaltpgBadStrip = theEcalTPGStripStatus_handle.product();
168  printBadStrip(ecaltpgBadStrip);
169 */
170 
171 
172  std::cout<<"EOF"<<std::endl;
173 
174  return setup.get<EcalTPGFineGrainTowerEERcd>().cacheIdentifier();
175 }
void printEcalTPGLutIdMap(const EcalTPGLutIdMap *ecaltpgLut) const
void printSTRIP(const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE) const
void printWEIGHT(const EcalTPGWeightIdMap *ecaltpgWeightMap) const
void printEcalTPGFineGrainEBIdMap(const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB) const
void printTOWEREB(const EcalTPGSpike *ecaltpgSpike, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup) const
void printComment() const
void printTOWEREE(const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGLutGroup *ecaltpgLutGroup) const
void printCRYSTAL(const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin)
T const * product() const
Definition: ESHandle.h:62
void printEcalTPGPhysicsConst(const EcalTPGPhysicsConst *) const
tuple cout
Definition: gather_cfg.py:121
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
void EcalTPCondAnalyzer::printBadStrip ( const EcalTPGStripStatus ecaltpgBadStrip) const
private
void EcalTPCondAnalyzer::printBadTT ( const EcalTPGTowerStatus ecaltpgBadTT) const
private
void EcalTPCondAnalyzer::printBadX ( const EcalTPGCrystalStatus ecaltpgBadX) const
private
void EcalTPCondAnalyzer::printComment ( ) const
private

Definition at line 316 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout.

Referenced by getRecords().

316  {
317  std::cout<<"COMMENT put your comments here\n"<<
318  "COMMENT =================================\n"<<
319  "COMMENT physics EB structure\n"<<
320  "COMMENT\n"<<
321  "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
322  "COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), FG_lowRatio, FG_highRatio\n"<<
323  "COMMENT =================================\n"<<
324  "COMMENT\n"<<
325  "COMMENT =================================\n"<<
326  "COMMENT physics EE structure\n"<<
327  "COMMENT\n"<<
328  "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), ttf_threshold_High (GeV)\n"<<
329  "COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n"<<
330  "COMMENT =================================\n"<<
331  "COMMENT\n"<<
332  "COMMENT =================================\n"<<
333  "COMMENT crystal structure (same for EB and EE)\n"<<
334  "COMMENT\n"<<
335  "COMMENT ped, mult, shift [gain12]\n"<<
336  "COMMENT ped, mult, shift [gain6]\n"<<
337  "COMMENT ped, mult, shift [gain1]\n"<<
338  "COMMENT =================================\n"<<
339  "COMMENT\n"<<
340  "COMMENT =================================\n"<<
341  "COMMENT strip EB structure\n"<<
342  "COMMENT\n"<<
343  "COMMENT sliding_window\n"<<
344  "COMMENT weightGroupId\n"<<
345  "COMMENT threshold_sfg lut_sfg\n"<<
346  "COMMENT =================================\n"<<
347  "COMMENT\n"<<
348  "COMMENT =================================\n"<<
349  "COMMENT strip EE structure\n"<<
350  "COMMENT\n"<<
351  "COMMENT sliding_window\n"<<
352  "COMMENT weightGroupId\n"<<
353  "COMMENT threshold_fg lut_fg\n"<<
354  "COMMENT =================================\n"<<
355  "COMMENT\n"<<
356  "COMMENT =================================\n"<<
357  "COMMENT tower EB structure\n"<<
358  "COMMENT\n"<<
359  "COMMENT LUTGroupId\n"<<
360  "COMMENT FgGroupId\n"<<
361  "COMMENT spike_killing_threshold\n"<<
362  "COMMENT =================================\n"<<
363  "COMMENT\n"<<
364  "COMMENT =================================\n"<<
365  "COMMENT tower EE structure\n"<<
366  "COMMENT\n"<<
367  "COMMENT LUTGroupId\n"<<
368  "COMMENT tower_lut_fg\n"<<
369  "COMMENT =================================\n"<<
370  "COMMENT\n"<<
371  "COMMENT =================================\n"<<
372  "COMMENT Weight structure\n"<<
373  "COMMENT\n"<<
374  "COMMENT weightGroupId\n"<<
375  "COMMENT w0, w1, w2, w3, w4\n"<<
376  "COMMENT =================================\n"<<
377  "COMMENT\n"<<
378  "COMMENT =================================\n"<<
379  "COMMENT lut structure\n"<<
380  "COMMENT\n"<<
381  "COMMENT LUTGroupId\n"<<
382  "COMMENT LUT[1-1024]\n"<<
383  "COMMENT =================================\n"<<
384  "COMMENT\n"<<
385  "COMMENT =================================\n"<<
386  "COMMENT fg EB structure\n"<<
387  "COMMENT\n"<<
388  "COMMENT FgGroupId\n"<<
389  "COMMENT el, eh, tl, th, lut_fg\n"<<
390  "COMMENT =================================\n"<<
391  "COMMENT"<<std::endl;
392 }
tuple cout
Definition: gather_cfg.py:121
void EcalTPCondAnalyzer::printCRYSTAL ( const EcalTPGPedestals ecaltpPed,
const EcalTPGLinearizationConst ecaltpLin 
)
private

Definition at line 285 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, DetId::Ecal, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::getMap(), CaloSubdetectorGeometry::getValidDetIds(), EBDataFrame::id(), EcalTPGPedestal::mean_x1, EcalTPGPedestal::mean_x12, EcalTPGPedestal::mean_x6, EcalTPGLinearizationConstant::mult_x1, EcalTPGLinearizationConstant::mult_x12, EcalTPGLinearizationConstant::mult_x6, EcalTPGLinearizationConstant::shift_x1, EcalTPGLinearizationConstant::shift_x12, EcalTPGLinearizationConstant::shift_x6, theBarrelGeometry_, and theEndcapGeometry_.

Referenced by getRecords().

285  {
286 
287  std::cout<<std::endl;
288  const EcalTPGPedestalsMap pedMap=ecaltpPed->getMap();
289  const EcalTPGLinearizationConstMap linMap=ecaltpLin->getMap();
290 
291  const std::vector<DetId> & ebCells = theBarrelGeometry_->getValidDetIds(DetId::Ecal, EcalBarrel);
292 
293  std::cout<<"COMMENT ====== barrel crystals ====== "<<std::endl;
294  for (std::vector<DetId>::const_iterator it = ebCells.begin(); it != ebCells.end(); ++it) {
295  EBDetId id(*it) ;
296  std::cout <<"CRYSTAL "<<std::dec<<id.rawId()<<std::endl;
297  const EcalTPGPedestal &ped=pedMap[id.rawId()];
298  const EcalTPGLinearizationConstant &lin=linMap[id.rawId()];
299  std::cout<<std::hex<<" 0x"<<ped.mean_x12<<" 0x"<<lin.mult_x12<<" 0x"<<lin.shift_x12<<std::endl;
300  std::cout<<std::hex<<" 0x"<<ped.mean_x6 <<" 0x"<<lin.mult_x6 <<" 0x"<<lin.shift_x6<<std::endl;
301  std::cout<<std::hex<<" 0x"<<ped.mean_x1 <<" 0x"<<lin.mult_x1 <<" 0x"<<lin.shift_x1<<std::endl;
302  }
303 
304  const std::vector<DetId> & eeCells = theEndcapGeometry_->getValidDetIds(DetId::Ecal, EcalEndcap);
305  std::cout<<"COMMENT ====== endcap crystals ====== "<<std::endl;
306  for (std::vector<DetId>::const_iterator it = eeCells.begin(); it != eeCells.end(); ++it) {
307  EEDetId id(*it) ;
308  std::cout <<"CRYSTAL "<<std::dec<<id.rawId()<<std::endl;
309  const EcalTPGPedestal &ped=pedMap[id.rawId()];
310  const EcalTPGLinearizationConstant &lin=linMap[id.rawId()];
311  std::cout<<std::hex<<" 0x"<<ped.mean_x12<<" 0x"<<lin.mult_x12<<" 0x"<<lin.shift_x12<<std::endl;
312  std::cout<<std::hex<<" 0x"<<ped.mean_x6 <<" 0x"<<lin.mult_x6 <<" 0x"<<lin.shift_x6<<std::endl;
313  std::cout<<std::hex<<" 0x"<<ped.mean_x1 <<" 0x"<<lin.mult_x1 <<" 0x"<<lin.shift_x1<<std::endl;
314  }
315 }
const CaloSubdetectorGeometry * theBarrelGeometry_
const CaloSubdetectorGeometry * theEndcapGeometry_
const self & getMap() const
virtual const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const
Get a list of valid detector ids (for the given subdetector)
tuple cout
Definition: gather_cfg.py:121
void EcalTPCondAnalyzer::printEcalTPGFineGrainEBIdMap ( const EcalTPGFineGrainEBIdMap ecaltpgFineGrainEB) const
private

Definition at line 259 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, EcalTPGFineGrainEBIdMap::getMap(), and python.multivaluedict::map().

Referenced by getRecords().

259  {
261  const EcalTPGFineGrainEBIdMap::EcalTPGFineGrainEBMap map=ecaltpgFineGrainEB->getMap();
262  uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT;
263 
264  //std::cout<<std::endl;
265  for (it=map.begin();it!=map.end();++it) {
266  std::cout <<"FG "<<(*it).first<<std::endl;
267  (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
268  std::cout <<std::hex<<"0x"<<ThresholdETLow<<" 0x"<<ThresholdETHigh<<" 0x"<<RatioLow<<" 0x"<<RatioHigh<<" 0x"<<LUT<<std::endl;
269  }
270 }
const EcalTPGFineGrainEBMap & getMap() const
std::map< uint32_t, EcalTPGFineGrainConstEB >::const_iterator EcalTPGFineGrainEBMapItr
std::map< uint32_t, EcalTPGFineGrainConstEB > EcalTPGFineGrainEBMap
tuple cout
Definition: gather_cfg.py:121
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:32
void EcalTPCondAnalyzer::printEcalTPGLutIdMap ( const EcalTPGLutIdMap ecaltpgLut) const
private

Definition at line 273 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, EcalTPGLutIdMap::getMap(), i, lumiPlot::lut, and python.multivaluedict::map().

Referenced by getRecords().

273  {
275  const EcalTPGLutIdMap::EcalTPGLutMap map=ecaltpgLut->getMap();
276 
277  std::cout<<std::endl;
278  for (it=map.begin();it!=map.end();++it) {
279  std::cout <<"LUT "<<(*it).first<<std::endl;
280  const unsigned int * lut=(*it).second.getLut();
281  for (unsigned int i=0;i<1024;++i) std::cout <<std::hex<<"0x"<<*lut++<<std::endl;
282  }
283 }
int i
Definition: DBlmapReader.cc:9
const EcalTPGLutMap & getMap() const
tuple lut
Definition: lumiPlot.py:244
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
tuple cout
Definition: gather_cfg.py:121
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
void EcalTPCondAnalyzer::printEcalTPGPhysicsConst ( const EcalTPGPhysicsConst ecaltpgPhysConst) const
private

Definition at line 186 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, and EcalTPGPhysicsConst::getMap().

Referenced by getRecords().

186  {
188  const EcalTPGPhysicsConstMap mymap=ecaltpgPhysConst->getMap();
189  for (it=mymap.begin();it!=mymap.end();++it) {
190  if (it==mymap.begin()) {
191  std::cout<<"\nPHYSICS_EB "<<(*it).first<<std::endl;
192  } else {
193  std::cout<<"\nPHYSICS_EE "<<(*it).first<<std::endl;
194  }
195  std::cout<<(*it).second.EtSat<<" "<<(*it).second.ttf_threshold_Low<<" "<<(*it).second.ttf_threshold_High<<std::endl;
196  std::cout<<(*it).second.FG_lowThreshold<<" "<<(*it).second.FG_highThreshold<<" "<<(*it).second.FG_lowRatio<<" "<<(*it).second.FG_highRatio<<std::endl;
197  }
198 }
const std::map< uint32_t, Item > & getMap() const
tuple cout
Definition: gather_cfg.py:121
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
void EcalTPCondAnalyzer::printSpikeTh ( const EcalTPGSpike ecaltpgSpike) const
private
void EcalTPCondAnalyzer::printSTRIP ( const EcalTPGSlidingWindow ecaltpgSlidW,
const EcalTPGWeightGroup ecaltpgWeightGroup,
const EcalTPGFineGrainStripEE ecaltpgFgStripEE 
) const
private

Definition at line 200 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, EcalTPGFineGrainStripEE::getMap(), EcalTPGGroups::getMap(), EcalTPGFineGrainStripEE::Item::lut, EcalTriggerElectronicsId::subdet(), and EcalTPGFineGrainStripEE::Item::threshold.

Referenced by getRecords().

200  {
201  // print STRIP information
202  const EcalTPGSlidingWindowMap &slwinmap = slWin -> getMap();
203  const EcalTPGFineGrainStripEEMap &fgstripEEmap= ecaltpgFgStripEE->getMap();
205  const EcalTPGGroups::EcalTPGGroupsMap &gMap=ecaltpgWeightGroup->getMap();
207 
208  std::cout<<std::endl;
209  for (int mysub=1;mysub<=2;++mysub) {
210  std::cout<<std::endl;
211  for (it=slwinmap.begin();it!=slwinmap.end();++it) {
212  EcalTriggerElectronicsId elid((*it).first);
213  groupId=gMap.find((*it).first);
214  int subdet =elid.subdet();
215  if (subdet==mysub) {
216  if (subdet==1) {
217  std::cout<<"STRIP_EB "<<std::dec<<(*it).first<<std::endl;
218  std::cout << std::hex << "0x" <<(*it).second<<std::endl ;
219  std::cout <<"" <<(*groupId).second<< std::endl ; //weightgroupid
220  EcalTPGFineGrainStripEEMapIterator it2=fgstripEEmap.find((*it).first);
221  if (it2==fgstripEEmap.end()) {
222  edm::LogWarning("EcalTPGCondAnalyzer") <<" could not find strip Id "<<(*it).first<<", given in sliding window, inside the EcalTPGFineGranStripEEMap!!!";
223  } else {
224  EcalTPGFineGrainStripEE::Item item=(*it2).second;
225  std::cout<<std::hex<<"0x"<<item.threshold<<" 0x"<<item.lut<<std::endl ;
226  }
227  }else if (subdet==2) {
228  std::cout<<"STRIP_EE "<<std::dec<<(*it).first<<std::endl;
229  std::cout << std::hex << "0x" <<(*it).second<<std::endl ;
230  std::cout <<" " <<(*groupId).second<<std::endl ;//weightgroupid
231  EcalTPGFineGrainStripEEMapIterator it2=fgstripEEmap.find((*it).first);
232  if (it2==fgstripEEmap.end()) {
233  edm::LogWarning("EcalTPGCondAnalyzer") <<" could not find strip Id "<<(*it).first<<", given in sliding window, inside the EcalTPGFineGranStripEEMap!!!";
234  } else {
235  EcalTPGFineGrainStripEE::Item item=(*it2).second;
236  std::cout<<std::hex<<"0x"<<item.threshold<<" 0x"<<item.lut<<std::endl ;
237  }
238  }
239  }
240  }
241  }
242 }
const EcalTPGGroupsMap & getMap() const
Definition: EcalTPGGroups.h:28
std::map< uint32_t, EcalTPGFineGrainStripEE::Item > EcalTPGFineGrainStripEEMap
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
Definition: EcalTPGGroups.h:23
std::map< uint32_t, uint32_t > EcalTPGSlidingWindowMap
std::map< uint32_t, EcalTPGFineGrainStripEE::Item >::const_iterator EcalTPGFineGrainStripEEMapIterator
const std::map< uint32_t, Item > & getMap() const
tuple cout
Definition: gather_cfg.py:121
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
std::map< uint32_t, uint32_t >::const_iterator EcalTPGSlidingWindowMapIterator
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
Definition: EcalTPGGroups.h:22
void EcalTPCondAnalyzer::printTOWEREB ( const EcalTPGSpike ecaltpgSpike,
const EcalTPGFineGrainEBGroup ecaltpgFgEBGroup,
const EcalTPGLutGroup ecaltpgLutGroup 
) const
private

Definition at line 411 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, EcalTPGSpike::getMap(), and EcalTPGGroups::getMap().

Referenced by getRecords().

411  {
412 
413  const EcalTPGGroups::EcalTPGGroupsMap &lutMap=ecaltpgLutGroup->getMap();
415  const EcalTPGGroups::EcalTPGGroupsMap &fgMap=ecaltpgFgEBGroup->getMap();
417 
418  const EcalTPGSpike::EcalTPGSpikeMap spikeThMap = ecaltpgSpikeTh->getMap();
420 
421  std::cout<<std::endl;
422  for (it=fgMap.begin();it!=fgMap.end();++it) {
423  std::cout <<"TOWER_EB "<<std::dec<<(*it).first<<std::endl;
424  lutGroupId=lutMap.find((*it).first);
425  itSpikeTh=spikeThMap.find((*it).first);
426  std::cout <<" "<<(*it).second<<std::endl;
427  std::cout <<" "<<(*lutGroupId).second<<std::endl;
428  std::cout <<" "<<(*itSpikeTh).second<<std::endl;
429  }
430 }
const EcalTPGGroupsMap & getMap() const
Definition: EcalTPGGroups.h:28
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
Definition: EcalTPGGroups.h:23
std::map< uint32_t, uint16_t >::const_iterator EcalTPGSpikeMapIterator
Definition: EcalTPGSpike.h:13
std::map< uint32_t, uint16_t > EcalTPGSpikeMap
Definition: EcalTPGSpike.h:12
tuple cout
Definition: gather_cfg.py:121
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
Definition: EcalTPGGroups.h:22
void EcalTPCondAnalyzer::printTOWEREE ( const EcalTPGFineGrainTowerEE ecaltpgFineGrainTowerEE,
const EcalTPGLutGroup ecaltpgLutGroup 
) const
private

Definition at line 432 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, EcalTPGFineGrainTowerEE::getMap(), EcalTPGGroups::getMap(), and python.multivaluedict::map().

Referenced by getRecords().

432  {
433 
435  const EcalTPGFineGrainTowerEEMap map=ecaltpgFineGrainTowerEE->getMap();
436  const EcalTPGGroups::EcalTPGGroupsMap &lutMap=ecaltpgLutGroup->getMap();
438 
439  std::cout<<std::endl;
440  for (it=map.begin();it!=map.end();++it) {
441  std::cout <<"TOWER_EE "<<std::dec<<(*it).first<<std::endl;
442  lutGroupId=lutMap.find((*it).first);
443  std::cout <<" "<<(*lutGroupId).second<<std::endl;
444  std::cout <<std::hex<<"0x"<<(*it).second<<std::endl;
445  }
446 }
const EcalTPGGroupsMap & getMap() const
Definition: EcalTPGGroups.h:28
std::map< uint32_t, uint32_t >::const_iterator EcalTPGFineGrainTowerEEMapIterator
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
Definition: EcalTPGGroups.h:23
const std::map< uint32_t, uint32_t > & getMap() const
std::map< uint32_t, uint32_t > EcalTPGFineGrainTowerEEMap
tuple cout
Definition: gather_cfg.py:121
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
Definition: EcalTPGGroups.h:22
void EcalTPCondAnalyzer::printWEIGHT ( const EcalTPGWeightIdMap ecaltpgWeightMap) const
private

Definition at line 244 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, EcalTPGWeightIdMap::getMap(), python.multivaluedict::map(), w2, w3, and w4.

Referenced by getRecords().

244  {
245 
246  std::cout<<std::endl;
248  uint32_t w0,w1,w2,w3,w4;
249  const EcalTPGWeightIdMap::EcalTPGWeightMap map=ecaltpgWeightIdMap->getMap();
250  for (it=map.begin();it!=map.end();++it) {
251  std::cout <<"WEIGHT "<<(*it).first<<std::endl;
252  (*it).second.getValues(w0,w1,w2,w3,w4);
253  std::cout <<std::hex<<"0x"<<w0<<" 0x"<<w1<<" 0x"<<w2<<" 0x"<<w3<<" 0x"<<w4<<" "<<std::endl;
254  std::cout<<std::endl;
255  std::cout<<std::endl;
256  }
257 }
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
common ppss p3p6s2 common epss epspn46 common const1 w4
Definition: inclppp.h:1
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

unsigned long long EcalTPCondAnalyzer::cacheID_
private

Definition at line 69 of file EcalTPCondAnalyzer.h.

Referenced by beginRun().

const CaloSubdetectorGeometry* EcalTPCondAnalyzer::theBarrelGeometry_
private

Definition at line 72 of file EcalTPCondAnalyzer.h.

Referenced by beginRun(), and printCRYSTAL().

const CaloSubdetectorGeometry* EcalTPCondAnalyzer::theEndcapGeometry_
private

Definition at line 71 of file EcalTPCondAnalyzer.h.

Referenced by beginRun(), and printCRYSTAL().