CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Static Private Member Functions | Private Attributes
CaloTowersCreator Class Reference

#include <CaloTowersCreator.h>

Inheritance diagram for CaloTowersCreator:
edm::stream::EDProducer<> edm::stream::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 CaloTowersCreator (const edm::ParameterSet &ps)
 
virtual void produce (edm::Event &e, const edm::EventSetup &c)
 
virtual ~CaloTowersCreator ()
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
- Public Member Functions inherited from edm::stream::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDProducerBase ()
 
- Public Member Functions inherited from edm::ProducerBase
 ProducerBase ()
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription
const &)> 
registrationCallback () const
 used by the fwk to register list of products More...
 
virtual ~ProducerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Public Attributes

double EBEScale
 
double EEEScale
 
double HBEScale
 
double HEDEScale
 
double HESEScale
 
double HF1EScale
 
double HF2EScale
 
double HOEScale
 

Static Private Member Functions

static const std::vector
< double > & 
getGridValues ()
 

Private Attributes

CaloTowersCreationAlgo algo_
 
bool allowMissingInputs_
 
edm::ESWatcher
< IdealGeometryRecord
caloTowerConstituentsWatcher_
 
std::vector< edm::InputTagecalLabels_
 
edm::ESWatcher
< EcalSeverityLevelAlgoRcd
ecalSevLevelWatcher_
 
EScales eScales_
 
edm::ESWatcher
< HcalChannelQualityRcd
hcalChStatusWatcher_
 
edm::ESWatcher
< HcalSeverityLevelComputerRcd
hcalSevLevelWatcher_
 
std::vector< int > theEcalSeveritiesToBeExcluded_
 
std::vector< int > theEcalSeveritiesToBeUsedInBadTowers_
 
unsigned int theHcalAcceptSeverityLevel_
 
unsigned int theHcalAcceptSeverityLevelForRejectedHit_
 
bool theRecoveredEcalHitsAreUsed_
 
bool theRecoveredHcalHitsAreUsed_
 
edm::EDGetTokenT
< HBHERecHitCollection
tok_hbhe_
 
edm::EDGetTokenT
< HFRecHitCollection
tok_hf_
 
edm::EDGetTokenT
< HORecHitCollection
tok_ho_
 
std::vector< edm::EDGetTokenT
< EcalRecHitCollection > > 
toks_ecal_
 
bool useRejectedHitsOnly_
 
bool useRejectedRecoveredEcalHits_
 
bool useRejectedRecoveredHcalHits_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T...> CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T...> HasAbility
 
typedef
CacheTypes::LuminosityBlockCache 
LuminosityBlockCache
 
typedef
LuminosityBlockContextT
< LuminosityBlockCache,
RunCache, GlobalCache
LuminosityBlockContext
 
typedef
CacheTypes::LuminosityBlockSummaryCache 
LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache,
GlobalCache
RunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDProducerBase
typedef EDProducerAdaptorBase ModuleType
 
- Public Types inherited from edm::ProducerBase
typedef
ProductRegistryHelper::TypeLabelList 
TypeLabelList
 
- Static Public Member Functions inherited from edm::stream::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

Original author: J. Mans - Minnesota

Definition at line 25 of file CaloTowersCreator.h.

Constructor & Destructor Documentation

CaloTowersCreator::CaloTowersCreator ( const edm::ParameterSet ps)
explicit

Definition at line 11 of file CaloTowersCreator.cc.

References EBEScale, EScales::EBScale, ecalLabels_, EEEScale, EScales::EEScale, eScales_, edm::ParameterSet::getParameter(), HBEScale, EScales::HBScale, HEDEScale, EScales::HEDScale, HESEScale, EScales::HESScale, HF1EScale, EScales::HF1Scale, HF2EScale, EScales::HF2Scale, HOEScale, EScales::HOScale, i, EScales::instanceLabel, theEcalSeveritiesToBeExcluded_, theEcalSeveritiesToBeUsedInBadTowers_, tok_hbhe_, tok_hf_, tok_ho_, and toks_ecal_.

