CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
< DynamicDPhiParameters
dynamicDPhiParametersCollection_
 

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

Definition at line 15 of file EcalSCDynamicDPhiParameters.h.

15 {};
virtual EcalSCDynamicDPhiParameters::~EcalSCDynamicDPhiParameters ( )
virtualdefault

Member Function Documentation

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

Definition at line 4 of file EcalSCDynamicDPhiParameters.cc.

References dynamicDPhiParametersCollection_, cuda_std::lower_bound(), submitPVValidationJobs::params, and isotrackApplyRegressor::var.

Referenced by reco::MustacheKernel::inDynamicDPhiWindow().

5  {
6  // assume the collection is lexicographically sorted in ascending DynamicDPhiParams.eMin and ascending DynamicDPhiParams.etaMin
7  // find the matching eMin value
10  clustE,
12  return params.eMin < var;
13  });
14  if (it1 != dynamicDPhiParametersCollection_.begin()) {
15  --it1;
16  }
17 
18  // find the matching eMin and etaMin entry going only up to the sets matching for clustE
19  const auto vars = std::make_pair(it1->eMin, absSeedEta);
20  auto it2 = std::lower_bound(
22  it1 + 1,
23  vars,
24  [](const EcalSCDynamicDPhiParameters::DynamicDPhiParameters& params, const std::pair<double, double> vars) {
25  return params.eMin < vars.first || params.etaMin < vars.second;
26  });
27 
28  return (it2 != dynamicDPhiParametersCollection_.begin()) ? &*(it2 - 1) : nullptr;
29 }
list var
if using global norm cols_to_minmax = [&#39;t_delta&#39;, &#39;t_hmaxNearP&#39;,&#39;t_emaxNearP&#39;, &#39;t_hAnnular&#39;, &#39;t_eAnnular&#39;,&#39;t_pt&#39;,&#39;t_nVtx&#39;,&#39;t_ieta&#39;,&#39;t_eHcal10&#39;, &#39;t_eHcal30&#39;,&#39;t_rhoh&#39;,&#39;t_eHcal&#39;] df[cols_to_minmax] = df[cols_to_minmax].apply(lambda x: (x - x.min()) / (x.max() - x.min()) if (x.max() - x.min() &gt; 0) else 1.0/200.0)
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
vars
Definition: DeepTauId.cc:164
void EcalSCDynamicDPhiParameters::print ( std::ostream &  out) const

Definition at line 31 of file EcalSCDynamicDPhiParameters.cc.

References dynamicDPhiParametersCollection_, and submitPVValidationJobs::params.

31  {
32  out << "SC dynamic dPhi parameters:" << std::endl;
33  out << " Parameters are binned in " << dynamicDPhiParametersCollection_.size() << " (E, |eta|) regions." << std::endl;
34  for (const auto& params : dynamicDPhiParametersCollection_) {
35  out << " Parameters for E_min=" << params.eMin << " and |eta_min|=" << params.etaMin << ":" << std::endl;
36  out << " yoffset: " << params.yoffset << std::endl;
37  out << " scale: " << params.scale << std::endl;
38  out << " xoffset: " << params.xoffset << std::endl;
39  out << " width: " << params.width << std::endl;
40  out << " saturation: " << params.saturation << std::endl;
41  out << " cutoff: " << params.cutoff << std::endl;
42  }
43 }
std::vector< DynamicDPhiParameters > dynamicDPhiParametersCollection_
template<class Archive >
void EcalSCDynamicDPhiParameters::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 47 of file EcalSCDynamicDPhiParameters.h.

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

Definition at line 47 of file EcalSCDynamicDPhiParameters.h.

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  }
void print(std::ostream &) const

Definition at line 34 of file EcalSCDynamicDPhiParameters.h.

Member Data Documentation

std::vector<DynamicDPhiParameters> EcalSCDynamicDPhiParameters::dynamicDPhiParametersCollection_
protected