CMS 3D CMS Logo

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.

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 }

Referenced by EcalRecHitWorkerRecover::run().

◆ setCaloTopology()

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

Definition at line 22 of file EcalDeadChannelRecoveryAlgos.cc.

22  {
23  bdtg_.setCaloTopology(topo);
24 }

Referenced by EcalRecHitWorkerRecover::run().

◆ setParameters()

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

Definition at line 17 of file EcalDeadChannelRecoveryAlgos.cc.

17  {
18  bdtg_.setParameters(ps);
19 }

Referenced by EcalRecHitWorkerRecover::EcalRecHitWorkerRecover().

Member Data Documentation

◆ bdtg_

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

Definition at line 28 of file EcalDeadChannelRecoveryAlgos.h.

cmsdt::algo
algo
Definition: constants.h:165
EcalDeadChannelRecoveryAlgos::bdtg_
EcalDeadChannelRecoveryBDTG< DetIdT > bdtg_
Definition: EcalDeadChannelRecoveryAlgos.h:28
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123