11  :
12  algo_(conf.getParameter<double>("EBThreshold"),
13  conf.getParameter<double>("EEThreshold"),
14 
15  conf.getParameter<bool>("UseEtEBTreshold"),
16  conf.getParameter<bool>("UseEtEETreshold"),
17  conf.getParameter<bool>("UseSymEBTreshold"),
18  conf.getParameter<bool>("UseSymEETreshold"),
19 
20 
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"),
60  // (for momentum reconstruction algorithm)
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")
66  ),
67 
68  ecalLabels_(conf.getParameter<std::vector<edm::InputTag> >("ecalInputs")),
69  allowMissingInputs_(conf.getParameter<bool>("AllowMissingInputs")),
70 
71  theHcalAcceptSeverityLevel_(conf.getParameter<unsigned int>("HcalAcceptSeverityLevel")),
72 
73  theRecoveredHcalHitsAreUsed_(conf.getParameter<bool>("UseHcalRecoveredHits")),
74  theRecoveredEcalHitsAreUsed_(conf.getParameter<bool>("UseEcalRecoveredHits")),
75 
76  // paramaters controlling the use of rejected hits
77 
78  useRejectedHitsOnly_(conf.getParameter<bool>("UseRejectedHitsOnly")),
79 
80  theHcalAcceptSeverityLevelForRejectedHit_(conf.getParameter<unsigned int>("HcalAcceptSeverityLevelForRejectedHit")),
81 
82 
83  useRejectedRecoveredHcalHits_(conf.getParameter<bool>("UseRejectedRecoveredHcalHits")),
84  useRejectedRecoveredEcalHits_(conf.getParameter<bool>("UseRejectedRecoveredEcalHits"))
85 
86 
87 
88 {
89 
90  // register for data access
91  tok_hbhe_ = consumes<HBHERecHitCollection>(conf.getParameter<edm::InputTag>("hbheInput"));
92  tok_ho_ = consumes<HORecHitCollection>(conf.getParameter<edm::InputTag>("hoInput"));
93  tok_hf_ = consumes<HFRecHitCollection>(conf.getParameter<edm::InputTag>("hfInput"));
94 
95  const unsigned nLabels = ecalLabels_.size();
96  for ( unsigned i=0; i != nLabels; i++ )
97  toks_ecal_.push_back(consumes<EcalRecHitCollection>(ecalLabels_[i]));
98 
99 
108 
109  // get the Ecal severities to be excluded
110  const std::vector<std::string> severitynames =
111  conf.getParameter<std::vector<std::string> >("EcalRecHitSeveritiesToBeExcluded");
112 
113  theEcalSeveritiesToBeExcluded_ = StringToEnumValue<EcalSeverityLevel::SeverityLevel>(severitynames);
114 
115  // get the Ecal severities to be used for bad towers
117  StringToEnumValue<EcalSeverityLevel::SeverityLevel>(conf.getParameter<std::vector<std::string> >("EcalSeveritiesToBeUsedInBadTowers") );
118 
119  if (eScales_.instanceLabel=="") produces<CaloTowerCollection>();
120  else produces<CaloTowerCollection>(eScales_.instanceLabel);
121 
122  /*
123  std::cout << "VI Producer "
124  << (useRejectedHitsOnly_ ? "use rejectOnly " : " ")
125  << (allowMissingInputs_ ? "allowMissing " : " " )
126  << nLabels << ' ' << severitynames.size()
127  << std::endl;
128  */
129 }
double HF2Scale
Definition: EScales.h:18
int i
Definition: DBlmapReader.cc:9
CaloTowersCreationAlgo algo_
double EEScale
Definition: EScales.h:12
double HOScale
Definition: EScales.h:16
std::vector< int > theEcalSeveritiesToBeExcluded_
double HF1Scale
Definition: EScales.h:17
edm::EDGetTokenT< HORecHitCollection > tok_ho_
double HEDScale
Definition: EScales.h:15
std::vector< edm::EDGetTokenT< EcalRecHitCollection > > toks_ecal_
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
double EBScale
Definition: EScales.h:11
double HBScale
Definition: EScales.h:13
tuple conf
Definition: dbtoconf.py:185
std::string instanceLabel
Definition: EScales.h:19
unsigned int theHcalAcceptSeverityLevelForRejectedHit_
unsigned int theHcalAcceptSeverityLevel_
std::vector< edm::InputTag > ecalLabels_
double HESScale
Definition: EScales.h:14
std::vector< int > theEcalSeveritiesToBeUsedInBadTowers_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
virtual CaloTowersCreator::~CaloTowersCreator ( )
inlinevirtual

Definition at line 28 of file CaloTowersCreator.h.

28 { }

Member Function Documentation

static const std::vector<double>& CaloTowersCreator::getGridValues ( )
staticprivate
void CaloTowersCreator::produce ( edm::Event e,
const edm::EventSetup c 
)
virtual

Implements edm::stream::EDProducerBase.

Definition at line 131 of file CaloTowersCreator.cc.

