CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalTPCondAnalyzer Class Reference

#include <EcalTPCondAnalyzer.h>

Inheritance diagram for EcalTPCondAnalyzer:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void beginJob () override
 
void beginRun (const edm::Run &run, const edm::EventSetup &es)
 
 EcalTPCondAnalyzer (const edm::ParameterSet &)
 
void endJob () override
 
 ~EcalTPCondAnalyzer () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

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::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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 54 of file EcalTPCondAnalyzer.h.

Constructor & Destructor Documentation

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

Definition at line 54 of file EcalTPCondAnalyzer.cc.

56 {}
EcalTPCondAnalyzer::~EcalTPCondAnalyzer ( )
override

Definition at line 76 of file EcalTPCondAnalyzer.cc.

76 {}

Member Function Documentation

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

Definition at line 189 of file EcalTPCondAnalyzer.cc.

190  {}
void EcalTPCondAnalyzer::beginJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 74 of file EcalTPCondAnalyzer.cc.

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

Definition at line 58 of file EcalTPCondAnalyzer.cc.

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

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

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 192 of file EcalTPCondAnalyzer.cc.

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

Definition at line 79 of file EcalTPCondAnalyzer.cc.

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

Referenced by beginRun().

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

References gather_cfg::cout.

Referenced by getRecords().

363  {
364  std::cout << "COMMENT put your comments here\n"
365  << "COMMENT =================================\n"
366  << "COMMENT physics EB structure\n"
367  << "COMMENT\n"
368  << "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), "
369  "ttf_threshold_High (GeV)\n"
370  << "COMMENT FG_lowThreshold (GeV), FG_highThreshold (GeV), "
371  "FG_lowRatio, FG_highRatio\n"
372  << "COMMENT =================================\n"
373  << "COMMENT\n"
374  << "COMMENT =================================\n"
375  << "COMMENT physics EE structure\n"
376  << "COMMENT\n"
377  << "COMMENT EtSaturation (GeV), ttf_threshold_Low (GeV), "
378  "ttf_threshold_High (GeV)\n"
379  << "COMMENT FG_Threshold (GeV), dummy, dummy, dummy\n"
380  << "COMMENT =================================\n"
381  << "COMMENT\n"
382  << "COMMENT =================================\n"
383  << "COMMENT crystal structure (same for EB and EE)\n"
384  << "COMMENT\n"
385  << "COMMENT ped, mult, shift [gain12]\n"
386  << "COMMENT ped, mult, shift [gain6]\n"
387  << "COMMENT ped, mult, shift [gain1]\n"
388  << "COMMENT =================================\n"
389  << "COMMENT\n"
390  << "COMMENT =================================\n"
391  << "COMMENT strip EB structure\n"
392  << "COMMENT\n"
393  << "COMMENT sliding_window\n"
394  << "COMMENT weightGroupId\n"
395  << "COMMENT threshold_sfg lut_sfg\n"
396  << "COMMENT =================================\n"
397  << "COMMENT\n"
398  << "COMMENT =================================\n"
399  << "COMMENT strip EE structure\n"
400  << "COMMENT\n"
401  << "COMMENT sliding_window\n"
402  << "COMMENT weightGroupId\n"
403  << "COMMENT threshold_fg lut_fg\n"
404  << "COMMENT =================================\n"
405  << "COMMENT\n"
406  << "COMMENT =================================\n"
407  << "COMMENT tower EB structure\n"
408  << "COMMENT\n"
409  << "COMMENT LUTGroupId\n"
410  << "COMMENT FgGroupId\n"
411  << "COMMENT spike_killing_threshold\n"
412  << "COMMENT =================================\n"
413  << "COMMENT\n"
414  << "COMMENT =================================\n"
415  << "COMMENT tower EE structure\n"
416  << "COMMENT\n"
417  << "COMMENT LUTGroupId\n"
418  << "COMMENT tower_lut_fg\n"
419  << "COMMENT =================================\n"
420  << "COMMENT\n"
421  << "COMMENT =================================\n"
422  << "COMMENT Weight structure\n"
423  << "COMMENT\n"
424  << "COMMENT weightGroupId\n"
425  << "COMMENT w0, w1, w2, w3, w4\n"
426  << "COMMENT =================================\n"
427  << "COMMENT\n"
428  << "COMMENT =================================\n"
429  << "COMMENT lut structure\n"
430  << "COMMENT\n"
431  << "COMMENT LUTGroupId\n"
432  << "COMMENT LUT[1-1024]\n"
433  << "COMMENT =================================\n"
434  << "COMMENT\n"
435  << "COMMENT =================================\n"
436  << "COMMENT fg EB structure\n"
437  << "COMMENT\n"
438  << "COMMENT FgGroupId\n"
439  << "COMMENT el, eh, tl, th, lut_fg\n"
440  << "COMMENT =================================\n"
441  << "COMMENT" << std::endl;
442 }
void EcalTPCondAnalyzer::printCRYSTAL ( const EcalTPGPedestals ecaltpPed,
const EcalTPGLinearizationConst ecaltpLin 
)
private

