12 algo_(conf.getParameter<double>(
"EBThreshold"),
13 conf.getParameter<double>(
"EEThreshold"),
15 conf.getParameter<bool>(
"UseEtEBTreshold"),
16 conf.getParameter<bool>(
"UseEtEETreshold"),
17 conf.getParameter<bool>(
"UseSymEBTreshold"),
18 conf.getParameter<bool>(
"UseSymEETreshold"),
21 conf.getParameter<double>(
"HcalThreshold"),
22 conf.getParameter<double>(
"HBThreshold"),
23 conf.getParameter<double>(
"HESThreshold"),
24 conf.getParameter<double>(
"HEDThreshold"),
25 conf.getParameter<double>(
"HOThreshold0"),
26 conf.getParameter<double>(
"HOThresholdPlus1"),
27 conf.getParameter<double>(
"HOThresholdMinus1"),
28 conf.getParameter<double>(
"HOThresholdPlus2"),
29 conf.getParameter<double>(
"HOThresholdMinus2"),
30 conf.getParameter<double>(
"HF1Threshold"),
31 conf.getParameter<double>(
"HF2Threshold"),
32 conf.getParameter<std::vector<double> >(
"EBGrid"),
33 conf.getParameter<std::vector<double> >(
"EBWeights"),
34 conf.getParameter<std::vector<double> >(
"EEGrid"),
35 conf.getParameter<std::vector<double> >(
"EEWeights"),
36 conf.getParameter<std::vector<double> >(
"HBGrid"),
37 conf.getParameter<std::vector<double> >(
"HBWeights"),
38 conf.getParameter<std::vector<double> >(
"HESGrid"),
39 conf.getParameter<std::vector<double> >(
"HESWeights"),
40 conf.getParameter<std::vector<double> >(
"HEDGrid"),
41 conf.getParameter<std::vector<double> >(
"HEDWeights"),
42 conf.getParameter<std::vector<double> >(
"HOGrid"),
43 conf.getParameter<std::vector<double> >(
"HOWeights"),
44 conf.getParameter<std::vector<double> >(
"HF1Grid"),
45 conf.getParameter<std::vector<double> >(
"HF1Weights"),
46 conf.getParameter<std::vector<double> >(
"HF2Grid"),
47 conf.getParameter<std::vector<double> >(
"HF2Weights"),
48 conf.getParameter<double>(
"EBWeight"),
49 conf.getParameter<double>(
"EEWeight"),
50 conf.getParameter<double>(
"HBWeight"),
51 conf.getParameter<double>(
"HESWeight"),
52 conf.getParameter<double>(
"HEDWeight"),
53 conf.getParameter<double>(
"HOWeight"),
54 conf.getParameter<double>(
"HF1Weight"),
55 conf.getParameter<double>(
"HF2Weight"),
56 conf.getParameter<double>(
"EcutTower"),
57 conf.getParameter<double>(
"EBSumThreshold"),
58 conf.getParameter<double>(
"EESumThreshold"),
59 conf.getParameter<bool>(
"UseHO"),
61 conf.getParameter<int>(
"MomConstrMethod"),
62 conf.getParameter<double>(
"MomHBDepth"),
63 conf.getParameter<double>(
"MomHEDepth"),
64 conf.getParameter<double>(
"MomEBDepth"),
65 conf.getParameter<double>(
"MomEEDepth")
68 ecalLabels_(conf.getParameter<std::vector<edm::
InputTag> >(
"ecalInputs")),
69 allowMissingInputs_(conf.getParameter<bool>(
"AllowMissingInputs")),
71 theHcalAcceptSeverityLevel_(conf.getParameter<unsigned int>(
"HcalAcceptSeverityLevel")),
73 theRecoveredHcalHitsAreUsed_(conf.getParameter<bool>(
"UseHcalRecoveredHits")),
74 theRecoveredEcalHitsAreUsed_(conf.getParameter<bool>(
"UseEcalRecoveredHits")),
78 useRejectedHitsOnly_(conf.getParameter<bool>(
"UseRejectedHitsOnly")),
80 theHcalAcceptSeverityLevelForRejectedHit_(conf.getParameter<unsigned int>(
"HcalAcceptSeverityLevelForRejectedHit")),
83 useRejectedRecoveredHcalHits_(conf.getParameter<bool>(
"UseRejectedRecoveredHcalHits")),
84 useRejectedRecoveredEcalHits_(conf.getParameter<bool>(
"UseRejectedRecoveredEcalHits"))
96 for (
unsigned i=0;
i != nLabels;
i++ )
110 const std::vector<std::string> severitynames =
111 conf.
getParameter<std::vector<std::string> >(
"EcalRecHitSeveritiesToBeExcluded");
117 StringToEnumValue<EcalSeverityLevel::SeverityLevel>(conf.
getParameter<std::vector<std::string> >(
"EcalSeveritiesToBeUsedInBadTowers") );
212 if(check1 || check2 || check3)
234 if (ec_tmp->size()==0)
continue;
237 if ( (ec_tmp->begin()->detid()).subdetId() ==
EcalBarrel ) {
240 else if ((ec_tmp->begin()->detid()).subdetId() ==
EcalEndcap ) {
265 std::vector<edm::EDGetTokenT<EcalRecHitCollection> >::const_iterator
i;
CaloTowersCreator(const edm::ParameterSet &ps)
T getParameter(std::string const &) const
algo_(conf.existsAs< bool >("Correct")?conf.getParameter< bool >("Correct"):true, conf.getParameter< double >("e9e25Cut"), conf.getParameter< double >("intercept2DCut"), conf.existsAs< bool >("intercept2DSlope")?conf.getParameter< double >("intercept2DSlope"):defaultSlope2D_, conf.getParameter< std::vector< double > >("e1e9Cut"), conf.getParameter< std::vector< double > >("eCOREe9Cut"), conf.getParameter< std::vector< double > >("eSeLCut"), hfvars_)
void setEcalChStatusFromDB(const EcalChannelStatus *s)
CaloTowersCreationAlgo algo_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setHF1EScale(double scale)
bool theRecoveredHcalHitsAreUsed_
void setHcalChStatusFromDB(const HcalChannelQuality *s)
void setHF2EScale(double scale)
void finish(CaloTowerCollection &destCollection)
void setEeHandle(const edm::Handle< EcalRecHitCollection > ee)
std::vector< int > theEcalSeveritiesToBeExcluded_
void setHBEScale(double scale)
bool useRejectedHitsOnly_
edm::EDGetTokenT< HORecHitCollection > tok_ho_
void setEbHandle(const edm::Handle< EcalRecHitCollection > eb)
void setUseRejectedRecoveredEcalHits(bool flag)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
void setEcalSeveritiesToBeExcluded(const std::vector< int > &ecalSev)
void setHcalAcceptSeverityLevelForRejectedHit(unsigned int level)
void setHcalSevLvlComputer(const HcalSeverityLevelComputer *c)
virtual void produce(edm::Event &e, const edm::EventSetup &c)
std::vector< edm::EDGetTokenT< EcalRecHitCollection > > toks_ecal_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
void SetEcalSeveritiesToBeUsedInBadTowers(const std::vector< int > &ecalSev)
void setRecoveredEcalHitsAreUsed(bool flag)
edm::ESWatcher< HcalChannelQualityRcd > hcalChStatusWatcher_
void process(const HBHERecHitCollection &hbhe)
void setHESEScale(double scale)
void setHEDEScale(double scale)
void setEEEScale(double scale)
std::string instanceLabel
unsigned int theHcalAcceptSeverityLevelForRejectedHit_
void setRecoveredHcalHitsAreUsed(bool flag)
T const * product() const
void setUseRejectedHitsOnly(bool flag)
bool check(const edm::EventSetup &iSetup)
void setHOEScale(double scale)
unsigned int theHcalAcceptSeverityLevel_
edm::SortedCollection< CaloTower > CaloTowerCollection
bool theRecoveredEcalHitsAreUsed_
void setHcalAcceptSeverityLevel(unsigned int level)
bool useRejectedRecoveredHcalHits_
std::vector< edm::InputTag > ecalLabels_
edm::ESWatcher< HcalSeverityLevelComputerRcd > hcalSevLevelWatcher_
void setEcalSevLvlAlgo(const EcalSeverityLevelAlgo *a)
void setUseRejectedRecoveredHcalHits(bool flag)
edm::ESWatcher< IdealGeometryRecord > caloTowerConstituentsWatcher_
void setGeometry(const CaloTowerConstituentsMap *cttopo, const HcalTopology *htopo, const CaloGeometry *geo)
void setEBEScale(double scale)
std::vector< int > theEcalSeveritiesToBeUsedInBadTowers_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
edm::ESWatcher< EcalSeverityLevelAlgoRcd > ecalSevLevelWatcher_
bool useRejectedRecoveredEcalHits_