References algo_, allowMissingInputs_, CaloTowersCreationAlgo::begin(), caloTowerConstituentsWatcher_, edm::ESWatcher< T >::check(), EBEScale, EcalBarrel, EcalEndcap, ecalSevLevelWatcher_, EEEScale, eScales_, CaloTowersCreationAlgo::finish(), edm::EventSetup::get(), edm::Event::getByToken(), HBEScale, hcalChStatusWatcher_, hcalSevLevelWatcher_, HEDEScale, HESEScale, HF1EScale, HF2EScale, HOEScale, i, EScales::instanceLabel, CaloTowersCreationAlgo::makeEcalBadChs(), CaloTowersCreationAlgo::makeHcalDropChMap(), CaloTowersCreationAlgo::process(), parseEventContent::prod, edm::ESHandle< class >::product(), edm::Event::put(), CaloTowersCreationAlgo::setEBEScale(), CaloTowersCreationAlgo::setEbHandle(), CaloTowersCreationAlgo::setEcalChStatusFromDB(), CaloTowersCreationAlgo::setEcalSeveritiesToBeExcluded(), CaloTowersCreationAlgo::SetEcalSeveritiesToBeUsedInBadTowers(), CaloTowersCreationAlgo::setEcalSevLvlAlgo(), CaloTowersCreationAlgo::setEEEScale(), CaloTowersCreationAlgo::setEeHandle(), CaloTowersCreationAlgo::setGeometry(), CaloTowersCreationAlgo::setHBEScale(), CaloTowersCreationAlgo::setHcalAcceptSeverityLevel(), CaloTowersCreationAlgo::setHcalAcceptSeverityLevelForRejectedHit(), CaloTowersCreationAlgo::setHcalChStatusFromDB(), CaloTowersCreationAlgo::setHcalSevLvlComputer(), CaloTowersCreationAlgo::setHEDEScale(), CaloTowersCreationAlgo::setHESEScale(), CaloTowersCreationAlgo::setHF1EScale(), CaloTowersCreationAlgo::setHF2EScale(), CaloTowersCreationAlgo::setHOEScale(), CaloTowersCreationAlgo::setRecoveredEcalHitsAreUsed(), CaloTowersCreationAlgo::setRecoveredHcalHitsAreUsed(), CaloTowersCreationAlgo::setUseRejectedHitsOnly(), CaloTowersCreationAlgo::setUseRejectedRecoveredEcalHits(), CaloTowersCreationAlgo::setUseRejectedRecoveredHcalHits(), theEcalSeveritiesToBeExcluded_, theEcalSeveritiesToBeUsedInBadTowers_, theHcalAcceptSeverityLevel_, theHcalAcceptSeverityLevelForRejectedHit_, theRecoveredEcalHitsAreUsed_, theRecoveredHcalHitsAreUsed_, tok_hbhe_, tok_hf_, tok_ho_, toks_ecal_, useRejectedHitsOnly_, useRejectedRecoveredEcalHits_, and useRejectedRecoveredHcalHits_.

