CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
EcalDeadChannelRecoveryAlgos< DetIdT > Class Template Reference

#include <EcalDeadChannelRecoveryAlgos.h>

Public Member Functions

float correct (const DetIdT id, const EcalRecHitCollection &hit_collection, std::string algo, double single8Cut, double sum8Cut, bool *accFlag)
 
void setCaloTopology (const CaloTopology *topology)
 
void setParameters (const edm::ParameterSet &ps)
 

Private Attributes

EcalDeadChannelRecoveryBDTG< DetIdT > bdtg_
 

Detailed Description

template<typename DetIdT>
class EcalDeadChannelRecoveryAlgos< DetIdT >

Definition at line 16 of file EcalDeadChannelRecoveryAlgos.h.

Member Function Documentation

◆ correct()

template<typename T>
float EcalDeadChannelRecoveryAlgos< T >::correct ( const T  id,
const EcalRecHitCollection hit_collection,
std::string  algo,
double  single8Cut,
double  sum8Cut,
bool *  accFlag 
)

Definition at line 27 of file EcalDeadChannelRecoveryAlgos.cc.

Referenced by EcalRecHitWorkerRecover::run().

32  {
33  // recover as single dead channel
34  double newEnergy = 0.0;
35  if (algo == "BDTG") {
36  *acceptFlag = false;
37  newEnergy = this->bdtg_.recover(id, hit_collection, single8Cut, sum8Cut, acceptFlag); //ADD here
38  if (newEnergy > 0.)
39  *acceptFlag = true; //bdtg set to 0 if there is more than one channel in the matrix that is not reponding
40  } else {
41  edm::LogError("EcalDeadChannelRecoveryAlgos") << "Invalid algorithm for dead channel recovery.";
42  *acceptFlag = false;
43  }
44 
45  return newEnergy;
46 }
EcalDeadChannelRecoveryBDTG< DetIdT > bdtg_
Log< level::Error, false > LogError

◆ setCaloTopology()

template<typename T >
void EcalDeadChannelRecoveryAlgos< T >::setCaloTopology ( const CaloTopology topology)

Definition at line 22 of file EcalDeadChannelRecoveryAlgos.cc.

Referenced by EcalRecHitWorkerRecover::run().

22  {
23  bdtg_.setCaloTopology(topo);
24 }
EcalDeadChannelRecoveryBDTG< DetIdT > bdtg_

◆ setParameters()

template<typename T >
void EcalDeadChannelRecoveryAlgos< T >::setParameters ( const edm::ParameterSet ps)

Definition at line 17 of file EcalDeadChannelRecoveryAlgos.cc.

Referenced by EcalRecHitWorkerRecover::EcalRecHitWorkerRecover().

17  {
18  bdtg_.setParameters(ps);
19 }
EcalDeadChannelRecoveryBDTG< DetIdT > bdtg_

Member Data Documentation

◆ bdtg_

template<typename DetIdT>
EcalDeadChannelRecoveryBDTG<DetIdT> EcalDeadChannelRecoveryAlgos< DetIdT >::bdtg_
private

Definition at line 28 of file EcalDeadChannelRecoveryAlgos.h.