CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1TCaloParamsViewer Class Reference
Inheritance diagram for L1TCaloParamsViewer:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
 L1TCaloParamsViewer (const edm::ParameterSet &pset)
 
 ~L1TCaloParamsViewer (void) override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, 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
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

std::string hash (void *buf, size_t len) const
 

Private Attributes

edm::ESGetToken< l1t::CaloParams, L1TCaloParamsRcdparamsToken_
 
bool printEcalSF
 
bool printEgCalibLUT
 
bool printEgIsoLUT
 
bool printEtSumEcalSumCalibrationLUT
 
bool printEtSumEcalSumPUSLUT
 
bool printEtSumEttCalibrationLUT
 
bool printEtSumEttPUSLUT
 
bool printEtSumMetPUSLUT
 
bool printHcalSF
 
bool printHfSF
 
bool printJetCalibLUT
 
bool printJetCalibPar
 
bool printJetCompressEtaLUT
 
bool printJetCompressPtLUT
 
bool printJetPUSPar
 
bool printMetCalibrationLUT
 
bool printMetHFCalibrationLUT
 
bool printMetHFPhiCalibrationLUT
 
bool printMetPhiCalibrationLUT
 
bool printPUSParams
 
bool printTauCalibLUT
 
bool printTauCompressLUT
 
edm::ESGetToken< l1t::CaloParams, L1TCaloStage2ParamsRcdstage2ParamsToken_
 
bool useStage2Rcd
 

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)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 15 of file L1TCaloParamsViewer.cc.

Constructor & Destructor Documentation

◆ L1TCaloParamsViewer()

L1TCaloParamsViewer::L1TCaloParamsViewer ( const edm::ParameterSet pset)
inlineexplicit

Definition at line 49 of file L1TCaloParamsViewer.cc.

References edm::EDConsumerBase::esConsumes(), paramsToken_, printEcalSF, printEgCalibLUT, printEgIsoLUT, printEtSumEcalSumCalibrationLUT, printEtSumEcalSumPUSLUT, printEtSumEttCalibrationLUT, printEtSumEttPUSLUT, printEtSumMetPUSLUT, printHcalSF, printHfSF, printJetCalibLUT, printJetCalibPar, printJetCompressEtaLUT, printJetCompressPtLUT, printJetPUSPar, printMetCalibrationLUT, printMetHFCalibrationLUT, printPUSParams, printTauCalibLUT, printTauCompressLUT, muonDTDigis_cfi::pset, stage2ParamsToken_, and useStage2Rcd.

49  {
50  printPUSParams = pset.getUntrackedParameter<bool>("printPUSParams", false);
51  printTauCalibLUT = pset.getUntrackedParameter<bool>("printTauCalibLUT", false);
52  printTauCompressLUT = pset.getUntrackedParameter<bool>("printTauCompressLUT", false);
53  printJetCalibLUT = pset.getUntrackedParameter<bool>("printJetCalibLUT", false);
54  printJetCalibPar = pset.getUntrackedParameter<bool>("printJetCalibParams", false);
55  printJetPUSPar = pset.getUntrackedParameter<bool>("printJetPUSPar", false);
56  printJetCompressPtLUT = pset.getUntrackedParameter<bool>("printJetCompressPtLUT", false);
57  printJetCompressEtaLUT = pset.getUntrackedParameter<bool>("printJetCompressEtaLUT", false);
58  printEgCalibLUT = pset.getUntrackedParameter<bool>("printEgCalibLUT", false);
59  printEgIsoLUT = pset.getUntrackedParameter<bool>("printEgIsoLUT", false);
60  printEtSumMetPUSLUT = pset.getUntrackedParameter<bool>("printEtSumMetPUSLUT", false);
61  printHfSF = pset.getUntrackedParameter<bool>("printHfSF", false);
62  printHcalSF = pset.getUntrackedParameter<bool>("printHcalSF", false);
63  printEcalSF = pset.getUntrackedParameter<bool>("printEcalSF", false);
64  printEtSumEttPUSLUT = pset.getUntrackedParameter<bool>("printEtSumEttPUSLUT", false);
65  printEtSumEcalSumPUSLUT = pset.getUntrackedParameter<bool>("printEtSumEcalSumPUSLUT", false);
66  printMetCalibrationLUT = pset.getUntrackedParameter<bool>("printMetCalibrationLUT", false);
67  printMetHFCalibrationLUT = pset.getUntrackedParameter<bool>("printMetHFCalibrationLUT", false);
68  printEtSumEttCalibrationLUT = pset.getUntrackedParameter<bool>("printEtSumEttCalibrationLUT", false);
69  printEtSumEcalSumCalibrationLUT = pset.getUntrackedParameter<bool>("printEtSumEcalSumCalibrationLUT", false);
70 
71  useStage2Rcd = pset.getUntrackedParameter<bool>("useStage2Rcd", false);
72 
73  if (useStage2Rcd)
75  else
77  }
edm::ESGetToken< l1t::CaloParams, L1TCaloStage2ParamsRcd > stage2ParamsToken_
edm::ESGetToken< l1t::CaloParams, L1TCaloParamsRcd > paramsToken_

◆ ~L1TCaloParamsViewer()

L1TCaloParamsViewer::~L1TCaloParamsViewer ( void  )
inlineoverride

Definition at line 79 of file L1TCaloParamsViewer.cc.

79 {}

Member Function Documentation

◆ analyze()