131  {
132  // get the necessary event setup objects...
136  c.get<CaloGeometryRecord>().get(pG);
137  c.get<IdealGeometryRecord>().get(htopo);
138  c.get<IdealGeometryRecord>().get(cttopo);
139 
140  // ECAL channel status map ****************************************
142  c.get<EcalChannelStatusRcd>().get( ecalChStatus );
143  const EcalChannelStatus* dbEcalChStatus = ecalChStatus.product();
144 
145  // HCAL channel status map ****************************************
146  edm::ESHandle<HcalChannelQuality> hcalChStatus;
147  c.get<HcalChannelQualityRcd>().get( "withTopo", hcalChStatus );
148 
149  const HcalChannelQuality* dbHcalChStatus = hcalChStatus.product();
150 
151  // Assignment of severity levels **********************************
152  edm::ESHandle<HcalSeverityLevelComputer> hcalSevLvlComputerHndl;
153  c.get<HcalSeverityLevelComputerRcd>().get(hcalSevLvlComputerHndl);
154  const HcalSeverityLevelComputer* hcalSevLvlComputer = hcalSevLvlComputerHndl.product();
155 
156  edm::ESHandle<EcalSeverityLevelAlgo> ecalSevLvlAlgoHndl;
157  c.get<EcalSeverityLevelAlgoRcd>().get(ecalSevLvlAlgoHndl);
158  const EcalSeverityLevelAlgo* ecalSevLvlAlgo = ecalSevLvlAlgoHndl.product();
159 
160 
169  algo_.setGeometry(cttopo.product(),htopo.product(),pG.product());
170 
171  // for treatment of problematic and anomalous cells
172 
173  algo_.setHcalChStatusFromDB(dbHcalChStatus);
174  algo_.setEcalChStatusFromDB(dbEcalChStatus);
175 
178 
181 
182  algo_.setHcalSevLvlComputer(hcalSevLvlComputer);
183  algo_.setEcalSevLvlAlgo(ecalSevLvlAlgo);
184 
185 
187 
190 
193 
194  /*
195  std::cout << "VI Produce: "
196  << (useRejectedHitsOnly_ ? "use rejectOnly " : " ")
197  << (allowMissingInputs_ ? "allowMissing " : " " )
198  << (theRecoveredEcalHitsAreUsed_ ? "use RecoveredEcal ": " " )
199  << toks_ecal_.size()
200  << ' ' << theEcalSeveritiesToBeExcluded_.size()
201  << ' ' << theEcalSeveritiesToBeUsedInBadTowers_.size()
202  << std::endl;
203  */
204 
205  algo_.begin(); // clear the internal buffer
206 
207  // can't chain these in a big OR statement, or else it'll
208  // get triggered for each of the first three events
209  bool check1 = hcalSevLevelWatcher_.check(c);
210  bool check2 = hcalChStatusWatcher_.check(c);
211  bool check3 = caloTowerConstituentsWatcher_.check(c);
212  if(check1 || check2 || check3)
213  {
215  }
216 
217  // check ecal SevLev
219 
220  // ----------------------------------------------------------
221  // For ecal error handling need to
222  // have access to the EB and EE collections at the end of
223  // tower reconstruction.
224 
227 
228  for (std::vector<edm::EDGetTokenT<EcalRecHitCollection> >::const_iterator i=toks_ecal_.begin();
229  i!=toks_ecal_.end(); i++) {
230 
232 
233  if (! e.getByToken(*i,ec_tmp) ) continue;
234  if (ec_tmp->size()==0) continue;
235 
236  // check if this is EB or EE
237  if ( (ec_tmp->begin()->detid()).subdetId() == EcalBarrel ) {
238  ebHandle = ec_tmp;
239  }
240  else if ((ec_tmp->begin()->detid()).subdetId() == EcalEndcap ) {
241  eeHandle = ec_tmp;
242  }
243  }
244 
245  algo_.setEbHandle(ebHandle);
246  algo_.setEeHandle(eeHandle);
247 
248  //-----------------------------------------------------------
249 
250  bool present;
251 
252  // Step A/C: Get Inputs and process (repeatedly)
254  present=e.getByToken(tok_hbhe_,hbhe);
255  if (present || !allowMissingInputs_) algo_.process(*hbhe);
256 
258  present=e.getByToken(tok_ho_,ho);
259  if (present || !allowMissingInputs_) algo_.process(*ho);
260 
262  present=e.getByToken(tok_hf_,hf);
263  if (present || !allowMissingInputs_) algo_.process(*hf);
264 
265  std::vector<edm::EDGetTokenT<EcalRecHitCollection> >::const_iterator i;
266  for (i=toks_ecal_.begin(); i!=toks_ecal_.end(); i++) {
268  present=e.getByToken(*i,ec);
269  if (present || !allowMissingInputs_) algo_.process(*ec);
270  }
271 
272  // Step B: Create empty output
273  std::auto_ptr<CaloTowerCollection> prod(new CaloTowerCollection());
274 
275  // Step C: Process
276  algo_.finish(*prod);
277 
278  /*
279  int totc=0; float totE=0;
280  reco::LeafCandidate::LorentzVector totP4;
281  for (auto const & tw : (*prod) ) { totc += tw.constituents().size(); totE+=tw.energy(); totP4+=tw.p4();}
282  std::cout << "VI " << (*prod).size() << " " << totc << " " << totE << " " << totP4 << std::endl;
283  */
284 
285  // Step D: Put into the event
286  if (eScales_.instanceLabel=="") e.put(prod);
287  else e.put(prod,eScales_.instanceLabel);
288 
289 
290 }
int i
Definition: DBlmapReader.cc:9
void setEcalChStatusFromDB(const EcalChannelStatus *s)
CaloTowersCreationAlgo algo_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:449
void setHcalChStatusFromDB(const HcalChannelQuality *s)
void finish(CaloTowerCollection &destCollection)
void setEeHandle(const edm::Handle< EcalRecHitCollection > ee)
std::vector< int > theEcalSeveritiesToBeExcluded_
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.
Definition: Event.h:113
void setEcalSeveritiesToBeExcluded(const std::vector< int > &ecalSev)
void setHcalAcceptSeverityLevelForRejectedHit(unsigned int level)
void setHcalSevLvlComputer(const HcalSeverityLevelComputer *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)
std::string instanceLabel
Definition: EScales.h:19
unsigned int theHcalAcceptSeverityLevelForRejectedHit_
void setRecoveredHcalHitsAreUsed(bool flag)
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:86
void setUseRejectedHitsOnly(bool flag)
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
unsigned int theHcalAcceptSeverityLevel_
edm::SortedCollection< CaloTower > CaloTowerCollection
Definition: CaloTowerFwd.h:15
void setHcalAcceptSeverityLevel(unsigned int level)
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)
std::vector< int > theEcalSeveritiesToBeUsedInBadTowers_
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
edm::ESWatcher< EcalSeverityLevelAlgoRcd > ecalSevLevelWatcher_

