CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Attributes | Private Member Functions | Friends
EcalSCDynamicDPhiParameters Class Reference

#include <EcalSCDynamicDPhiParameters.h>

Classes

struct  DynamicDPhiParameters
 

Public Member Functions

const DynamicDPhiParametersdynamicDPhiParameters (double clustE, double absSeedEta) const
 
 EcalSCDynamicDPhiParameters ()
 
void print (std::ostream &) const
 
virtual ~EcalSCDynamicDPhiParameters ()=default
 

Protected Attributes

std::vector< DynamicDPhiParametersdynamicDPhiParametersCollection_
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &out, const EcalSCDynamicDPhiParameters &params)
 
class reco::SCDynamicDPhiParametersHelper
 

Detailed Description

Definition at line 13 of file EcalSCDynamicDPhiParameters.h.

Constructor & Destructor Documentation

◆ EcalSCDynamicDPhiParameters()

EcalSCDynamicDPhiParameters::EcalSCDynamicDPhiParameters ( )
inline

Definition at line 15 of file EcalSCDynamicDPhiParameters.h.

15 {};

◆ ~EcalSCDynamicDPhiParameters()

virtual EcalSCDynamicDPhiParameters::~EcalSCDynamicDPhiParameters ( )
virtualdefault

Member Function Documentation

◆ dynamicDPhiParameters()

const EcalSCDynamicDPhiParameters::DynamicDPhiParameters * EcalSCDynamicDPhiParameters::dynamicDPhiParameters ( double  clustE,
double  absSeedEta 
) const

Definition at line 3 of file EcalSCDynamicDPhiParameters.cc.

4  {
5  // assume the collection is lexicographically sorted in ascending DynamicDPhiParams.eMin and ascending DynamicDPhiParams.etaMin
6  // find the matching eMin value
9  clustE,
11  return params.eMin < var;
12  });
13  if (it1 != dynamicDPhiParametersCollection_.begin()) {
14  --it1;
15  }
16 
17  // find the matching eMin and etaMin entry going only up to the sets matching for clustE
18  const auto vars = std::make_pair(it1->eMin, absSeedEta);
19  auto it2 = std::lower_bound(
21  it1 + 1,
22  vars,
23  [](const EcalSCDynamicDPhiParameters::DynamicDPhiParameters& params, const std::pair<double, double> vars) {
24  return params.eMin < vars.first || params.etaMin < vars.second;
25  });
26 
27  return (it2 != dynamicDPhiParametersCollection_.begin()) ? &*(it2 - 1) : nullptr;
28 }

References dynamicDPhiParametersCollection_, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, CalibrationSummaryClient_cfi::params, and trigObjTnPSource_cfi::var.

◆ print()

void EcalSCDynamicDPhiParameters::print ( std::ostream &  out) const

Definition at line 30 of file EcalSCDynamicDPhiParameters.cc.

30  {
31  out << "SC dynamic dPhi parameters:" << std::endl;
32  out << " Parameters are binned in " << dynamicDPhiParametersCollection_.size() << " (E, |eta|) regions." << std::endl;
33  for (const auto& params : dynamicDPhiParametersCollection_) {
34  out << " Parameters for E_min=" << params.eMin << " and |eta_min|=" << params.etaMin << ":" << std::endl;
35  out << " yoffset: " << params.yoffset << std::endl;
36  out << " scale: " << params.scale << std::endl;
37  out << " xoffset: " << params.xoffset << std::endl;
38  out << " width: " << params.width << std::endl;
39  out << " saturation: " << params.saturation << std::endl;
40  out << " cutoff: " << params.cutoff << std::endl;
41  }
42 }

References dynamicDPhiParametersCollection_, MillePedeFileConverter_cfg::out, and CalibrationSummaryClient_cfi::params.

◆ serialize()

template<class Archive >
void EcalSCDynamicDPhiParameters::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 47 of file EcalSCDynamicDPhiParameters.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 47 of file EcalSCDynamicDPhiParameters.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const EcalSCDynamicDPhiParameters params 
)
friend

Definition at line 38 of file EcalSCDynamicDPhiParameters.h.

38  {
39  params.print(out);
40  return out;
41  }

◆ reco::SCDynamicDPhiParametersHelper

Definition at line 34 of file EcalSCDynamicDPhiParameters.h.

Member Data Documentation

◆ dynamicDPhiParametersCollection_

std::vector<DynamicDPhiParameters> EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_
protected
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
EcalSCDynamicDPhiParameters::DynamicDPhiParameters
Definition: EcalSCDynamicDPhiParameters.h:18
trigObjTnPSource_cfi.var
var
Definition: trigObjTnPSource_cfi.py:21
vars
vars
Definition: DeepTauId.cc:159
pfDeepBoostedJetPreprocessParams_cfi.lower_bound
lower_bound
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:15
EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
Definition: EcalSCDynamicDPhiParameters.h:45
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31