CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EcalDeadChannelRecoveryAlgos< DetIdT > Class Template Reference

#include <EcalDeadChannelRecoveryAlgos.h>

Public Member Functions

EcalRecHit correct (const DetIdT id, const EcalRecHitCollection &hit_collection, std::string algo, double Sum8Cut, bool *AccFlag)
 
void setCaloTopology (const CaloTopology *topology)
 

Private Attributes

EcalDeadChannelRecoveryNN< DetIdT > nn
 

Detailed Description

template<typename DetIdT>
class EcalDeadChannelRecoveryAlgos< DetIdT >

Definition at line 12 of file EcalDeadChannelRecoveryAlgos.h.

Member Function Documentation

template<typename T>
EcalRecHit EcalDeadChannelRecoveryAlgos< T >::correct ( const T  id,
const EcalRecHitCollection hit_collection,
std::string  algo,
double  Sum8Cut,
bool *  AccFlag 
)

Definition at line 22 of file EcalDeadChannelRecoveryAlgos.cc.

References RemoveAddSevLevel::flag, and groupFilesInBlocks::nn.

Referenced by EcalRecHitWorkerRecover::run().

24  {
25  // recover as single dead channel
26  double NewEnergy = 0.0;
27 
28  if (algo == "NeuralNetworks") {
29  NewEnergy = this->nn.recover(id, hit_collection, Sum8Cut, AcceptFlag);
30  } else {
31  edm::LogError("EcalDeadChannelRecoveryAlgos")
32  << "Invalid algorithm for dead channel recovery.";
33  *AcceptFlag = false;
34  }
35 
36  uint32_t flag = 0;
37  return EcalRecHit(id, NewEnergy, 0, flag);
38 }
EcalDeadChannelRecoveryNN< DetIdT > nn
template<typename T >
void EcalDeadChannelRecoveryAlgos< T >::setCaloTopology ( const CaloTopology topology)

Definition at line 16 of file EcalDeadChannelRecoveryAlgos.cc.

References groupFilesInBlocks::nn.

Referenced by EcalRecHitWorkerRecover::run().

17  {
18  nn.setCaloTopology(topo);
19 }
EcalDeadChannelRecoveryNN< DetIdT > nn

Member Data Documentation

template<typename DetIdT>
EcalDeadChannelRecoveryNN<DetIdT> EcalDeadChannelRecoveryAlgos< DetIdT >::nn
private

Definition at line 20 of file EcalDeadChannelRecoveryAlgos.h.