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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
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
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (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::EcalTPCondAnalyzer ( const edm::ParameterSet iConfig)
explicit

Definition at line 54 of file EcalTPCondAnalyzer.cc.

56 {}

◆ ~EcalTPCondAnalyzer()

EcalTPCondAnalyzer::~EcalTPCondAnalyzer ( )
override

Definition at line 72 of file EcalTPCondAnalyzer.cc.

72 {}

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 171 of file EcalTPCondAnalyzer.cc.

171 {}

◆ beginJob()

void EcalTPCondAnalyzer::beginJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 70 of file EcalTPCondAnalyzer.cc.

70 {}

◆ beginRun()

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

Definition at line 58 of file EcalTPCondAnalyzer.cc.

58  {
59  // get geometry
60 
61  edm::ESHandle<CaloSubdetectorGeometry> theEndcapGeometry_handle, theBarrelGeometry_handle;
62  evtSetup.get<EcalEndcapGeometryRecord>().get("EcalEndcap", theEndcapGeometry_handle);
63  evtSetup.get<EcalBarrelGeometryRecord>().get("EcalBarrel", theBarrelGeometry_handle);
64  theEndcapGeometry_ = &(*theEndcapGeometry_handle);
65  theBarrelGeometry_ = &(*theBarrelGeometry_handle);
66 
67  cacheID_ = this->getRecords(evtSetup);
68 }

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

◆ endJob()

void EcalTPCondAnalyzer::endJob ( void  )
overridevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 173 of file EcalTPCondAnalyzer.cc.

173 {}

◆ getRecords()

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

Definition at line 74 of file EcalTPCondAnalyzer.cc.

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

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

Referenced by beginRun().

◆ printBadStrip()

void EcalTPCondAnalyzer::printBadStrip ( const EcalTPGStripStatus ecaltpgBadStrip) const
private

◆ printBadTT()

void EcalTPCondAnalyzer::printBadTT ( const EcalTPGTowerStatus ecaltpgBadTT) const
private

◆ printBadX()

void EcalTPCondAnalyzer::printBadX ( const EcalTPGCrystalStatus ecaltpgBadX) const
private

◆ printComment()

void EcalTPCondAnalyzer::printComment ( ) const
private

Definition at line 312 of file EcalTPCondAnalyzer.cc.

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

References gather_cfg::cout.

Referenced by getRecords().

◆ printCRYSTAL()

void EcalTPCondAnalyzer::printCRYSTAL ( const EcalTPGPedestals ecaltpPed,
const EcalTPGLinearizationConst ecaltpLin 
)
private

Definition at line 282 of file EcalTPCondAnalyzer.cc.

282  {
283  std::cout << std::endl;
284  const EcalTPGPedestalsMap &pedMap = ecaltpPed->getMap();
285  const EcalTPGLinearizationConstMap &linMap = ecaltpLin->getMap();
286 
287  const std::vector<DetId> &ebCells = theBarrelGeometry_->getValidDetIds(DetId::Ecal, EcalBarrel);
288 
289  std::cout << "COMMENT ====== barrel crystals ====== " << std::endl;
290  for (std::vector<DetId>::const_iterator it = ebCells.begin(); it != ebCells.end(); ++it) {
291  EBDetId id(*it);
292  std::cout << "CRYSTAL " << std::dec << id.rawId() << std::endl;
293  const EcalTPGPedestal &ped = pedMap[id.rawId()];
294  const EcalTPGLinearizationConstant &lin = linMap[id.rawId()];
295  std::cout << std::hex << " 0x" << ped.mean_x12 << " 0x" << lin.mult_x12 << " 0x" << lin.shift_x12 << std::endl;
296  std::cout << std::hex << " 0x" << ped.mean_x6 << " 0x" << lin.mult_x6 << " 0x" << lin.shift_x6 << std::endl;
297  std::cout << std::hex << " 0x" << ped.mean_x1 << " 0x" << lin.mult_x1 << " 0x" << lin.shift_x1 << std::endl;
298  }
299 
300  const std::vector<DetId> &eeCells = theEndcapGeometry_->getValidDetIds(DetId::Ecal, EcalEndcap);
301  std::cout << "COMMENT ====== endcap crystals ====== " << std::endl;
302  for (std::vector<DetId>::const_iterator it = eeCells.begin(); it != eeCells.end(); ++it) {
303  EEDetId id(*it);
304  std::cout << "CRYSTAL " << std::dec << id.rawId() << std::endl;
305  const EcalTPGPedestal &ped = pedMap[id.rawId()];
306  const EcalTPGLinearizationConstant &lin = linMap[id.rawId()];
307  std::cout << std::hex << " 0x" << ped.mean_x12 << " 0x" << lin.mult_x12 << " 0x" << lin.shift_x12 << std::endl;
308  std::cout << std::hex << " 0x" << ped.mean_x6 << " 0x" << lin.mult_x6 << " 0x" << lin.shift_x6 << std::endl;
309  std::cout << std::hex << " 0x" << ped.mean_x1 << " 0x" << lin.mult_x1 << " 0x" << lin.shift_x1 << std::endl;
310  }
311 }

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().

◆ printEcalTPGFineGrainEBIdMap()

void EcalTPCondAnalyzer::printEcalTPGFineGrainEBIdMap ( const EcalTPGFineGrainEBIdMap ecaltpgFineGrainEB) const
private

Definition at line 255 of file EcalTPCondAnalyzer.cc.

255  {
257  const EcalTPGFineGrainEBIdMap::EcalTPGFineGrainEBMap &map = ecaltpgFineGrainEB->getMap();
258  uint32_t ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT;
259 
260  // std::cout<<std::endl;
261  for (it = map.begin(); it != map.end(); ++it) {
262  std::cout << "FG " << (*it).first << std::endl;
263  (*it).second.getValues(ThresholdETLow, ThresholdETHigh, RatioLow, RatioHigh, LUT);
264  std::cout << std::hex << "0x" << ThresholdETLow << " 0x" << ThresholdETHigh << " 0x" << RatioLow << " 0x"
265  << RatioHigh << " 0x" << LUT << std::endl;
266  }
267 }

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

Referenced by getRecords().

◆ printEcalTPGLutIdMap()

void EcalTPCondAnalyzer::printEcalTPGLutIdMap ( const EcalTPGLutIdMap ecaltpgLut) const
private

Definition at line 269 of file EcalTPCondAnalyzer.cc.

269  {
271  const EcalTPGLutIdMap::EcalTPGLutMap &map = ecaltpgLut->getMap();
272 
273  std::cout << std::endl;
274  for (it = map.begin(); it != map.end(); ++it) {
275  std::cout << "LUT " << (*it).first << std::endl;
276  const unsigned int *lut = (*it).second.getLut();
277  for (unsigned int i = 0; i < 1024; ++i)
278  std::cout << std::hex << "0x" << *lut++ << std::endl;
279  }
280 }

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

Referenced by getRecords().

◆ printEcalTPGPhysicsConst()

void EcalTPCondAnalyzer::printEcalTPGPhysicsConst ( const EcalTPGPhysicsConst ecaltpgPhysConst) const
private

Definition at line 175 of file EcalTPCondAnalyzer.cc.

175  {
177  const EcalTPGPhysicsConstMap &mymap = ecaltpgPhysConst->getMap();
178  for (it = mymap.begin(); it != mymap.end(); ++it) {
179  if (it == mymap.begin()) {
180  std::cout << "\nPHYSICS_EB " << (*it).first << std::endl;
181  } else {
182  std::cout << "\nPHYSICS_EE " << (*it).first << std::endl;
183  }
184  std::cout << (*it).second.EtSat << " " << (*it).second.ttf_threshold_Low << " " << (*it).second.ttf_threshold_High
185  << std::endl;
186  std::cout << (*it).second.FG_lowThreshold << " " << (*it).second.FG_highThreshold << " " << (*it).second.FG_lowRatio
187  << " " << (*it).second.FG_highRatio << std::endl;
188  }
189 }

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

Referenced by getRecords().

◆ printSpikeTh()

void EcalTPCondAnalyzer::printSpikeTh ( const EcalTPGSpike ecaltpgSpike) const
private

◆ printSTRIP()

void EcalTPCondAnalyzer::printSTRIP ( const EcalTPGSlidingWindow ecaltpgSlidW,
const EcalTPGWeightGroup ecaltpgWeightGroup,
const EcalTPGFineGrainStripEE ecaltpgFgStripEE 
) const
private

Definition at line 191 of file EcalTPCondAnalyzer.cc.

193  {
194  // print STRIP information
195  const EcalTPGSlidingWindowMap &slwinmap = slWin->getMap();
196  const EcalTPGFineGrainStripEEMap &fgstripEEmap = ecaltpgFgStripEE->getMap();
198  const EcalTPGGroups::EcalTPGGroupsMap &gMap = ecaltpgWeightGroup->getMap();
200 
201  std::cout << std::endl;
202  for (int mysub = 1; mysub <= 2; ++mysub) {
203  std::cout << std::endl;
204  for (it = slwinmap.begin(); it != slwinmap.end(); ++it) {
205  EcalTriggerElectronicsId elid((*it).first);
206  groupId = gMap.find((*it).first);
207  int subdet = elid.subdet();
208  if (subdet == mysub) {
209  if (subdet == 1) {
210  std::cout << "STRIP_EB " << std::dec << (*it).first << std::endl;
211  std::cout << std::hex << "0x" << (*it).second << std::endl;
212  std::cout << "" << (*groupId).second << std::endl; // weightgroupid
213  EcalTPGFineGrainStripEEMapIterator it2 = fgstripEEmap.find((*it).first);
214  if (it2 == fgstripEEmap.end()) {
215  edm::LogWarning("EcalTPGCondAnalyzer") << " could not find strip Id " << (*it).first
216  << ", given in sliding window, inside the "
217  "EcalTPGFineGranStripEEMap!!!";
218  } else {
219  EcalTPGFineGrainStripEE::Item item = (*it2).second;
220  std::cout << std::hex << "0x" << item.threshold << " 0x" << item.lut << std::endl;
221  }
222  } else if (subdet == 2) {
223  std::cout << "STRIP_EE " << std::dec << (*it).first << std::endl;
224  std::cout << std::hex << "0x" << (*it).second << std::endl;
225  std::cout << " " << (*groupId).second << std::endl; // weightgroupid
226  EcalTPGFineGrainStripEEMapIterator it2 = fgstripEEmap.find((*it).first);
227  if (it2 == fgstripEEmap.end()) {
228  edm::LogWarning("EcalTPGCondAnalyzer") << " could not find strip Id " << (*it).first
229  << ", given in sliding window, inside the "
230  "EcalTPGFineGranStripEEMap!!!";
231  } else {
232  EcalTPGFineGrainStripEE::Item item = (*it2).second;
233  std::cout << std::hex << "0x" << item.threshold << " 0x" << item.lut << std::endl;
234  }
235  }
236  }
237  }
238  }
239 }

References gather_cfg::cout, TauDecayModes::dec, EcalTPGSlidingWindow::getMap(), EcalTPGFineGrainStripEE::getMap(), EcalTPGGroups::getMap(), B2GTnPMonitor_cfi::item, and EcalTriggerElectronicsId::subdet().

Referenced by getRecords().

◆ printTOWEREB()

void EcalTPCondAnalyzer::printTOWEREB ( const EcalTPGSpike ecaltpgSpike,
const EcalTPGFineGrainEBGroup ecaltpgFgEBGroup,
const EcalTPGLutGroup ecaltpgLutGroup 
) const
private

Definition at line 411 of file EcalTPCondAnalyzer.cc.

413  {
414  const EcalTPGGroups::EcalTPGGroupsMap &lutMap = ecaltpgLutGroup->getMap();
416  const EcalTPGGroups::EcalTPGGroupsMap &fgMap = ecaltpgFgEBGroup->getMap();
418 
419  const EcalTPGSpike::EcalTPGSpikeMap &spikeThMap = ecaltpgSpikeTh->getMap();
421 
422  std::cout << std::endl;
423  for (it = fgMap.begin(); it != fgMap.end(); ++it) {
424  std::cout << "TOWER_EB " << std::dec << (*it).first << std::endl;
425  lutGroupId = lutMap.find((*it).first);
426  itSpikeTh = spikeThMap.find((*it).first);
427  std::cout << " " << (*it).second << std::endl;
428  std::cout << " " << (*lutGroupId).second << std::endl;
429  std::cout << " " << (*itSpikeTh).second << std::endl;
430  }
431 }

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

Referenced by getRecords().

◆ printTOWEREE()

void EcalTPCondAnalyzer::printTOWEREE ( const EcalTPGFineGrainTowerEE ecaltpgFineGrainTowerEE,
const EcalTPGLutGroup ecaltpgLutGroup 
) const
private

Definition at line 433 of file EcalTPCondAnalyzer.cc.

434  {
436  const EcalTPGFineGrainTowerEEMap &map = ecaltpgFineGrainTowerEE->getMap();
437  const EcalTPGGroups::EcalTPGGroupsMap &lutMap = ecaltpgLutGroup->getMap();
439 
440  std::cout << std::endl;
441  for (it = map.begin(); it != map.end(); ++it) {
442  std::cout << "TOWER_EE " << std::dec << (*it).first << std::endl;
443  lutGroupId = lutMap.find((*it).first);
444  std::cout << " " << (*lutGroupId).second << std::endl;
445  std::cout << std::hex << "0x" << (*it).second << std::endl;
446  }
447 }

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

Referenced by getRecords().

◆ printWEIGHT()

void EcalTPCondAnalyzer::printWEIGHT ( const EcalTPGWeightIdMap ecaltpgWeightMap) const
private

Definition at line 241 of file EcalTPCondAnalyzer.cc.

241  {
242  std::cout << std::endl;
244  uint32_t w0, w1, w2, w3, w4;
245  const EcalTPGWeightIdMap::EcalTPGWeightMap &map = ecaltpgWeightIdMap->getMap();
246  for (it = map.begin(); it != map.end(); ++it) {
247  std::cout << "WEIGHT " << (*it).first << std::endl;
248  (*it).second.getValues(w0, w1, w2, w3, w4);
249  std::cout << std::hex << "0x" << w0 << " 0x" << w1 << " 0x" << w2 << " 0x" << w3 << " 0x" << w4 << " " << std::endl;
250  std::cout << std::endl;
251  std::cout << std::endl;
252  }
253 }

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

Referenced by getRecords().

Member Data Documentation

◆ cacheID_

unsigned long long EcalTPCondAnalyzer::cacheID_
private

Definition at line 66 of file EcalTPCondAnalyzer.h.

Referenced by beginRun().

◆ theBarrelGeometry_

const CaloSubdetectorGeometry* EcalTPCondAnalyzer::theBarrelGeometry_
private

Definition at line 69 of file EcalTPCondAnalyzer.h.

Referenced by beginRun(), and printCRYSTAL().

◆ theEndcapGeometry_

const CaloSubdetectorGeometry* EcalTPCondAnalyzer::theEndcapGeometry_
private

Definition at line 68 of file EcalTPCondAnalyzer.h.

Referenced by beginRun(), and printCRYSTAL().

EcalCondObjectContainer::getMap
const self & getMap() const
Definition: EcalCondObjectContainer.h:80
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
EcalTPGFineGrainStripEEMapIterator
std::map< uint32_t, EcalTPGFineGrainStripEE::Item >::const_iterator EcalTPGFineGrainStripEEMapIterator
Definition: EcalTPGFineGrainStripEE.h:31
w2
common ppss p3p6s2 common epss epspn46 common const1 w2
Definition: inclppp.h:1
EcalTPGWeightIdMap
Definition: EcalTPGWeightIdMap.h:10
mps_fire.i
i
Definition: mps_fire.py:355
EcalTPGLinearizationConstant::shift_x1
uint32_t shift_x1
Definition: EcalTPGLinearizationConst.h:16
EcalTPGPedestal::mean_x1
uint32_t mean_x1
Definition: EcalTPGPedestals.h:12
EcalTPGLutIdMap::EcalTPGLutMap
std::map< uint32_t, EcalTPGLut > EcalTPGLutMap
Definition: EcalTPGLutIdMap.h:12
EcalTPGFineGrainTowerEERcd
Definition: EcalTPGFineGrainTowerEERcd.h:5
EcalTPGGroups::EcalTPGGroupsMapItr
std::map< uint32_t, uint32_t >::const_iterator EcalTPGGroupsMapItr
Definition: EcalTPGGroups.h:20
EcalTriggerElectronicsId
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
Definition: EcalTriggerElectronicsId.h:18
EcalTPGLinearizationConstant::mult_x6
uint32_t mult_x6
Definition: EcalTPGLinearizationConst.h:12
EcalTPGSpike
Definition: EcalTPGSpike.h:9
EBDetId
Definition: EBDetId.h:17
EcalTPCondAnalyzer::printEcalTPGPhysicsConst
void printEcalTPGPhysicsConst(const EcalTPGPhysicsConst *) const
Definition: EcalTPCondAnalyzer.cc:175
EcalTPCondAnalyzer::printTOWEREE
void printTOWEREE(const EcalTPGFineGrainTowerEE *ecaltpgFineGrainTowerEE, const EcalTPGLutGroup *ecaltpgLutGroup) const
Definition: EcalTPCondAnalyzer.cc:433
EcalTPGFineGrainStripEE
Definition: EcalTPGFineGrainStripEE.h:9
gather_cfg.cout
cout
Definition: gather_cfg.py:144
EcalTPGFineGrainEBIdMap
Definition: EcalTPGFineGrainEBIdMap.h:10
EcalEndcapGeometryRecord
Definition: EcalEndcapGeometryRecord.h:23
EcalTPGWeightIdMap::EcalTPGWeightMapItr
std::map< uint32_t, EcalTPGWeights >::const_iterator EcalTPGWeightMapItr
Definition: EcalTPGWeightIdMap.h:13
EcalTPGPedestalsRcd
Definition: EcalTPGPedestalsRcd.h:5
EcalTPGFineGrainStripEE::Item
Definition: EcalTPGFineGrainStripEE.h:14
EcalTPGWeightIdMap::EcalTPGWeightMap
std::map< uint32_t, EcalTPGWeights > EcalTPGWeightMap
Definition: EcalTPGWeightIdMap.h:12
EcalTPGPedestal
Definition: EcalTPGPedestals.h:8
EcalTPGLinearizationConstant
Definition: EcalTPGLinearizationConst.h:8
EcalTPGWeightGroup
Definition: EcalTPGWeightGroup.h:13
EcalCondObjectContainer< EcalTPGLinearizationConstant >
EcalTPGFineGrainStripEERcd
Definition: EcalTPGFineGrainStripEERcd.h:5
EcalBarrelGeometryRecord
Definition: EcalBarrelGeometryRecord.h:23
EcalBarrel
Definition: EcalSubdetector.h:10
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
EcalTPGLutGroup
Definition: EcalTPGLutGroup.h:13
EcalTPGFineGrainTowerEE::getMap
const std::map< uint32_t, uint32_t > & getMap() const
Definition: EcalTPGFineGrainTowerEE.h:15
EcalTPGSlidingWindow
Definition: EcalTPGSlidingWindow.h:9
EcalTPGFineGrainTowerEE
Definition: EcalTPGFineGrainTowerEE.h:9
EcalTPGFineGrainTowerEEMapIterator
std::map< uint32_t, uint32_t >::const_iterator EcalTPGFineGrainTowerEEMapIterator
Definition: EcalTPGFineGrainTowerEE.h:25
EcalTPCondAnalyzer::printComment
void printComment() const
Definition: EcalTPCondAnalyzer.cc:312
EcalTPGFineGrainTowerEEMap
std::map< uint32_t, uint32_t > EcalTPGFineGrainTowerEEMap
Definition: EcalTPGFineGrainTowerEE.h:24
edm::ESHandle< CaloSubdetectorGeometry >
EcalTPGSpikeRcd
Definition: EcalTPGSpikeRcd.h:5
EcalTPCondAnalyzer::printEcalTPGLutIdMap
void printEcalTPGLutIdMap(const EcalTPGLutIdMap *ecaltpgLut) const
Definition: EcalTPCondAnalyzer.cc:269
EcalTPGFineGrainEBGroupRcd
Definition: EcalTPGFineGrainEBGroupRcd.h:5
EcalTPCondAnalyzer::printWEIGHT
void printWEIGHT(const EcalTPGWeightIdMap *ecaltpgWeightMap) const
Definition: EcalTPCondAnalyzer.cc:241
EcalTPGSlidingWindowMapIterator
std::map< uint32_t, uint32_t >::const_iterator EcalTPGSlidingWindowMapIterator
Definition: EcalTPGSlidingWindow.h:24
CaloSubdetectorGeometry::getValidDetIds
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)
Definition: CaloSubdetectorGeometry.cc:32
w4
common ppss p3p6s2 common epss epspn46 common const1 w4
Definition: inclppp.h:1
EEDetId
Definition: EEDetId.h:14
EcalTPGLutIdMap
Definition: EcalTPGLutIdMap.h:10
EcalEndcap
Definition: EcalSubdetector.h:10
edm::LogWarning
Definition: MessageLogger.h:141
EcalTPCondAnalyzer::printSTRIP
void printSTRIP(const EcalTPGSlidingWindow *ecaltpgSlidW, const EcalTPGWeightGroup *ecaltpgWeightGroup, const EcalTPGFineGrainStripEE *ecaltpgFgStripEE) const
Definition: EcalTPCondAnalyzer.cc:191
EcalTPGPhysicsConst::getMap
const std::map< uint32_t, Item > & getMap() const
Definition: EcalTPGPhysicsConst.h:27
EcalTPGSlidingWindowMap
std::map< uint32_t, uint32_t > EcalTPGSlidingWindowMap
Definition: EcalTPGSlidingWindow.h:23
EcalTPGFineGrainStripEE::getMap
const std::map< uint32_t, Item > & getMap() const
Definition: EcalTPGFineGrainStripEE.h:21
EcalTPGFineGrainEBGroup
Definition: EcalTPGFineGrainEBGroup.h:13
EcalTPGLinearizationConstant::mult_x12
uint32_t mult_x12
Definition: EcalTPGLinearizationConst.h:11
EcalTPGLinearizationConstant::mult_x1
uint32_t mult_x1
Definition: EcalTPGLinearizationConst.h:13
EcalTPCondAnalyzer::theBarrelGeometry_
const CaloSubdetectorGeometry * theBarrelGeometry_
Definition: EcalTPCondAnalyzer.h:69
EcalTPGPedestal::mean_x6
uint32_t mean_x6
Definition: EcalTPGPedestals.h:11
EcalTPGFineGrainEBIdMapRcd
Definition: EcalTPGFineGrainEBIdMapRcd.h:5
EcalTPCondAnalyzer::theEndcapGeometry_
const CaloSubdetectorGeometry * theEndcapGeometry_
Definition: EcalTPCondAnalyzer.h:68
w3
common ppss p3p6s2 common epss epspn46 common const1 w3
Definition: inclppp.h:1
EcalTPCondAnalyzer::printEcalTPGFineGrainEBIdMap
void printEcalTPGFineGrainEBIdMap(const EcalTPGFineGrainEBIdMap *ecaltpgFineGrainEB) const
Definition: EcalTPCondAnalyzer.cc:255
EcalTPGGroups::getMap
const EcalTPGGroupsMap & getMap() const
Definition: EcalTPGGroups.h:25
EcalTPGLinearizationConstant::shift_x6
uint32_t shift_x6
Definition: EcalTPGLinearizationConst.h:15
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
EcalTPGFineGrainStripEEMap
std::map< uint32_t, EcalTPGFineGrainStripEE::Item > EcalTPGFineGrainStripEEMap
Definition: EcalTPGFineGrainStripEE.h:30
EcalTPGLinearizationConstant::shift_x12
uint32_t shift_x12
Definition: EcalTPGLinearizationConst.h:14
DetId::Ecal
Definition: DetId.h:27
get
#define get
EcalTPGWeightGroupRcd
Definition: EcalTPGWeightGroupRcd.h:5
EcalTPGPhysicsConst
Definition: EcalTPGPhysicsConst.h:9
EcalTPGPhysicsConstMap
std::map< uint32_t, EcalTPGPhysicsConst::Item > EcalTPGPhysicsConstMap
Definition: EcalTPGPhysicsConst.h:36
EcalTPGLutIdMapRcd
Definition: EcalTPGLutIdMapRcd.h:5
EcalTPGWeightIdMapRcd
Definition: EcalTPGWeightIdMapRcd.h:5
LUT
std::vector< unsigned short int > LUT
Definition: DTTracoLUTs.h:31
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
EcalTPGSlidingWindowRcd
Definition: EcalTPGSlidingWindowRcd.h:5
EcalTPGLutIdMap::EcalTPGLutMapItr
std::map< uint32_t, EcalTPGLut >::const_iterator EcalTPGLutMapItr
Definition: EcalTPGLutIdMap.h:13
EcalTPCondAnalyzer::printTOWEREB
void printTOWEREB(const EcalTPGSpike *ecaltpgSpike, const EcalTPGFineGrainEBGroup *ecaltpgFgEBGroup, const EcalTPGLutGroup *ecaltpgLutGroup) const
Definition: EcalTPCondAnalyzer.cc:411
EcalTPGFineGrainEBIdMap::EcalTPGFineGrainEBMap
std::map< uint32_t, EcalTPGFineGrainConstEB > EcalTPGFineGrainEBMap
Definition: EcalTPGFineGrainEBIdMap.h:12
EcalTPGFineGrainEBIdMap::EcalTPGFineGrainEBMapItr
std::map< uint32_t, EcalTPGFineGrainConstEB >::const_iterator EcalTPGFineGrainEBMapItr
Definition: EcalTPGFineGrainEBIdMap.h:13
EcalTPCondAnalyzer::getRecords
unsigned long long getRecords(edm::EventSetup const &setup)
Definition: EcalTPCondAnalyzer.cc:74
genParticles_cff.map
map
Definition: genParticles_cff.py:11
EcalTPGFineGrainEBIdMap::getMap
const EcalTPGFineGrainEBMap & getMap() const
Definition: EcalTPGFineGrainEBIdMap.h:18
EcalTPGLutGroupRcd
Definition: EcalTPGLutGroupRcd.h:5
EcalTPGSpike::EcalTPGSpikeMapIterator
std::map< uint32_t, uint16_t >::const_iterator EcalTPGSpikeMapIterator
Definition: EcalTPGSpike.h:12
EcalTPCondAnalyzer::printCRYSTAL
void printCRYSTAL(const EcalTPGPedestals *ecaltpPed, const EcalTPGLinearizationConst *ecaltpLin)
Definition: EcalTPCondAnalyzer.cc:282
EcalTPGLinearizationConstRcd
Definition: EcalTPGLinearizationConstRcd.h:5
EcalTPGPhysicsConstMapIterator
std::map< uint32_t, EcalTPGPhysicsConst::Item >::const_iterator EcalTPGPhysicsConstMapIterator
Definition: EcalTPGPhysicsConst.h:37
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
EcalTPGPhysicsConstRcd
Definition: EcalTPGPhysicsConstRcd.h:5
EcalTPGLutIdMap::getMap
const EcalTPGLutMap & getMap() const
Definition: EcalTPGLutIdMap.h:18
EcalTPGPedestal::mean_x12
uint32_t mean_x12
Definition: EcalTPGPedestals.h:10
EcalTPCondAnalyzer::cacheID_
unsigned long long cacheID_
Definition: EcalTPCondAnalyzer.h:66
EcalTPGSpike::EcalTPGSpikeMap
std::map< uint32_t, uint16_t > EcalTPGSpikeMap
Definition: EcalTPGSpike.h:11
EcalTPGGroups::EcalTPGGroupsMap
std::map< uint32_t, uint32_t > EcalTPGGroupsMap
Definition: EcalTPGGroups.h:19