11 const std::vector<double>&
14 static std::vector<double> retval;
16 if (retval.size() == 0)
19 retval.push_back(10.);
20 retval.push_back(20.);
21 retval.push_back(30.);
22 retval.push_back(40.);
23 retval.push_back(50.);
24 retval.push_back(100.);
25 retval.push_back(1000.);
33 algo_(conf.getParameter<double>(
"EBThreshold"),
34 conf.getParameter<double>(
"EEThreshold"),
36 conf.getParameter<bool>(
"UseEtEBTreshold"),
37 conf.getParameter<bool>(
"UseEtEETreshold"),
38 conf.getParameter<bool>(
"UseSymEBTreshold"),
39 conf.getParameter<bool>(
"UseSymEETreshold"),
42 conf.getParameter<double>(
"HcalThreshold"),
43 conf.getParameter<double>(
"HBThreshold"),
44 conf.getParameter<double>(
"HESThreshold"),
45 conf.getParameter<double>(
"HEDThreshold"),
46 conf.getParameter<double>(
"HOThreshold0"),
47 conf.getParameter<double>(
"HOThresholdPlus1"),
48 conf.getParameter<double>(
"HOThresholdMinus1"),
49 conf.getParameter<double>(
"HOThresholdPlus2"),
50 conf.getParameter<double>(
"HOThresholdMinus2"),
51 conf.getParameter<double>(
"HF1Threshold"),
52 conf.getParameter<double>(
"HF2Threshold"),
53 conf.getParameter<std::vector<double> >(
"EBGrid"),
54 conf.getParameter<std::vector<double> >(
"EBWeights"),
55 conf.getParameter<std::vector<double> >(
"EEGrid"),
56 conf.getParameter<std::vector<double> >(
"EEWeights"),
57 conf.getParameter<std::vector<double> >(
"HBGrid"),
58 conf.getParameter<std::vector<double> >(
"HBWeights"),
59 conf.getParameter<std::vector<double> >(
"HESGrid"),
60 conf.getParameter<std::vector<double> >(
"HESWeights"),
61 conf.getParameter<std::vector<double> >(
"HEDGrid"),
62 conf.getParameter<std::vector<double> >(
"HEDWeights"),
63 conf.getParameter<std::vector<double> >(
"HOGrid"),
64 conf.getParameter<std::vector<double> >(
"HOWeights"),
65 conf.getParameter<std::vector<double> >(
"HF1Grid"),
66 conf.getParameter<std::vector<double> >(
"HF1Weights"),
67 conf.getParameter<std::vector<double> >(
"HF2Grid"),
68 conf.getParameter<std::vector<double> >(
"HF2Weights"),
69 conf.getParameter<double>(
"EBWeight"),
70 conf.getParameter<double>(
"EEWeight"),
71 conf.getParameter<double>(
"HBWeight"),
72 conf.getParameter<double>(
"HESWeight"),
73 conf.getParameter<double>(
"HEDWeight"),
74 conf.getParameter<double>(
"HOWeight"),
75 conf.getParameter<double>(
"HF1Weight"),
76 conf.getParameter<double>(
"HF2Weight"),
77 conf.getParameter<double>(
"EcutTower"),
78 conf.getParameter<double>(
"EBSumThreshold"),
79 conf.getParameter<double>(
"EESumThreshold"),
80 conf.getParameter<bool>(
"UseHO"),
82 conf.getParameter<int>(
"MomConstrMethod"),
83 conf.getParameter<double>(
"MomHBDepth"),
84 conf.getParameter<double>(
"MomHEDepth"),
85 conf.getParameter<double>(
"MomEBDepth"),
86 conf.getParameter<double>(
"MomEEDepth")
89 hbheLabel_(conf.getParameter<edm::InputTag>(
"hbheInput")),
90 hoLabel_(conf.getParameter<edm::InputTag>(
"hoInput")),
91 hfLabel_(conf.getParameter<edm::InputTag>(
"hfInput")),
92 ecalLabels_(conf.getParameter<std::vector<edm::InputTag> >(
"ecalInputs")),
93 allowMissingInputs_(conf.getParameter<bool>(
"AllowMissingInputs")),
95 theHcalAcceptSeverityLevel_(conf.getParameter<unsigned int>(
"HcalAcceptSeverityLevel")),
97 theRecoveredHcalHitsAreUsed_(conf.getParameter<bool>(
"UseHcalRecoveredHits")),
98 theRecoveredEcalHitsAreUsed_(conf.getParameter<bool>(
"UseEcalRecoveredHits")),
102 useRejectedHitsOnly_(conf.getParameter<bool>(
"UseRejectedHitsOnly")),
104 theHcalAcceptSeverityLevelForRejectedHit_(conf.getParameter<unsigned int>(
"HcalAcceptSeverityLevelForRejectedHit")),
107 useRejectedRecoveredHcalHits_(conf.getParameter<bool>(
"UseRejectedRecoveredHcalHits")),
108 useRejectedRecoveredEcalHits_(conf.getParameter<bool>(
"UseRejectedRecoveredEcalHits"))
123 const std::vector<std::string> severitynames =
124 conf.
getParameter<std::vector<std::string> >(
"EcalRecHitSeveritiesToBeExcluded");
130 StringToEnumValue<EcalSeverityLevel::SeverityLevel>(conf.
getParameter<std::vector<std::string> >(
"EcalSeveritiesToBeUsedInBadTowers") );
209 if(check1 || check2 || check3)
222 for (std::vector<edm::InputTag>::const_iterator
i=
ecalLabels_.begin();
228 if (ec_tmp->size()==0)
continue;
231 if ( (ec_tmp->begin()->detid()).subdetId() ==
EcalBarrel ) {
234 else if ((ec_tmp->begin()->detid()).subdetId() ==
EcalEndcap ) {
262 std::vector<edm::InputTag>::const_iterator
i;
CaloTowersCreator(const edm::ParameterSet &ps)
T getParameter(std::string const &) const
void setEcalChStatusFromDB(const EcalChannelStatus *s)
CaloTowersCreationAlgo algo_
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_
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)
void SetEcalSeveritiesToBeUsedInBadTowers(const std::vector< int > &ecalSev)
void setRecoveredEcalHitsAreUsed(bool flag)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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_
static const std::vector< double > & getGridValues()
bool useRejectedRecoveredEcalHits_