Member Data Documentation

CaloTowersCreationAlgo CaloTowersCreator::algo_
private

Definition at line 37 of file CaloTowersCreator.h.

Referenced by produce().

bool CaloTowersCreator::allowMissingInputs_
private

Definition at line 43 of file CaloTowersCreator.h.

Referenced by produce().

edm::ESWatcher<IdealGeometryRecord> CaloTowersCreator::caloTowerConstituentsWatcher_
private

Definition at line 75 of file CaloTowersCreator.h.

Referenced by produce().

double CaloTowersCreator::EBEScale

Definition at line 30 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

std::vector<edm::InputTag> CaloTowersCreator::ecalLabels_
private

Definition at line 41 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator().

edm::ESWatcher<EcalSeverityLevelAlgoRcd> CaloTowersCreator::ecalSevLevelWatcher_
private

Definition at line 76 of file CaloTowersCreator.h.

Referenced by produce().

double CaloTowersCreator::EEEScale

Definition at line 30 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

EScales CaloTowersCreator::eScales_
private

Definition at line 77 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

double CaloTowersCreator::HBEScale

Definition at line 30 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

edm::ESWatcher<HcalChannelQualityRcd> CaloTowersCreator::hcalChStatusWatcher_
private

Definition at line 74 of file CaloTowersCreator.h.

Referenced by produce().

edm::ESWatcher<HcalSeverityLevelComputerRcd> CaloTowersCreator::hcalSevLevelWatcher_
private

Definition at line 73 of file CaloTowersCreator.h.

Referenced by produce().

double CaloTowersCreator::HEDEScale

Definition at line 31 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

double CaloTowersCreator::HESEScale

Definition at line 30 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

double CaloTowersCreator::HF1EScale

Definition at line 31 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

double CaloTowersCreator::HF2EScale

Definition at line 31 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

double CaloTowersCreator::HOEScale

Definition at line 31 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

std::vector<int> CaloTowersCreator::theEcalSeveritiesToBeExcluded_
private

Definition at line 49 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

std::vector<int> CaloTowersCreator::theEcalSeveritiesToBeUsedInBadTowers_
private

Definition at line 61 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

unsigned int CaloTowersCreator::theHcalAcceptSeverityLevel_
private

Definition at line 48 of file CaloTowersCreator.h.

Referenced by produce().

unsigned int CaloTowersCreator::theHcalAcceptSeverityLevelForRejectedHit_
private

Definition at line 59 of file CaloTowersCreator.h.

Referenced by produce().

bool CaloTowersCreator::theRecoveredEcalHitsAreUsed_
private

Definition at line 53 of file CaloTowersCreator.h.

Referenced by produce().

bool CaloTowersCreator::theRecoveredHcalHitsAreUsed_
private

Definition at line 52 of file CaloTowersCreator.h.

Referenced by produce().

edm::EDGetTokenT<HBHERecHitCollection> CaloTowersCreator::tok_hbhe_
private

Definition at line 38 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

edm::EDGetTokenT<HFRecHitCollection> CaloTowersCreator::tok_hf_
private

Definition at line 40 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

edm::EDGetTokenT<HORecHitCollection> CaloTowersCreator::tok_ho_
private

Definition at line 39 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

std::vector<edm::EDGetTokenT<EcalRecHitCollection> > CaloTowersCreator::toks_ecal_
private

Definition at line 42 of file CaloTowersCreator.h.

Referenced by CaloTowersCreator(), and produce().

bool CaloTowersCreator::useRejectedHitsOnly_
private

Definition at line 58 of file CaloTowersCreator.h.

Referenced by produce().

bool CaloTowersCreator::useRejectedRecoveredEcalHits_
private

Definition at line 71 of file CaloTowersCreator.h.

Referenced by produce().

bool CaloTowersCreator::useRejectedRecoveredHcalHits_
private

Definition at line 70 of file CaloTowersCreator.h.

Referenced by produce().