Definition at line 320 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, TauDecayModes::dec, DetId::Ecal, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::getMap(), CaloSubdetectorGeometry::getValidDetIds(), triggerObjects_cff::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().

322  {
323 
324  std::cout << std::endl;
325  const EcalTPGPedestalsMap &pedMap = ecaltpPed->getMap();
326  const EcalTPGLinearizationConstMap &linMap = ecaltpLin->getMap();
327 
328  const std::vector<DetId> &ebCells =
330 
331  std::cout << "COMMENT ====== barrel crystals ====== " << std::endl;
332  for (std::vector<DetId>::const_iterator it = ebCells.begin();
333  it != ebCells.end(); ++it) {
334  EBDetId id(*it);
335  std::cout << "CRYSTAL " << std::dec << id.rawId() << std::endl;
336  const EcalTPGPedestal &ped = pedMap[id.rawId()];
337  const EcalTPGLinearizationConstant &lin = linMap[id.rawId()];
338  std::cout << std::hex << " 0x" << ped.mean_x12 << " 0x" << lin.mult_x12
339  << " 0x" << lin.shift_x12 << std::endl;
340  std::cout << std::hex << " 0x" << ped.mean_x6 << " 0x" << lin.mult_x6
341  << " 0x" << lin.shift_x6 << std::endl;
342  std::cout << std::hex << " 0x" << ped.mean_x1 << " 0x" << lin.mult_x1
343  << " 0x" << lin.shift_x1 << std::endl;
344  }
345 
346  const std::vector<DetId> &eeCells =
348  std::cout << "COMMENT ====== endcap crystals ====== " << std::endl;
349  for (std::vector<DetId>::const_iterator it = eeCells.begin();
350  it != eeCells.end(); ++it) {
351  EEDetId id(*it);
352  std::cout << "CRYSTAL " << std::dec << id.rawId() << std::endl;
353  const EcalTPGPedestal &ped = pedMap[id.rawId()];
354  const EcalTPGLinearizationConstant &lin = linMap[id.rawId()];
355  std::cout << std::hex << " 0x" << ped.mean_x12 << " 0x" << lin.mult_x12
356  << " 0x" << lin.shift_x12 << std::endl;
357  std::cout << std::hex << " 0x" << ped.mean_x6 << " 0x" << lin.mult_x6
358  << " 0x" << lin.shift_x6 << std::endl;
359  std::cout << std::hex << " 0x" << ped.mean_x1 << " 0x" << lin.mult_x1
360  << " 0x" << lin.shift_x1 << std::endl;
361  }
362 }
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)
void EcalTPCondAnalyzer::printEcalTPGFineGrainEBIdMap ( const EcalTPGFineGrainEBIdMap ecaltpgFineGrainEB) const
private

Definition at line 288 of file EcalTPCondAnalyzer.cc.

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

Referenced by getRecords().