void L1TCaloParamsViewer::analyze ( const edm::Event iEvent,
const edm::EventSetup evSetup 
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 115 of file L1TCaloParamsViewer.cc.

References reco::ceil(), l1t::CaloParamsHelper::centralityLUT(), l1t::CaloParamsHelper::centralityRegionMask(), gather_cfg::cout, l1t::LUT::data(), l1t::CaloParamsHelper::doTowerEncoding(), l1t::CaloParamsHelper::egBypassECALFG(), l1t::CaloParamsHelper::egBypassEGVetos(), l1t::CaloParamsHelper::egBypassExtHOverE(), l1t::CaloParamsHelper::egBypassShape(), l1t::CaloParamsHelper::egCalibrationLUT(), l1t::CaloParamsHelper::egCalibrationParams(), l1t::CaloParamsHelper::egCalibrationType(), l1t::CaloParamsHelper::egCalibrationVersion(), l1t::CaloParamsHelper::egCompressShapesLUT(), l1t::CaloParamsHelper::egHcalThreshold(), l1t::CaloParamsHelper::egHOverEcutBarrel(), l1t::CaloParamsHelper::egHOverEcutEndcap(), l1t::CaloParamsHelper::egIsoAreaNrTowersEta(), l1t::CaloParamsHelper::egIsoAreaNrTowersPhi(), l1t::CaloParamsHelper::egIsolationLUT(), l1t::CaloParamsHelper::egIsolationLUT2(), l1t::CaloParamsHelper::egIsolationType(), l1t::CaloParamsHelper::egIsoVetoNrTowersPhi(), l1t::CaloParamsHelper::egLsb(), l1t::CaloParamsHelper::egMaxHcalEt(), caloParams_cfi::egMaxHOverE, l1t::CaloParamsHelper::egMaxHOverELUT(), l1t::CaloParamsHelper::egMaxPtHOverE(), l1t::CaloParamsHelper::egMaxPtHOverEIsolation(), l1t::CaloParamsHelper::egMaxPtJetIsolation(), l1t::CaloParamsHelper::egMinPtHOverEIsolation(), l1t::CaloParamsHelper::egMinPtJetIsolation(), l1t::CaloParamsHelper::egNeighbourThreshold(), caloParams_2018_v1_0_ECALZS_inconsistent_cfi::egPUSParams, l1t::CaloParamsHelper::egPUSParams(), l1t::CaloParamsHelper::egPUSType(), l1t::CaloParamsHelper::egSeedThreshold(), l1t::CaloParamsHelper::egShapeIdLUT(), l1t::CaloParamsHelper::egShapeIdType(), l1t::CaloParamsHelper::egShapeIdVersion(), l1t::CaloParamsHelper::egTrimmingLUT(), l1t::LUT::empty(), l1t::CaloParamsHelper::etSumBypassEcalSumPUS(), l1t::CaloParamsHelper::etSumBypassEttPUS(), l1t::CaloParamsHelper::etSumBypassMetPUS(), l1t::CaloParamsHelper::etSumCentLower(), l1t::CaloParamsHelper::etSumCentUpper(), l1t::CaloParamsHelper::etSumEcalSumCalibrationLUT(), l1t::CaloParamsHelper::etSumEcalSumCalibrationType(), l1t::CaloParamsHelper::etSumEcalSumPUSLUT(), l1t::CaloParamsHelper::etSumEcalSumPUSType(), l1t::CaloParamsHelper::etSumEtaMax(), l1t::CaloParamsHelper::etSumEtaMin(), l1t::CaloParamsHelper::etSumEttCalibrationLUT(), l1t::CaloParamsHelper::etSumEttCalibrationType(), l1t::CaloParamsHelper::etSumEtThreshold(), l1t::CaloParamsHelper::etSumEttPUSLUT(), l1t::CaloParamsHelper::etSumEttPUSType(), l1t::CaloParamsHelper::etSumLsb(), l1t::CaloParamsHelper::etSumMetPUSLUT(), l1t::CaloParamsHelper::etSumMetPUSType(), edm::EventSetup::getHandle(), cond::hash, l1tTowerCalibrationProducer_cfi::hfSF, mps_fire::i, createfilelist::int, l1t::CaloParamsHelper::isoTauEtaMax(), l1t::CaloParamsHelper::isoTauEtaMin(), l1t::CaloParamsHelper::jetBypassPUS(), l1t::CaloParamsHelper::jetCalibrationLUT(), l1t::CaloParamsHelper::jetCalibrationType(), l1t::CaloParamsHelper::jetCompressEtaLUT(), l1t::CaloParamsHelper::jetCompressPtLUT(), l1t::CaloParamsHelper::jetLsb(), l1t::CaloParamsHelper::jetNeighbourThreshold(), l1t::CaloParamsHelper::jetPUSUsePhiRing(), l1t::CaloParamsHelper::jetRegionMask(), l1t::CaloParamsHelper::jetSeedThreshold(), l1t::CaloParamsHelper::layer1ECalScaleETBins(), l1t::CaloParamsHelper::layer1ECalScaleFactors(), l1t::CaloParamsHelper::layer1ECalScalePhiBins(), l1t::CaloParamsHelper::layer1HCalScaleETBins(), l1t::CaloParamsHelper::layer1HCalScaleFactors(), l1t::CaloParamsHelper::layer1HCalScalePhiBins(), l1t::CaloParamsHelper::layer1HFScaleETBins(), l1t::CaloParamsHelper::layer1HFScaleFactors(), caloStage2Params_2017_v2_1_inconsistent_cfi::layer1HFScalePhiBins, l1t::CaloParamsHelper::layer1HFScalePhiBins(), l1t::LUT::maxSize(), l1t::CaloParamsHelper::metCalibrationLUT(), l1t::CaloParamsHelper::metCalibrationType(), l1t::CaloParamsHelper::metHFCalibrationLUT(), l1t::CaloParamsHelper::metHFCalibrationType(), l1t::CaloParamsHelper::metHFPhiCalibrationLUT(), l1t::CaloParamsHelper::metPhiCalibrationLUT(), l1t::CaloParamsHelper::minimumBiasThresholds(), l1t::CaloParamsHelper::pileUpTowerThreshold(), l1t::CaloParamsHelper::q2LUT(), l1t::CaloParamsHelper::regionLsb(), l1t::CaloParamsHelper::regionPUSLUT(), l1t::CaloParamsHelper::regionPUSParams(), l1t::CaloParamsHelper::regionPUSType(), l1t::CaloParamsHelper::tauCalibrationLUT(), l1t::CaloParamsHelper::tauCalibrationParams(), l1t::CaloParamsHelper::tauCalibrationType(), l1t::CaloParamsHelper::tauCompressLUT(), l1t::CaloParamsHelper::tauEtToHFRingEtLUT(), l1t::CaloParamsHelper::tauIsoAreaNrTowersEta(), l1t::CaloParamsHelper::tauIsoAreaNrTowersPhi(), l1t::CaloParamsHelper::tauIsolationLUT(), l1t::CaloParamsHelper::tauIsolationLUT2(), l1t::CaloParamsHelper::tauIsoVetoNrTowersPhi(), l1t::CaloParamsHelper::tauLsb(), l1t::CaloParamsHelper::tauMaxJetIsolationA(), l1t::CaloParamsHelper::tauMaxJetIsolationB(), l1t::CaloParamsHelper::tauMaxPtTauVeto(), l1t::CaloParamsHelper::tauMinPtJetIsolationB(), caloParams_2018_v1_0_ECALZS_inconsistent_cfi::tauPUSParams, l1t::CaloParamsHelper::tauPUSParams(), l1t::CaloParamsHelper::tauPUSType(), l1t::CaloParamsHelper::tauRegionMask(), l1t::CaloParamsHelper::tauTrimmingShapeVetoLUT(), l1t::CaloParamsHelper::towerLsbE(), l1t::CaloParamsHelper::towerLsbH(), l1t::CaloParamsHelper::towerLsbSum(), l1t::CaloParamsHelper::towerMaskE(), l1t::CaloParamsHelper::towerMaskH(), l1t::CaloParamsHelper::towerMaskSum(), l1t::CaloParamsHelper::towerNBitsE(), l1t::CaloParamsHelper::towerNBitsH(), l1t::CaloParamsHelper::towerNBitsRatio(), and l1t::CaloParamsHelper::towerNBitsSum().

115  {
117  if (useStage2Rcd)
118  handle1 = evSetup.getHandle(stage2ParamsToken_);
119  else
120  handle1 = evSetup.getHandle(paramsToken_);
121 
122  l1t::CaloParams const& ptr = *handle1;
123 
124  l1t::CaloParamsHelper const* ptr1 = nullptr;
125  ptr1 = (l1t::CaloParamsHelper const*)(&(ptr));
126 
127  edm::LogInfo("") << "L1TCaloParamsViewer:";
128 
129  cout << endl << " Towers: " << endl;
130  cout << " towerLsbH= " << ptr1->towerLsbH() << endl;
131  cout << " towerLsbE= " << ptr1->towerLsbE() << endl;
132  cout << " towerLsbSum= " << ptr1->towerLsbSum() << endl;
133  cout << " towerNBitsH= " << ptr1->towerNBitsH() << endl;
134  cout << " towerNBitsE= " << ptr1->towerNBitsE() << endl;
135  cout << " towerNBitsSum= " << ptr1->towerNBitsSum() << endl;
136  cout << " towerNBitsRatio= " << ptr1->towerNBitsRatio() << endl;
137  cout << " towerMaskE= " << ptr1->towerMaskE() << endl;
138  cout << " towerMaskH= " << ptr1->towerMaskH() << endl;
139  cout << " towerMaskSum= " << ptr1->towerMaskSum() << endl;
140  cout << " towerEncoding= " << ptr1->doTowerEncoding() << endl;
141 
142  cout << endl << " Regions: " << endl;
143  cout << " regionLsb= " << ptr1->regionLsb() << endl;
144  cout << " regionPUSType= " << ptr1->regionPUSType() << endl;
145  cout << " regionPUSParams= [" << ptr1->regionPUSParams().size() << "] ";
146  float pusParams[ptr1->regionPUSParams().size()];
147  for (unsigned int i = 0; i < ptr1->regionPUSParams().size(); i++) {
148  pusParams[i] = ceil(2 * ptr1->regionPUSParams()[i]);
149  if (printPUSParams)
150  cout << " " << ceil(2 * pusParams[i]) << endl;
151  }
152 
153  if (!ptr1->regionPUSParams().empty())
154  cout << hash(pusParams, sizeof(float) * ptr1->regionPUSParams().size()) << endl;
155  else
156  cout << endl;
157 
158  if (!ptr1->regionPUSLUT()->empty()) {
159  cout << " regionPUSLUT= [" << ptr1->regionPUSLUT()->maxSize() << "] ";
160  int regionPUSLUT[ptr1->regionPUSLUT()->maxSize()];
161  for (unsigned int i = 0; i < ptr1->regionPUSLUT()->maxSize(); i++)
162  regionPUSLUT[i] = ptr1->regionPUSLUT()->data(i);
163  cout << hash(regionPUSLUT, sizeof(int) * ptr1->regionPUSLUT()->maxSize()) << endl;
164  } else {
165  cout << " regionPUSLUT= [0]" << endl;
166  }
167 
168  cout << " pileUpTowerThreshold= " << ptr1->pileUpTowerThreshold() << endl;
169 
170  cout << endl << " EG: " << endl;
171  cout << " egLsb= " << ptr1->egLsb() << endl;
172  cout << " egSeedThreshold= " << ptr1->egSeedThreshold() << endl;
173  cout << " egNeighbourThreshold= " << ptr1->egNeighbourThreshold() << endl;
174  cout << " egHcalThreshold= " << ptr1->egHcalThreshold() << endl;
175 
176  if (!ptr1->egTrimmingLUT()->empty()) {
177  cout << " egTrimmingLUT= [" << ptr1->egTrimmingLUT()->maxSize() << "] " << flush;
178  int egTrimming[ptr1->egTrimmingLUT()->maxSize()];
179  for (unsigned int i = 0; i < ptr1->egTrimmingLUT()->maxSize(); i++)
180  egTrimming[i] = ptr1->egTrimmingLUT()->data(i);
181  cout << hash(egTrimming, sizeof(int) * ptr1->egTrimmingLUT()->maxSize()) << endl;
182  } else {
183  cout << " egTrimmingLUT= [0] " << endl;
184  }
185 
186  cout << " egMaxHcalEt= " << ptr1->egMaxHcalEt() << endl;
187  cout << " egMaxPtHOverE= " << ptr1->egMaxPtHOverE() << endl;
188  cout << " egMinPtJetIsolation= " << ptr1->egMinPtJetIsolation() << endl;
189  cout << " egMaxPtJetIsolation= " << ptr1->egMaxPtJetIsolation() << endl;
190  cout << " egMinPtHOverEIsolation= " << ptr1->egMinPtHOverEIsolation() << endl;
191  cout << " egMaxPtHOverEIsolation= " << ptr1->egMaxPtHOverEIsolation() << endl;
192 
193  if (!ptr1->egMaxHOverELUT()->empty()) {
194  cout << " egMaxHOverELUT= [" << ptr1->egMaxHOverELUT()->maxSize() << "] ";
195  int egMaxHOverE[ptr1->egMaxHOverELUT()->maxSize()];
196  for (unsigned int i = 0; i < ptr1->egMaxHOverELUT()->maxSize(); i++)
197  egMaxHOverE[i] = ptr1->egMaxHOverELUT()->data(i);
198  cout << hash(egMaxHOverE, sizeof(int) * ptr1->egMaxHOverELUT()->maxSize()) << endl;
199  } else {
200  cout << " egMaxHOverELUT= [0]" << endl;
201  }
202 
203  if (!ptr1->egCompressShapesLUT()->empty()) {
204  cout << " egCompressShapesLUT= [" << ptr1->egCompressShapesLUT()->maxSize() << "] ";
205  int egCompressShapes[ptr1->egCompressShapesLUT()->maxSize()];
206  for (unsigned int i = 0; i < ptr1->egCompressShapesLUT()->maxSize(); i++)
207  egCompressShapes[i] = ptr1->egCompressShapesLUT()->data(i);
208  cout << hash(egCompressShapes, sizeof(int) * ptr1->egCompressShapesLUT()->maxSize()) << endl;
209  } else {
210  cout << " egCompressShapesLUT= [0]" << endl;
211  }
212 
213  cout << " egShapeIdType= " << ptr1->egShapeIdType() << endl;
214  cout << " egShapeIdVersion= " << ptr1->egShapeIdVersion() << endl;
215  if (!ptr1->egShapeIdLUT()->empty()) {
216  cout << " egShapeIdLUT= [" << ptr1->egShapeIdLUT()->maxSize() << "] " << flush;
217  int egShapeId[ptr1->egShapeIdLUT()->maxSize()];
218  for (unsigned int i = 0; i < ptr1->egShapeIdLUT()->maxSize(); i++)
219  egShapeId[i] = ptr1->egShapeIdLUT()->data(i);
220  cout << hash(egShapeId, sizeof(int) * ptr1->egShapeIdLUT()->maxSize()) << endl;
221  } else {
222  cout << " egShapeIdLUT= [0]" << endl;
223  }
224 
225  cout << " egBypassEGVetos= " << ptr1->egBypassEGVetos() << endl;
226  cout << " egBypassShape= " << ptr1->egBypassShape() << endl;
227  cout << " egBypassExtHoverE= " << ptr1->egBypassExtHOverE() << endl;
228  cout << " egBypassECALFG= " << ptr1->egBypassECALFG() << endl;
229  cout << " egHOverEcutBarrel= " << ptr1->egHOverEcutBarrel() << endl;
230  cout << " egHOverEcutEndcap= " << ptr1->egHOverEcutEndcap() << endl;
231 
232  cout << " egPUSType= " << ptr1->egPUSType() << endl;
233 
234  cout << " egIsolationType= " << ptr1->egIsolationType() << endl;
235  if (!ptr1->egIsolationLUT()->empty()) {
236  cout << " egIsoLUT= [" << ptr1->egIsolationLUT()->maxSize() << "] " << flush;
237  int egIsolation[ptr1->egIsolationLUT()->maxSize()];
238  for (unsigned int i = 0; i < ptr1->egIsolationLUT()->maxSize(); i++)
239  egIsolation[i] = ptr1->egIsolationLUT()->data(i);
240  cout << hash(egIsolation, sizeof(int) * ptr1->egIsolationLUT()->maxSize()) << endl;
241  if (printEgIsoLUT)
242  for (unsigned int i = 0; i < ptr1->egIsolationLUT()->maxSize(); i++)
243  cout << i << " " << egIsolation[i] << endl;
244  } else {
245  cout << " egIsoLUT= [0]" << endl;
246  }
247  if (!ptr1->egIsolationLUT2()->empty()) {
248  cout << " egIsoLUT2= [" << ptr1->egIsolationLUT2()->maxSize() << "] " << flush;
249  int egIsolation2[ptr1->egIsolationLUT2()->maxSize()];
250  for (unsigned int i = 0; i < ptr1->egIsolationLUT2()->maxSize(); i++)
251  egIsolation2[i] = ptr1->egIsolationLUT2()->data(i);
252  cout << hash(egIsolation2, sizeof(int) * ptr1->egIsolationLUT2()->maxSize()) << endl;
253  if (printEgIsoLUT)
254  for (unsigned int i = 0; i < ptr1->egIsolationLUT2()->maxSize(); i++)
255  cout << i << " " << egIsolation2[i] << endl;
256  } else {
257  cout << " egIsoLUT2= [0]" << endl;
258  }
259 
260  cout << " egIsoAreaNrTowersEta= " << ptr1->egIsoAreaNrTowersEta() << endl;
261  cout << " egIsoAreaNrTowersPhi= " << ptr1->egIsoAreaNrTowersPhi() << endl;
262  cout << " egIsoVetoNrTowersPhi= " << ptr1->egIsoVetoNrTowersPhi() << endl;
263  cout << " egPUSParams= [" << ptr1->egPUSParams().size() << "] " << flush;
264  float egPUSParams[ptr1->egPUSParams().size()];
265  for (unsigned int i = 0; i < ptr1->egPUSParams().size(); i++)
266  egPUSParams[i] = ptr1->egPUSParams()[i];
267 
268  if (!ptr1->egPUSParams().empty())
269  cout << hash(egPUSParams, sizeof(float) * ptr1->egPUSParams().size()) << endl;
270  else
271  cout << endl;
272 
273  cout << " egCalibrationParams= [" << ptr1->egCalibrationParams().size() << "] " << flush;
274  double egCalibrationParams[ptr1->egCalibrationParams().size()];
275  for (unsigned int i = 0; i < ptr1->egCalibrationParams().size(); i++)
276  egCalibrationParams[i] = ptr1->egCalibrationParams()[i];
277 
278  if (!ptr1->egCalibrationParams().empty())
279  cout << hash(egCalibrationParams, sizeof(double) * ptr1->egCalibrationParams().size()) << endl;
280  else
281  cout << endl;
282 
283  cout << " egCalibrationType= " << ptr1->egCalibrationType() << endl;
284  cout << " egCalibrationVersion= " << ptr1->egCalibrationVersion() << endl;
285  if (!ptr1->egCalibrationLUT()->empty()) {
286  cout << " egCalibrationLUT= [" << ptr1->egCalibrationLUT()->maxSize() << "] " << flush;
287  int egCalibration[ptr1->egCalibrationLUT()->maxSize()];
288  for (unsigned int i = 0; i < ptr1->egCalibrationLUT()->maxSize(); i++)
289  egCalibration[i] = ptr1->egCalibrationLUT()->data(i);
290  cout << hash(egCalibration, sizeof(int) * ptr1->egCalibrationLUT()->maxSize()) << endl;
291  if (printEgCalibLUT)
292  for (unsigned int i = 0; i < ptr1->egCalibrationLUT()->maxSize(); i++)
293  cout << i << " " << egCalibration[i] << endl;
294  } else {
295  cout << " egCalibrationLUT= [0]" << endl;
296  }
297 
298  cout << endl << " Tau: " << endl;
299  cout << " tauLsb= " << ptr1->tauLsb() << endl;
300  //cout<<" tauSeedThreshold= "<<ptr1->tauSeedThreshold()<<endl;
301  //cout<<" tauNeighbourThreshold= "<<ptr1->tauNeighbourThreshold()<<endl;
302  cout << " tauMaxPtTauVeto= " << ptr1->tauMaxPtTauVeto() << endl;
303  cout << " tauMinPtJetIsolationB= " << ptr1->tauMinPtJetIsolationB() << endl;
304  cout << " tauPUSType= " << ptr1->tauPUSType() << endl;
305  cout << " tauMaxJetIsolationB= " << ptr1->tauMaxJetIsolationB() << endl;
306  cout << " tauMaxJetIsolationA= " << ptr1->tauMaxJetIsolationA() << endl;
307  cout << " tauIsoAreaNrTowersEta= " << ptr1->tauIsoAreaNrTowersEta() << endl;
308  cout << " tauIsoAreaNrTowersPhi= " << ptr1->tauIsoAreaNrTowersPhi() << endl;
309  cout << " tauIsoVetoNrTowersPhi= " << ptr1->tauIsoVetoNrTowersPhi() << endl;
310  if (!ptr1->tauIsolationLUT()->empty()) {
311  cout << " tauIsoLUT= [" << ptr1->tauIsolationLUT()->maxSize() << "] " << flush;
312  int tauIsolation[ptr1->tauIsolationLUT()->maxSize()];
313  for (unsigned int i = 0; i < ptr1->tauIsolationLUT()->maxSize(); i++)
314  tauIsolation[i] = ptr1->tauIsolationLUT()->data(i);
315  cout << hash(tauIsolation, sizeof(int) * ptr1->tauIsolationLUT()->maxSize()) << endl;
316  } else {
317  cout << " tauIsoLUT= [0]" << endl;
318  }
319  if (!ptr1->tauIsolationLUT2()->empty()) {
320  cout << " tauIsoLUT2= [" << ptr1->tauIsolationLUT2()->maxSize() << "] " << flush;
321  int tauIsolation2[ptr1->tauIsolationLUT2()->maxSize()];
322  for (unsigned int i = 0; i < ptr1->tauIsolationLUT2()->maxSize(); i++)
323  tauIsolation2[i] = ptr1->tauIsolationLUT2()->data(i);
324  cout << hash(tauIsolation2, sizeof(int) * ptr1->tauIsolationLUT2()->maxSize()) << endl;
325  } else {
326  cout << " tauIsoLUT2= [0]" << endl;
327  }
328  if (!ptr1->tauTrimmingShapeVetoLUT()->empty()) {
329  cout << " tauTrimmingShapeVetoLUT=[" << ptr1->tauTrimmingShapeVetoLUT()->maxSize() << "] " << flush;
330  int tauTrimmingShapeVetoLUT[ptr1->tauTrimmingShapeVetoLUT()->maxSize()];
331  for (unsigned int i = 0; i < ptr1->tauTrimmingShapeVetoLUT()->maxSize(); i++)
332  tauTrimmingShapeVetoLUT[i] = ptr1->tauTrimmingShapeVetoLUT()->data(i);
333  cout << hash(tauTrimmingShapeVetoLUT, sizeof(int) * ptr1->tauTrimmingShapeVetoLUT()->maxSize()) << endl;
334  } else {
335  cout << " tauTrimmingShapeVetoLUT=[0]" << endl;
336  }
337 
338  if (!ptr1->tauCalibrationLUT()->empty()) {
339  cout << " tauCalibrationLUT= [" << ptr1->tauCalibrationLUT()->maxSize() << "] " << flush;
340  int tauCalibration[512]; //ptr1->tauCalibrationLUT()->maxSize()];
341  for (unsigned int i = 0; i < 512; i++) //ptr1->tauCalibrationLUT()->maxSize(); i++)
342  tauCalibration[i] = ptr1->tauCalibrationLUT()->data(i);
343  cout << hash(tauCalibration, sizeof(int) * 512 /*ptr1->tauCalibrationLUT()->maxSize() */) << endl;
344 
345  if (printTauCalibLUT)
346  for (unsigned int i = 0; i < 512 /*ptr1->tauCalibrationLUT()->maxSize()*/; i++)
347  cout << i << " " << tauCalibration[i] << endl;
348 
349  } else {
350  cout << " tauCalibrationLUT= [0]" << endl;
351  }
352 
353  cout << " tauCalibrationType= " << ptr1->tauCalibrationType() << endl;
354 
355  cout << " tauCalibrationParams= [" << ptr1->tauCalibrationParams().size() << "] " << flush;
356  double tauCalibrationParams[ptr1->tauCalibrationParams().size()];
357  for (unsigned int i = 0; i < ptr1->tauCalibrationParams().size(); i++)
358  tauCalibrationParams[i] = ptr1->tauCalibrationParams()[i];
359 
360  if (!ptr1->tauCalibrationParams().empty())
361  cout << hash(tauCalibrationParams, sizeof(double) * ptr1->tauCalibrationParams().size()) << endl;
362  else
363  cout << endl;
364 
365  if (!ptr1->tauCompressLUT()->empty()) {
366  cout << " tauCompressLUT= [" << ptr1->tauCompressLUT()->maxSize() << "] " << flush;
367  int tauCompress[ptr1->tauCompressLUT()->maxSize()];
368  for (unsigned int i = 0; i < ptr1->tauCompressLUT()->maxSize(); i++)
369  tauCompress[i] = ptr1->tauCompressLUT()->data(i);
370  cout << hash(tauCompress, sizeof(int) * ptr1->tauCompressLUT()->maxSize()) << endl;
371 
373  for (unsigned int i = 0; i < ptr1->tauCompressLUT()->maxSize(); i++)
374  cout << i << " " << tauCompress[i] << endl;
375 
376  } else {
377  cout << " tauCompressLUT= [0]" << endl;
378  }
379 
380  if (!ptr1->tauEtToHFRingEtLUT()->empty()) {
381  cout << " tauEtToHFRingEtLUT= [" << ptr1->tauEtToHFRingEtLUT()->maxSize() << "] " << flush;
382  int tauEtToHFRingEt[ptr1->tauEtToHFRingEtLUT()->maxSize()];
383  for (unsigned int i = 0; i < ptr1->tauEtToHFRingEtLUT()->maxSize(); i++)
384  tauEtToHFRingEt[i] = ptr1->tauEtToHFRingEtLUT()->data(i);
385 
386  cout << hash(tauEtToHFRingEt, sizeof(int) * ptr1->tauEtToHFRingEtLUT()->maxSize()) << endl;
387  } else {
388  cout << " tauEtToHFRingEtLUT= [0]" << endl;
389  }
390 
391  cout << " isoTauEtaMin= " << ptr1->isoTauEtaMin() << endl;
392  cout << " isoTauEtaMax= " << ptr1->isoTauEtaMax() << endl;
393  cout << " tauPUSParams= [" << ptr1->tauPUSParams().size() << "] " << flush;
394  float tauPUSParams[ptr1->tauPUSParams().size()];
395  for (unsigned int i = 0; i < ptr1->tauPUSParams().size(); i++)
396  tauPUSParams[i] = ptr1->tauPUSParams()[i];
397 
398  if (!ptr1->tauPUSParams().empty())
399  cout << hash(tauPUSParams, sizeof(float) * ptr1->tauPUSParams().size()) << endl;
400  else
401  cout << endl;
402 
403  cout << endl << " Jets: " << endl;
404  cout << " jetLsb= " << ptr1->jetLsb() << endl;
405  cout << " jetSeedThreshold= " << ptr1->jetSeedThreshold() << endl;
406  cout << " jetNeighbourThreshold= " << ptr1->jetNeighbourThreshold() << endl;
407  cout << " jetRegionMask= " << ptr1->jetRegionMask() << endl;
408  cout << " jetBypassPUS= " << ptr1->jetBypassPUS() << endl;
409  //cout<<" jetPUSType= "<<ptr1->jetPUSType()<<endl;
410  cout << " jetPUSUsePhiRing= " << ptr1->jetPUSUsePhiRing() << endl;
411  cout << " jetCalibrationType= " << ptr1->jetCalibrationType() << endl;
412  //cout<<" jetCalibrationParams= ["<<ptr1->jetCalibrationParams().size()<<"] "<<flush;
413  //float jetCalibrationParams[ptr1->jetCalibrationParams().size()]; // deliberately drop double precision
414  //for(unsigned int i=0; i<ptr1->jetCalibrationParams().size(); i++) jetCalibrationParams[i] = ptr1->jetCalibrationParams()[i];
415 
416  /*if( !ptr1->jetCalibrationParams().empty() ){
417  cout << hash( jetCalibrationParams, sizeof(float)*ptr1->jetCalibrationParams().size() ) << endl;
418  if( printJetCalibPar )
419  for(unsigned int i=0; i<ptr1->jetCalibrationParams().size(); i++)
420  cout<<i<<" " << std::setprecision(14) << jetCalibrationParams[i]<<endl;
421 
422  } else cout<<endl;
423 
424  cout<<" jetPUSParams= ["<<ptr1->jetPUSParams().size()<<"] "<<flush;
425  float jetPUSParams[ptr1->jetPUSParams().size()]; // deliberately drop double precision
426  for(unsigned int i=0; i<ptr1->jetPUSParams().size(); i++) jetPUSParams[i] = ptr1->jetPUSParams()[i];
427  if( !ptr1->jetPUSParams().empty() ){
428  cout << hash( jetPUSParams, sizeof(float)*ptr1->jetPUSParams().size() ) << endl;
429  if( printJetPUSPar )
430  for(unsigned int i=0; i<ptr1->jetPUSParams().size(); i++)
431  cout<<i<<" " << std::setprecision(14) << jetPUSParams[i]<<endl;
432 
433  } else cout<<endl;
434  */
435 
436  if (!ptr1->jetCalibrationLUT()->empty()) {
437  cout << " jetCalibrationLUT= [" << ptr1->jetCalibrationLUT()->maxSize() << "] " << flush;
438  int jetCalibration[ptr1->jetCalibrationLUT()->maxSize()];
439  for (unsigned int i = 0; i < ptr1->jetCalibrationLUT()->maxSize(); i++)
440  jetCalibration[i] = ptr1->jetCalibrationLUT()->data(i);
441 
442  cout << hash(jetCalibration, sizeof(int) * ptr1->jetCalibrationLUT()->maxSize()) << endl;
443 
444  if (printJetCalibLUT)
445  for (unsigned int i = 0; i < ptr1->jetCalibrationLUT()->maxSize(); i++)
446  cout << i << " " << jetCalibration[i] << endl;
447 
448  } else {
449  cout << " jetCalibrationLUT= [0]" << endl;
450  }
451 
452  if (!ptr1->jetCompressPtLUT()->empty()) {
453  cout << " jetCompressPtLUT= [" << ptr1->jetCompressPtLUT()->maxSize() << "] " << flush;
454  int jetCompressPt[ptr1->jetCompressPtLUT()->maxSize()];
455  for (unsigned int i = 0; i < ptr1->jetCompressPtLUT()->maxSize(); i++)
456  jetCompressPt[i] = ptr1->jetCompressPtLUT()->data(i);
457 
458  cout << hash(jetCompressPt, sizeof(int) * ptr1->jetCompressPtLUT()->maxSize()) << endl;
459 
461  for (unsigned int i = 0; i < ptr1->jetCompressPtLUT()->maxSize(); i++)
462  cout << i << " " << jetCompressPt[i] << endl;
463 
464  } else {
465  cout << " jetCompressPtLUT= [0]" << endl;
466  }
467 
468  if (!ptr1->jetCompressEtaLUT()->empty()) {
469  cout << " jetCompressEtaLUT= [" << ptr1->jetCompressEtaLUT()->maxSize() << "] " << flush;
470  int jetCompressEta[ptr1->jetCompressEtaLUT()->maxSize()];
471  for (unsigned int i = 0; i < ptr1->jetCompressEtaLUT()->maxSize(); i++)
472  jetCompressEta[i] = ptr1->jetCompressEtaLUT()->data(i);
473 
474  cout << hash(jetCompressEta, sizeof(int) * ptr1->jetCompressEtaLUT()->maxSize()) << endl;
475 
477  for (unsigned int i = 0; i < ptr1->jetCompressEtaLUT()->maxSize(); i++)
478  cout << i << " " << jetCompressEta[i] << endl;
479 
480  } else {
481  cout << " jetCompressEtaLUT= [0]" << endl;
482  }
483 
484  cout << endl << " Sums: " << endl;
485  unsigned int nEntities = 0;
486  cout << " etSumLsb= " << ptr1->etSumLsb() << endl;
487  cout << " etSumEtaMin= [";
488  for (unsigned int i = 0; ptr1->etSumEtaMin(i) > 0.001; i++)
489  cout << (i == 0 ? "" : ",") << ptr1->etSumEtaMin(i);
490  cout << "]" << endl;
491  cout << " etSumEtaMax= [";
492  for (unsigned int i = 0; ptr1->etSumEtaMax(i) > 0.001; i++, nEntities++)
493  cout << (i == 0 ? "" : ",") << ptr1->etSumEtaMax(i);
494  cout << "]" << endl;
495  cout << " etSumEtThreshold= [";
496  for (unsigned int i = 0; i < nEntities; i++)
497  cout << (i == 0 ? "" : ",") << ptr1->etSumEtThreshold(i);
498  cout << "]" << endl;
499 
500  cout << " etSumBypassMetPUS= " << ptr1->etSumBypassMetPUS() << endl;
501  cout << " etSumBypassEttPUS= " << ptr1->etSumBypassEttPUS() << endl;
502  cout << " etSumBypassEcalSumPUS " << ptr1->etSumBypassEcalSumPUS() << endl;
503 
504  cout << " etSumMetPUSType= " << ptr1->etSumMetPUSType() << endl;
505  cout << " etSumEttPUSType= " << ptr1->etSumEttPUSType() << endl;
506  cout << " etSumEcalSumPUSType= " << ptr1->etSumEcalSumPUSType() << endl;
507 
508  cout << " etSumCentralityUpper= [";
509  for (unsigned int i = 0; ptr1->etSumCentUpper(i) > 0.001; i++)
510  cout << (i == 0 ? "" : ",") << ptr1->etSumCentUpper(i);
511  cout << "]" << endl;
512  cout << " etSumCentralityLower= [";
513  for (unsigned int i = 0; ptr1->etSumCentLower(i) > 0.001; i++)
514  cout << (i == 0 ? "" : ",") << ptr1->etSumCentLower(i);
515  cout << "]" << endl;
516 
517  cout << " metCalibrationType= " << ptr1->metCalibrationType() << endl;
518  cout << " metHFCalibrationType= " << ptr1->metHFCalibrationType() << endl;
519  cout << " etSumEttCalibrationType=" << ptr1->etSumEttCalibrationType() << endl;
520  cout << " etSumEcalSumCalibrationType=" << ptr1->etSumEcalSumCalibrationType() << endl;
521 
522  if (!ptr1->etSumMetPUSLUT()->empty()) {
523  cout << " etSumMetPUSLUT= [" << ptr1->etSumMetPUSLUT()->maxSize() << "] " << flush;
524  int etSumMetPUSLUT[ptr1->etSumMetPUSLUT()->maxSize()];
525  for (unsigned int i = 0; i < ptr1->etSumMetPUSLUT()->maxSize(); i++)
526  etSumMetPUSLUT[i] = ptr1->etSumMetPUSLUT()->data(i);
527 
528  cout << hash(etSumMetPUSLUT, sizeof(int) * ptr1->etSumMetPUSLUT()->maxSize()) << endl;
529 
531  for (unsigned int i = 0; i < ptr1->etSumMetPUSLUT()->maxSize(); i++)
532  cout << i << " " << etSumMetPUSLUT[i] << endl;
533 
534  } else {
535  cout << " etSumMetPUSLUT= [0]" << endl;
536  }
537 
538  if (!ptr1->etSumEttPUSLUT()->empty()) {
539  cout << " etSumEttPUSLUT= [" << ptr1->etSumEttPUSLUT()->maxSize() << "] " << flush;
540  int etSumEttPUSLUT[ptr1->etSumEttPUSLUT()->maxSize()];
541  for (unsigned int i = 0; i < ptr1->etSumEttPUSLUT()->maxSize(); i++)
542  etSumEttPUSLUT[i] = ptr1->etSumEttPUSLUT()->data(i);
543 
544  cout << hash(etSumEttPUSLUT, sizeof(int) * ptr1->etSumEttPUSLUT()->maxSize()) << endl;
545 
547  for (unsigned int i = 0; i < ptr1->etSumEttPUSLUT()->maxSize(); i++)
548  cout << i << " " << etSumEttPUSLUT[i] << endl;
549 
550  } else {
551  cout << " etSumEttPUSLUT= [0]" << endl;
552  }
553 
554  if (!ptr1->etSumEcalSumPUSLUT()->empty()) {
555  cout << " etSumEcalSumPUSLUT= [" << ptr1->etSumEcalSumPUSLUT()->maxSize() << "] " << flush;
556  int etSumEcalSumPUSLUT[ptr1->etSumEcalSumPUSLUT()->maxSize()];
557  for (unsigned int i = 0; i < ptr1->etSumEcalSumPUSLUT()->maxSize(); i++)
558  etSumEcalSumPUSLUT[i] = ptr1->etSumEcalSumPUSLUT()->data(i);
559 
560  cout << hash(etSumEcalSumPUSLUT, sizeof(int) * ptr1->etSumEcalSumPUSLUT()->maxSize()) << endl;
561 
563  for (unsigned int i = 0; i < ptr1->etSumEcalSumPUSLUT()->maxSize(); i++)
564  cout << i << " " << etSumEcalSumPUSLUT[i] << endl;
565 
566  } else {
567  cout << " etSumEcalSumPUSLUT= [0]" << endl;
568  }
569 
570  if (!ptr1->metCalibrationLUT()->empty()) {
571  cout << " metCalibrationLUT= [" << ptr1->metCalibrationLUT()->maxSize() << "] " << flush;
572  int metCalibrationLUT[ptr1->metCalibrationLUT()->maxSize()];
573  for (unsigned int i = 0; i < ptr1->metCalibrationLUT()->maxSize(); i++)
574  metCalibrationLUT[i] = ptr1->metCalibrationLUT()->data(i);
575 
576  cout << hash(metCalibrationLUT, sizeof(int) * ptr1->metCalibrationLUT()->maxSize()) << endl;
577 
579  for (unsigned int i = 0; i < ptr1->metCalibrationLUT()->maxSize(); i++)
580  cout << i << " " << metCalibrationLUT[i] << endl;
581 
582  } else {
583  cout << " metCalibrationLUT= [0]" << endl;
584  }
585 
586  if (!ptr1->metHFCalibrationLUT()->empty()) {
587  cout << " metHFCalibrationLUT= [" << ptr1->metHFCalibrationLUT()->maxSize() << "] " << flush;
588  int metHFCalibrationLUT[ptr1->metHFCalibrationLUT()->maxSize()];
589  for (unsigned int i = 0; i < ptr1->metHFCalibrationLUT()->maxSize(); i++)
590  metHFCalibrationLUT[i] = ptr1->metHFCalibrationLUT()->data(i);
591 
592  cout << hash(metHFCalibrationLUT, sizeof(int) * ptr1->metHFCalibrationLUT()->maxSize()) << endl;
593 
595  for (unsigned int i = 0; i < ptr1->metHFCalibrationLUT()->maxSize(); i++)
596  cout << i << " " << metHFCalibrationLUT[i] << endl;
597 
598  } else {
599  cout << " metHFCalibrationLUT= [0]" << endl;
600  }
601 
602  if (!ptr1->metPhiCalibrationLUT()->empty()) {
603  cout << " metPhiCalibrationLUT= [" << ptr1->metPhiCalibrationLUT()->maxSize() << "] " << flush;
604  int metPhiCalibrationLUT[ptr1->metPhiCalibrationLUT()->maxSize()];
605  for (unsigned int i = 0; i < ptr1->metPhiCalibrationLUT()->maxSize(); i++)
606  metPhiCalibrationLUT[i] = ptr1->metPhiCalibrationLUT()->data(i);
607 
608  cout << hash(metPhiCalibrationLUT, sizeof(int) * ptr1->metPhiCalibrationLUT()->maxSize()) << endl;
609 
611  for (unsigned int i = 0; i < ptr1->metPhiCalibrationLUT()->maxSize(); i++)
612  cout << i << " " << metPhiCalibrationLUT[i] << endl;
613 
614  } else {
615  cout << " metPhiCalibrationLUT= [0]" << endl;
616  }
617 
618  if (!ptr1->metHFPhiCalibrationLUT()->empty()) {
619  cout << " metHFPhiCalibrationLUT= [" << ptr1->metHFPhiCalibrationLUT()->maxSize() << "] " << flush;
620  int metHFPhiCalibrationLUT[ptr1->metHFPhiCalibrationLUT()->maxSize()];
621  for (unsigned int i = 0; i < ptr1->metHFPhiCalibrationLUT()->maxSize(); i++)
622  metHFPhiCalibrationLUT[i] = ptr1->metHFPhiCalibrationLUT()->data(i);
623 
624  cout << hash(metHFPhiCalibrationLUT, sizeof(int) * ptr1->metHFPhiCalibrationLUT()->maxSize()) << endl;
625 
627  for (unsigned int i = 0; i < ptr1->metHFPhiCalibrationLUT()->maxSize(); i++)
628  cout << i << " " << metHFPhiCalibrationLUT[i] << endl;
629 
630  } else {
631  cout << " metHFPhiCalibrationLUT= [0]" << endl;
632  }
633 
634  if (!ptr1->etSumEttCalibrationLUT()->empty()) {
635  cout << " etSumEttCalibrationLUT= [" << ptr1->etSumEttCalibrationLUT()->maxSize() << "] " << flush;
636  int etSumEttCalibrationLUT[ptr1->etSumEttCalibrationLUT()->maxSize()];
637  for (unsigned int i = 0; i < ptr1->etSumEttCalibrationLUT()->maxSize(); i++)
638  etSumEttCalibrationLUT[i] = ptr1->etSumEttCalibrationLUT()->data(i);
639 
640  cout << hash(etSumEttCalibrationLUT, sizeof(int) * ptr1->etSumEttCalibrationLUT()->maxSize()) << endl;
641 
643  for (unsigned int i = 0; i < ptr1->etSumEttCalibrationLUT()->maxSize(); i++)
644  cout << i << " " << etSumEttCalibrationLUT[i] << endl;
645 
646  } else {
647  cout << " etSumEttCalibrationLUT= [0]" << endl;
648  }
649 
650  if (!ptr1->etSumEcalSumCalibrationLUT()->empty()) {
651  cout << " etSumEcalSumCalibrationLUT=[" << ptr1->etSumEttCalibrationLUT()->maxSize() << "] " << flush;
652  int etSumEcalSumCalibrationLUT[ptr1->etSumEcalSumCalibrationLUT()->maxSize()];
653  for (unsigned int i = 0; i < ptr1->etSumEcalSumCalibrationLUT()->maxSize(); i++)
654  etSumEcalSumCalibrationLUT[i] = ptr1->etSumEcalSumCalibrationLUT()->data(i);
655 
656  cout << hash(etSumEcalSumCalibrationLUT, sizeof(int) * ptr1->etSumEcalSumCalibrationLUT()->maxSize()) << endl;
657 
659  for (unsigned int i = 0; i < ptr1->etSumEcalSumCalibrationLUT()->maxSize(); i++)
660  cout << i << " " << etSumEcalSumCalibrationLUT[i] << endl;
661 
662  } else {
663  cout << " etSumEcalSumCalibrationLUT=[0]" << endl;
664  }
665 
666  cout << endl << " HI centrality trigger: " << endl;
667  cout << " centralityLUT= [";
668  for (unsigned int i = 0; i < ptr1->centralityLUT()->maxSize(); i++)
669  cout << (i == 0 ? "" : ",") << ptr1->centralityLUT()->data(i);
670  cout << "]" << endl;
671 
672  std::vector<int> mbt = ptr1->minimumBiasThresholds();
673  cout << " minimumBiasThresholds= [";
674  for (unsigned int i = 0; i < mbt.size(); i++)
675  cout << mbt[i];
676  cout << "]" << endl;
677 
678  cout << endl << "centralityRegionMask() = " << ptr1->centralityRegionMask() << endl;
679  cout << endl << "jetRegionMask() = " << ptr1->jetRegionMask() << endl;
680  cout << endl << "tauRegionMask() = " << ptr1->tauRegionMask() << endl;
681 
682  cout << endl << " HI Q2 trigger: " << endl;
683  cout << " q2LUT= [";
684  for (unsigned int i = 0; i < ptr1->q2LUT()->maxSize(); i++)
685  cout << (i == 0 ? "" : ",") << ptr1->q2LUT()->data(i);
686  cout << "]" << endl;
687 
688  cout << endl << " Layer1: " << endl;
689  std::vector<double> ecalSF = ptr1->layer1ECalScaleFactors();
690  cout << " layer1ECalScaleFactors= [" << ecalSF.size() << "] " << flush;
691  int _ecalSF[ecalSF.size()];
692  for (unsigned int i = 0; i < ecalSF.size(); i++)
693  _ecalSF[i] = int(ecalSF[i] * 100000.);
694  cout << hash(_ecalSF, sizeof(int) * ecalSF.size()) << endl;
695  if (printEcalSF) {
696  cout << endl << " [" << endl;
697  for (unsigned int i = 0; i < ecalSF.size(); i++)
698  cout << (i == 0 ? "" : ",") << int(ecalSF[i] * 1000.) / 1000.;
699  cout << "]" << endl;
700  }
701  std::vector<double> hcalSF = ptr1->layer1HCalScaleFactors();
702  cout << " layer1HCalScaleFactors= [" << hcalSF.size() << "] " << flush;
703  int _hcalSF[hcalSF.size()];
704  for (unsigned int i = 0; i < hcalSF.size(); i++) {
705  // round false precision
706  // double significand;
707  // int exponent;
708  // significand = frexp( hcalSF[i], &exponent );
709  // _hcalSF[i] = ldexp( int(significand*10000)/10000., exponent );
710  _hcalSF[i] = int(hcalSF[i] * 100000.);
711  }
712  cout << hash(_hcalSF, sizeof(int) * hcalSF.size()) << endl;
713  if (printHcalSF) {
714  cout << endl << " [" << endl;
715  for (unsigned int i = 0; i < hcalSF.size(); i++)
716  cout << (i == 0 ? "" : ",") << int(hcalSF[i] * 1000.) / 1000.;
717  cout << "]" << endl;
718  }
719  std::vector<double> hfSF = ptr1->layer1HFScaleFactors();
720  cout << " layer1HFScaleFactors= [" << hfSF.size() << "] " << flush;
721  int _hfSF[hfSF.size()];
722  for (unsigned int i = 0; i < hfSF.size(); i++)
723  _hfSF[i] = int(hfSF[i] * 100000.);
724  cout << hash(_hfSF, sizeof(int) * hfSF.size()) << endl;
725  if (printHfSF) {
726  cout << endl << " [" << endl;
727  for (unsigned int i = 0; i < hfSF.size(); i++)
728  cout << (i == 0 ? "" : ",") << int(hfSF[i] * 1000.) / 1000.;
729  cout << "]" << endl;
730  }
731 
732  std::vector<int> ecalScaleET = ptr1->layer1ECalScaleETBins();
733  cout << " layer1ECalScaleETBins= [";
734  for (unsigned int i = 0; i < ecalScaleET.size(); i++)
735  cout << (i == 0 ? "" : ",") << ecalScaleET[i];
736  cout << "]" << endl;
737  std::vector<int> hcalScaleET = ptr1->layer1HCalScaleETBins();
738  cout << " layer1HCalScaleETBins= [";
739  for (unsigned int i = 0; i < hcalScaleET.size(); i++)
740  cout << (i == 0 ? "" : ",") << hcalScaleET[i];
741  cout << "]" << endl;
742  std::vector<int> hfScaleET = ptr1->layer1HFScaleETBins();
743  cout << " layer1HFScaleETBins= [";
744  for (unsigned int i = 0; i < hfScaleET.size(); i++)
745  cout << (i == 0 ? "" : ",") << hfScaleET[i];
746  cout << "]" << endl;
747 
748  std::vector<unsigned> layer1ECalScalePhi = ptr1->layer1ECalScalePhiBins();
749  cout << " layer1ECalScalePhi= [";
750  for (unsigned int i = 0; i < layer1ECalScalePhi.size(); i++)
751  cout << (i == 0 ? "" : ",") << layer1ECalScalePhi[i];
752  cout << "]" << endl;
753  std::vector<unsigned> layer1HCalScalePhi = ptr1->layer1HCalScalePhiBins();
754  cout << " layer1HCalScalePhi= [";
755  for (unsigned int i = 0; i < layer1HCalScalePhi.size(); i++)
756  cout << (i == 0 ? "" : ",") << layer1HCalScalePhi[i];
757  cout << "]" << endl;
758  std::vector<unsigned> layer1HFScalePhiBins = ptr1->layer1HFScalePhiBins();
759  cout << " layer1HFScalePhiBins= [";
760  for (unsigned int i = 0; i < layer1HFScalePhiBins.size(); i++)
761  cout << (i == 0 ? "" : ",") << layer1HFScalePhiBins[i];
762  cout << "]" << endl;
763 
764  // std::vector<unsigned> layer1SecondStageLUT = ptr1->layer1SecondStageLUT();
765  // cout<<" layer1HFScalePhiBins= ["; for(unsigned int i=0; i<layer1SecondStageLUT.size(); i++) cout<<(i==0?"":",")<<layer1SecondStageLUT[i]; cout<<"]"<<endl;
766 }
unsigned jetBypassPUS() const
std::string const & egShapeIdType() const
constexpr int32_t ceil(float num)
double tauMaxJetIsolationB() const
std::vector< unsigned > const & layer1HFScalePhiBins() const
unsigned egIsoAreaNrTowersPhi() const
bool doTowerEncoding() const
unsigned int maxSize() const
Definition: LUT.h:55
double etSumCentUpper(unsigned centClass) const
double etSumCentLower(unsigned centClass) const
l1t::LUT * jetCalibrationLUT()
std::string const & etSumEcalSumPUSType() const
unsigned etSumBypassEcalSumPUS() const
l1t::LUT * metCalibrationLUT()
const std::vector< double > & tauPUSParams() const
unsigned egCalibrationVersion() const
std::vector< unsigned > const & layer1ECalScalePhiBins() const
double towerLsbE() const
l1t::LUT const * egIsolationLUT() const
l1t::LUT * metHFPhiCalibrationLUT()
std::string hash(void *buf, size_t len) const
unsigned tauIsoAreaNrTowersEta() const
std::string const & etSumEttCalibrationType() const
std::vector< double > const & egCalibrationParams() const
bool empty() const
Definition: LUT.h:58
std::vector< double > const & regionPUSParams() const
double tauMaxPtTauVeto() const
const std::string & egPUSType() const
int egMinPtJetIsolation() const
std::vector< int > minimumBiasThresholds() const
l1t::LUT * tauTrimmingShapeVetoLUT()
unsigned egShapeIdVersion() const
std::vector< int > const & layer1ECalScaleETBins() const
double jetSeedThreshold() const
double etSumEtThreshold(unsigned isum) const
std::string const & metCalibrationType() const
std::vector< double > const & layer1HCalScaleFactors() const
double egNeighbourThreshold() const
unsigned egBypassEGVetos() const
l1t::LUT * egCompressShapesLUT()
double egHcalThreshold() const
std::vector< double > const & tauCalibrationParams() const
unsigned egIsoVetoNrTowersPhi() const
l1t::LUT * tauIsolationLUT2()
int egMinPtHOverEIsolation() const
std::string const & jetCalibrationType() const
int etSumEtaMax(unsigned isum) const
unsigned etSumBypassMetPUS() const
std::vector< double > const & layer1ECalScaleFactors() const
int etSumEtaMin(unsigned isum) const
unsigned egBypassShape() const
double regionLsb() const
std::string const & etSumEcalSumCalibrationType() const
std::string const & etSumMetPUSType() const
int data(unsigned int address) const
Definition: LUT.h:46
edm::ESGetToken< l1t::CaloParams, L1TCaloStage2ParamsRcd > stage2ParamsToken_
double egMaxHcalEt() const
unsigned egBypassECALFG() const
double tauMaxJetIsolationA() const
unsigned egBypassExtHOverE() const
std::string const & egCalibrationType() const
double egSeedThreshold() const
l1t::LUT * jetCompressPtLUT()
double towerLsbH() const
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:151
l1t::LUT const * tauEtToHFRingEtLUT() const
std::string const & etSumEttPUSType() const
Log< level::Info, false > LogInfo
l1t::LUT * etSumEcalSumCalibrationLUT()
l1t::LUT const * egCalibrationLUT() const
l1t::LUT * metHFCalibrationLUT()
std::string const & tauCalibrationType() const
std::string tauPUSType() const
int centralityRegionMask() const
int egMaxPtHOverEIsolation() const
unsigned tauIsoVetoNrTowersPhi() const
unsigned etSumBypassEttPUS() const
edm::ESGetToken< l1t::CaloParams, L1TCaloParamsRcd > paramsToken_
std::string const & metHFCalibrationType() const
double egMaxPtHOverE() const
std::vector< int > const & layer1HCalScaleETBins() const
int egMaxPtJetIsolation() const
std::vector< int > const & layer1HFScaleETBins() const
l1t::LUT * tauCalibrationLUT()
double towerLsbSum() const
l1t::LUT * etSumEttCalibrationLUT()
l1t::LUT * tauIsolationLUT()
std::vector< double > const & layer1HFScaleFactors() const
unsigned egIsoAreaNrTowersEta() const
l1t::LUT * jetCompressEtaLUT()
double tauMinPtJetIsolationB() const
std::vector< unsigned > const & layer1HCalScalePhiBins() const
l1t::LUT * metPhiCalibrationLUT()
int pileUpTowerThreshold() const
l1t::LUT const * egIsolationLUT2() const
std::string const & egIsolationType() const
double jetNeighbourThreshold() const
const std::vector< double > & egPUSParams() const
std::string const & regionPUSType() const
l1t::LUT * etSumEcalSumPUSLUT()
unsigned jetPUSUsePhiRing() const
unsigned tauIsoAreaNrTowersPhi() const

◆ hash()

std::string L1TCaloParamsViewer::hash ( void *  buf,
size_t  len 
) const
private

Definition at line 87 of file L1TCaloParamsViewer.cc.

References visDQMUpload::buf, EVP_MD_CTX_free, EVP_MD_CTX_new, Exception, cond::hash, mps_fire::i, cms::openssl_init(), AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.

87  {
89  EVP_MD_CTX* mdctx = EVP_MD_CTX_new();
90  const EVP_MD* md = EVP_get_digestbyname("SHA1");
91  if (!EVP_DigestInit_ex(mdctx, md, nullptr))
92  throw cms::Exception("L1TCaloParamsViewer::hash") << "SHA1 initialization error";
93 
94  if (!EVP_DigestUpdate(mdctx, buf, len))
95  throw cms::Exception("L1TCaloParamsViewer::hash") << "SHA1 processing error";
96 
97  unsigned char hash[EVP_MAX_MD_SIZE];
98  unsigned int md_len = 0;
99  if (!EVP_DigestFinal_ex(mdctx, hash, &md_len))
100  throw cms::Exception("L1TCaloParamsViewer::hash") << "SHA1 finalization error";
101 
102  EVP_MD_CTX_free(mdctx);
103 
104  // re-write bytes in hex
105  char tmp[EVP_MAX_MD_SIZE * 2 + 1];
106  if (md_len > 20)
107  md_len = 20;
108  for (unsigned int i = 0; i < md_len; i++)
109  ::sprintf(&tmp[i * 2], "%02x", hash[i]);
110 
111  tmp[md_len * 2] = 0;
112  return std::string(tmp);
113 }
void openssl_init()
Definition: openssl_init.cc:5
std::string hash(void *buf, size_t len) const
#define EVP_MD_CTX_free
Definition: openssl_init.h:7
#define EVP_MD_CTX_new
Definition: openssl_init.h:6
tmp
align.sh
Definition: createJobs.py:716

Member Data Documentation

◆ paramsToken_

edm::ESGetToken<l1t::CaloParams, L1TCaloParamsRcd> L1TCaloParamsViewer::paramsToken_
private

Definition at line 18 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEcalSF

bool L1TCaloParamsViewer::printEcalSF
private

Definition at line 32 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEgCalibLUT

bool L1TCaloParamsViewer::printEgCalibLUT
private

Definition at line 27 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEgIsoLUT

bool L1TCaloParamsViewer::printEgIsoLUT
private

Definition at line 28 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEtSumEcalSumCalibrationLUT

bool L1TCaloParamsViewer::printEtSumEcalSumCalibrationLUT
private

Definition at line 40 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEtSumEcalSumPUSLUT

bool L1TCaloParamsViewer::printEtSumEcalSumPUSLUT
private

Definition at line 34 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEtSumEttCalibrationLUT

bool L1TCaloParamsViewer::printEtSumEttCalibrationLUT
private

Definition at line 39 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEtSumEttPUSLUT

bool L1TCaloParamsViewer::printEtSumEttPUSLUT
private

Definition at line 33 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printEtSumMetPUSLUT

bool L1TCaloParamsViewer::printEtSumMetPUSLUT
private

Definition at line 29 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printHcalSF

bool L1TCaloParamsViewer::printHcalSF
private

Definition at line 31 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printHfSF

bool L1TCaloParamsViewer::printHfSF
private

Definition at line 30 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printJetCalibLUT

bool L1TCaloParamsViewer::printJetCalibLUT
private

Definition at line 22 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printJetCalibPar

bool L1TCaloParamsViewer::printJetCalibPar
private

Definition at line 23 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printJetCompressEtaLUT

bool L1TCaloParamsViewer::printJetCompressEtaLUT
private

Definition at line 26 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printJetCompressPtLUT

bool L1TCaloParamsViewer::printJetCompressPtLUT
private

Definition at line 25 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printJetPUSPar

bool L1TCaloParamsViewer::printJetPUSPar
private

Definition at line 24 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printMetCalibrationLUT

bool L1TCaloParamsViewer::printMetCalibrationLUT
private

Definition at line 35 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printMetHFCalibrationLUT

bool L1TCaloParamsViewer::printMetHFCalibrationLUT
private

Definition at line 36 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printMetHFPhiCalibrationLUT

bool L1TCaloParamsViewer::printMetHFPhiCalibrationLUT
private

Definition at line 38 of file L1TCaloParamsViewer.cc.

◆ printMetPhiCalibrationLUT

bool L1TCaloParamsViewer::printMetPhiCalibrationLUT
private

Definition at line 37 of file L1TCaloParamsViewer.cc.

◆ printPUSParams

bool L1TCaloParamsViewer::printPUSParams
private

Definition at line 19 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printTauCalibLUT

bool L1TCaloParamsViewer::printTauCalibLUT
private

Definition at line 20 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ printTauCompressLUT

bool L1TCaloParamsViewer::printTauCompressLUT
private

Definition at line 21 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ stage2ParamsToken_

edm::ESGetToken<l1t::CaloParams, L1TCaloStage2ParamsRcd> L1TCaloParamsViewer::stage2ParamsToken_
private

Definition at line 17 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().

◆ useStage2Rcd

bool L1TCaloParamsViewer::useStage2Rcd
private

Definition at line 42 of file L1TCaloParamsViewer.cc.

Referenced by L1TCaloParamsViewer().