Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
RecoLocalCalo
EcalDeadChannelRecoveryAlgos
src
EcalDeadChannelRecoveryAlgos.cc
Go to the documentation of this file.
1
//
2
// Original Author: Stilianos Kesisoglou - Institute of Nuclear and Particle
3
// Physics NCSR Demokritos (Stilianos.Kesisoglou@cern.ch)
4
// Created: Wed Nov 21 11:24:39 EET 2012
5
//
6
// Nov 21 2012: First version of the code. Based on the old
7
// "EcalDeadChannelRecoveryAlgos.cc" code
8
// Feb 14 2013: Implementation of the criterion to select the "correct"
9
// max. cont. crystal.
10
//
11
12
#include "
RecoLocalCalo/EcalDeadChannelRecoveryAlgos/interface/EcalDeadChannelRecoveryAlgos.h
"
13
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
14
15
template
<
typename
T>
16
void
EcalDeadChannelRecoveryAlgos<T>::setCaloTopology
(
17
const
CaloTopology
*topo) {
18
nn.setCaloTopology(topo);
19
}
20
21
template
<
typename
T>
22
EcalRecHit
EcalDeadChannelRecoveryAlgos<T>::correct
(
23
const
T
id
,
const
EcalRecHitCollection
&hit_collection,
std::string
algo
,
24
double
Sum8Cut,
bool
*AcceptFlag) {
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
}
39
40
template
class
EcalDeadChannelRecoveryAlgos<EBDetId>
;
41
template
class
EcalDeadChannelRecoveryAlgos<EEDetId>
;
archive.flag
flag
Definition:
archive.py:489
MessageLogger.h
EcalDeadChannelRecoveryAlgos< EBDetId >
edm::SortedCollection< EcalRecHit >
EcalRecHit
Definition:
EcalRecHit.h:15
ecalcalib_dqm_sourceclient-live_cfg.algo
tuple algo
Definition:
ecalcalib_dqm_sourceclient-live_cfg.py:64
EcalDeadChannelRecoveryAlgos::setCaloTopology
void setCaloTopology(const CaloTopology *topology)
Definition:
EcalDeadChannelRecoveryAlgos.cc:16
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::LogError
Definition:
MessageLogger.h:164
EcalDeadChannelRecoveryAlgos::correct
EcalRecHit correct(const DetIdT id, const EcalRecHitCollection &hit_collection, std::string algo, double Sum8Cut, bool *AccFlag)
Definition:
EcalDeadChannelRecoveryAlgos.cc:22
CaloTopology
Definition:
CaloTopology.h:18
T
long double T
Definition:
Basic3DVectorLD.h:57
EcalDeadChannelRecoveryAlgos.h
Generated for CMSSW Reference Manual by
1.8.5