289  {
292  ecaltpgFineGrainEB->getMap();
293  uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT;
294 
295  // std::cout<<std::endl;
296  for (it = map.begin(); it != map.end(); ++it) {
297  std::cout << "FG " << (*it).first << std::endl;
298  (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh,
299  LUT);
300  std::cout << std::hex << "0x" << ThresholdETLow << " 0x" << ThresholdETHigh
301  << " 0x" << RatioLow << " 0x" << RatioHigh << " 0x" << LUT
302  << std::endl;
303  }
304 }
const EcalTPGFineGrainEBMap & getMap() const
std::map< uint32_t, EcalTPGFineGrainConstEB >::const_iterator EcalTPGFineGrainEBMapItr
std::map< uint32_t, EcalTPGFineGrainConstEB > EcalTPGFineGrainEBMap
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:31
void EcalTPCondAnalyzer::printEcalTPGLutIdMap ( const EcalTPGLutIdMap ecaltpgLut) const
private

Definition at line 306 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, EcalTPGLutIdMap::getMap(), mps_fire::i, lumiPlot::lut, and genParticles_cff::map.

Referenced by getRecords().

307  {
309  const EcalTPGLutIdMap::EcalTPGLutMap &map = ecaltpgLut->getMap();
310 
311  std::cout << std::endl;
312  for (it = map.begin(); it != map.end(); ++it) {
313  std::cout << "LUT " << (*it).first << std::endl;
314  const unsigned int *lut = (*it).second.getLut();
315  for (unsigned int i = 0; i < 1024; ++i)
316  std::cout << std::hex << "0x" << *lut++ << std::endl;
317  }
318 }
const EcalTPGLutMap & getMap() const
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
void EcalTPCondAnalyzer::printEcalTPGPhysicsConst ( const EcalTPGPhysicsConst ecaltpgPhysConst) const
private

Definition at line 194 of file EcalTPCondAnalyzer.cc.

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

Referenced by getRecords().

195  {
197  const EcalTPGPhysicsConstMap &mymap = ecaltpgPhysConst->getMap();
198  for (it = mymap.begin(); it != mymap.end(); ++it) {
199  if (it == mymap.begin()) {
200  std::cout << "\nPHYSICS_EB " << (*it).first << std::endl;
201  } else {
202  std::cout << "\nPHYSICS_EE " << (*it).first << std::endl;
203  }
204  std::cout << (*it).second.EtSat << " " << (*it).second.ttf_threshold_Low
205  << " " << (*it).second.ttf_threshold_High << std::endl;
206  std::cout << (*it).second.FG_lowThreshold << " "
207  << (*it).second.FG_highThreshold << " "
208  << (*it).second.FG_lowRatio << " " << (*it).second.FG_highRatio
209  << std::endl;
210  }
211 }
const std::map< uint32_t, Item > & getMap() const
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 213 of file EcalTPCondAnalyzer.cc.

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

Referenced by getRecords().

216  {
217  // print STRIP information
218  const EcalTPGSlidingWindowMap &slwinmap = slWin->getMap();
219  const EcalTPGFineGrainStripEEMap &fgstripEEmap = ecaltpgFgStripEE->getMap();
221  const EcalTPGGroups::EcalTPGGroupsMap &gMap = ecaltpgWeightGroup->getMap();
223 
224  std::cout << std::endl;
225  for (int mysub = 1; mysub <= 2; ++mysub) {
226  std::cout << std::endl;
227  for (it = slwinmap.begin(); it != slwinmap.end(); ++it) {
228  EcalTriggerElectronicsId elid((*it).first);
229  groupId = gMap.find((*it).first);
230  int subdet = elid.subdet();
231  if (subdet == mysub) {
232  if (subdet == 1) {
233  std::cout << "STRIP_EB " << std::dec << (*it).first << std::endl;
234  std::cout << std::hex << "0x" << (*it).second << std::endl;
235  std::cout << "" << (*groupId).second << std::endl; // weightgroupid
237  fgstripEEmap.find((*it).first);
238  if (it2 == fgstripEEmap.end()) {
239  edm::LogWarning("EcalTPGCondAnalyzer")
240  << " could not find strip Id " << (*it).first
241  << ", given in sliding window, inside the "
242  "EcalTPGFineGranStripEEMap!!!";
243  } else {
244  EcalTPGFineGrainStripEE::Item item = (*it2).second;
245  std::cout << std::hex << "0x" << item.threshold << " 0x" << item.lut
246  << std::endl;
247  }
248  } else if (subdet == 2) {
249  std::cout << "STRIP_EE " << std::dec << (*it).first << std::endl;
250  std::cout << std::hex << "0x" << (*it).second << std::endl;
251  std::cout << " " << (*groupId).second << std::endl; // weightgroupid
253  fgstripEEmap.find((*it).first);
254  if (it2 == fgstripEEmap.end()) {
255  edm::LogWarning("EcalTPGCondAnalyzer")
256  << " could not find strip Id " << (*it).first
257  << ", given in sliding window, inside the "
258  "EcalTPGFineGranStripEEMap!!!";
259  } else {
260  EcalTPGFineGrainStripEE::Item item = (*it2).second;
261  std::cout << std::hex << "0x" << item.threshold << " 0x" << item.lut
262  << std::endl;
263  }
264  }
265  }
266  }
267  }
268 }
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
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 462 of file EcalTPCondAnalyzer.cc.

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

Referenced by getRecords().

465  {
466 
467  const EcalTPGGroups::EcalTPGGroupsMap &lutMap = ecaltpgLutGroup->getMap();
469  const EcalTPGGroups::EcalTPGGroupsMap &fgMap = ecaltpgFgEBGroup->getMap();
471 
472  const EcalTPGSpike::EcalTPGSpikeMap &spikeThMap = ecaltpgSpikeTh->getMap();
474 
475  std::cout << std::endl;
476  for (it = fgMap.begin(); it != fgMap.end(); ++it) {
477  std::cout << "TOWER_EB " << std::dec << (*it).first << std::endl;
478  lutGroupId = lutMap.find((*it).first);
479  itSpikeTh = spikeThMap.find((*it).first);
480  std::cout << " " << (*it).second << std::endl;
481  std::cout << " " << (*lutGroupId).second << std::endl;
482  std::cout << " " << (*itSpikeTh).second << std::endl;
483  }
484 }
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
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 486 of file EcalTPCondAnalyzer.cc.

References gather_cfg::cout, TauDecayModes::dec, EcalTPGFineGrainTowerEE::getMap(), EcalTPGGroups::getMap(), and genParticles_cff::map.

Referenced by getRecords().

488  {
489 
491  const EcalTPGFineGrainTowerEEMap &map = ecaltpgFineGrainTowerEE->getMap();
492  const EcalTPGGroups::EcalTPGGroupsMap &lutMap = ecaltpgLutGroup->getMap();
494 
495  std::cout << std::endl;
496  for (it = map.begin(); it != map.end(); ++it) {
497  std::cout << "TOWER_EE " << std::dec << (*it).first << std::endl;
498  lutGroupId = lutMap.find((*it).first);
499  std::cout << " " << (*lutGroupId).second << std::endl;
500  std::cout << std::hex << "0x" << (*it).second << std::endl;
501  }
502 }
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
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
Definition: EcalTPGGroups.h:22
void EcalTPCondAnalyzer::printWEIGHT ( const EcalTPGWeightIdMap ecaltpgWeightMap) const
private

Definition at line 270 of file EcalTPCondAnalyzer.cc.

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

Referenced by getRecords().

271  {
272 
273  std::cout << std::endl;
275  uint32_t w0, w1, w2, w3, w4;
277  ecaltpgWeightIdMap->getMap();
278  for (it = map.begin(); it != map.end(); ++it) {
279  std::cout << "WEIGHT " << (*it).first << std::endl;
280  (*it).second.getValues(w0, w1, w2, w3, w4);
281  std::cout << std::hex << "0x" << w0 << " 0x" << w1 << " 0x" << w2 << " 0x"
282  << w3 << " 0x" << w4 << " " << std::endl;
283  std::cout << std::endl;
284  std::cout << std::endl;
285  }
286 }
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

Member Data Documentation

unsigned long long EcalTPCondAnalyzer::cacheID_
private

Definition at line 66 of file EcalTPCondAnalyzer.h.

Referenced by beginRun().

const CaloSubdetectorGeometry* EcalTPCondAnalyzer::theBarrelGeometry_
private

Definition at line 69 of file EcalTPCondAnalyzer.h.

Referenced by beginRun(), and printCRYSTAL().

const CaloSubdetectorGeometry* EcalTPCondAnalyzer::theEndcapGeometry_
private

Definition at line 68 of file EcalTPCondAnalyzer.h.

Referenced by beginRun(), and printCRYSTAL().