CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
ElectronStudy Class Reference
Inheritance diagram for ElectronStudy:
edm::one::EDAnalyzer< edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 ElectronStudy (const edm::ParameterSet &ps)
 
 ~ElectronStudy () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::SharedResources >
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void beginJob () override
 

Private Attributes

double etaBins_ [NEtaBins_+1]
 
TH1F * histoE1x1 [NPBins_+1][NEtaBins_+1]
 
TH1F * histoE3x3 [NPBins_+1][NEtaBins_+1]
 
TH1F * histoE5x5 [NPBins_+1][NEtaBins_+1]
 
TH1F * histoR1 [NPBins_+1][NEtaBins_+1]
 
TH1F * histoR2 [NPBins_+1][NEtaBins_+1]
 
TH1F * histoR3 [NPBins_+1][NEtaBins_+1]
 
bool histos_
 
int hotZone_
 
double pBins_ [NPBins_+1]
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtok_caloTopology_
 
edm::EDGetTokenT< edm::PCaloHitContainertok_EBhit_
 
edm::EDGetTokenT< edm::PCaloHitContainertok_EEhit_
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordtok_geom_
 
edm::ESGetToken< MagneticField, IdealMagneticFieldRecordtok_magField_
 
edm::EDGetTokenT< edm::SimTrackContainertok_simTk_
 
edm::EDGetTokenT< edm::SimVertexContainertok_simVtx_
 
int verbose_
 

Static Private Attributes

static const int NEtaBins_ = 3
 
static const int NPBins_ = 8
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 38 of file ElectronStudy.cc.

Constructor & Destructor Documentation

◆ ElectronStudy()

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

Definition at line 72 of file ElectronStudy.cc.

References etaBins_, edm::ParameterSet::getUntrackedParameter(), histoE1x1, histoE3x3, histoE5x5, histoR1, histoR2, histoR3, histos_, hotZone_, mps_fire::i, ProducerED_cfi::InputTag, dqmiolumiharvest::j, Skims_PA_cff::name, NEtaBins_, NPBins_, pBins_, AlCaHLTBitMon_QueryRunRegistry::string, compare::tfile, runGCPTkAlMap::title, tok_caloTopology_, tok_EBhit_, tok_EEhit_, tok_geom_, tok_magField_, tok_simTk_, tok_simVtx_, and verbose_.

72  {
73  usesResource("TFileService");
74 
75  std::string g4Label = ps.getUntrackedParameter<std::string>("ModuleLabel", "g4SimHits");
76  std::string hitLabEB = ps.getUntrackedParameter<std::string>("EBCollection", "EcalHitsEB");
77  std::string hitLabEE = ps.getUntrackedParameter<std::string>("EECollection", "EcalHitsEE");
78 
79  tok_EBhit_ = consumes<edm::PCaloHitContainer>(edm::InputTag(g4Label, hitLabEB));
80  tok_EEhit_ = consumes<edm::PCaloHitContainer>(edm::InputTag(g4Label, hitLabEE));
81  tok_simTk_ = consumes<edm::SimTrackContainer>(edm::InputTag(g4Label));
82  tok_simVtx_ = consumes<edm::SimVertexContainer>(edm::InputTag(g4Label));
83 
84  hotZone_ = ps.getUntrackedParameter<int>("HotZone", 0);
85  verbose_ = ps.getUntrackedParameter<int>("Verbosity", 0);
86  edm::LogInfo("ElectronStudy") << "Module Label: " << g4Label << " Hits: " << hitLabEB << ", " << hitLabEE;
87 
88  tok_geom_ = esConsumes<CaloGeometry, CaloGeometryRecord>();
89  tok_caloTopology_ = esConsumes<CaloTopology, CaloTopologyRecord>();
90  tok_magField_ = esConsumes<MagneticField, IdealMagneticFieldRecord>();
91 
92  double tempP[NPBins_ + 1] = {0.0, 10.0, 20.0, 40.0, 60.0, 100.0, 500.0, 1000.0, 10000.0};
93  double tempEta[NEtaBins_ + 1] = {0.0, 1.2, 1.6, 3.0};
94 
95  for (int i = 0; i < NPBins_ + 1; i++)
96  pBins_[i] = tempP[i];
97  for (int i = 0; i < NEtaBins_ + 1; i++)
98  etaBins_[i] = tempEta[i];
99 
101  if (!tfile.isAvailable()) {
102  edm::LogInfo("ElectronStudy") << "TFileService unavailable: no histograms";
103  histos_ = false;
104  } else {
105  char name[20], title[200], cpbin[30], cebin[30];
106  histos_ = true;
107  for (unsigned int i = 0; i < NPBins_ + 1; ++i) {
108  if (i == 0)
109  sprintf(cpbin, " All p");
110  else
111  sprintf(cpbin, " p (%6.0f:%6.0f)", pBins_[i - 1], pBins_[i]);
112  for (unsigned int j = 0; j < NEtaBins_ + 1; ++j) {
113  if (j == 0)
114  sprintf(cebin, " All #eta");
115  else
116  sprintf(cebin, " #eta (%4.1f:%4.1f)", etaBins_[j - 1], etaBins_[j]);
117  sprintf(name, "R1%d%d", i, j);
118  sprintf(title, "E1/E9 for %s%s", cpbin, cebin);
119  histoR1[i][j] = tfile->make<TH1F>(name, title, 100, 0., 2.);
120  histoR1[i][j]->GetXaxis()->SetTitle(title);
121  histoR1[i][j]->GetYaxis()->SetTitle("Tracks");
122  sprintf(name, "R2%d%d", i, j);
123  sprintf(title, "E1/E25 for %s%s", cpbin, cebin);
124  histoR2[i][j] = tfile->make<TH1F>(name, title, 100, 0., 2.);
125  histoR2[i][j]->GetXaxis()->SetTitle(title);
126  histoR2[i][j]->GetYaxis()->SetTitle("Tracks");
127  sprintf(name, "R3%d%d", i, j);
128  sprintf(title, "E9/E25 for %s%s", cpbin, cebin);
129  histoR3[i][j] = tfile->make<TH1F>(name, title, 100, 0., 2.);
130  histoR3[i][j]->GetXaxis()->SetTitle(title);
131  histoR3[i][j]->GetYaxis()->SetTitle("Tracks");
132  sprintf(name, "E1x1%d%d", i, j);
133  sprintf(title, "E1/P for %s%s", cpbin, cebin);
134  histoE1x1[i][j] = tfile->make<TH1F>(name, title, 100, 0., 2.);
135  histoE1x1[i][j]->GetXaxis()->SetTitle(title);
136  histoE1x1[i][j]->GetYaxis()->SetTitle("Tracks");
137  sprintf(name, "E3x3%d%d", i, j);
138  sprintf(title, "E9/P for %s%s", cpbin, cebin);
139  histoE3x3[i][j] = tfile->make<TH1F>(name, title, 100, 0., 2.);
140  histoE3x3[i][j]->GetXaxis()->SetTitle(title);
141  histoE3x3[i][j]->GetYaxis()->SetTitle("Tracks");
142  sprintf(name, "E5x5%d%d", i, j);
143  sprintf(title, "E25/P for %s%s", cpbin, cebin);
144  histoE5x5[i][j] = tfile->make<TH1F>(name, title, 100, 0., 2.);
145  histoE5x5[i][j]->GetXaxis()->SetTitle(title);
146  histoE5x5[i][j]->GetYaxis()->SetTitle("Tracks");
147  }
148  }
149  }
150 }
edm::EDGetTokenT< edm::SimTrackContainer > tok_simTk_
TH1F * histoR3[NPBins_+1][NEtaBins_+1]
edm::EDGetTokenT< edm::SimVertexContainer > tok_simVtx_
static const int NEtaBins_
TH1F * histoE3x3[NPBins_+1][NEtaBins_+1]
TH1F * histoR2[NPBins_+1][NEtaBins_+1]
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_magField_
T getUntrackedParameter(std::string const &, T const &) const
Definition: tfile.py:1
double etaBins_[NEtaBins_+1]
TH1F * histoE1x1[NPBins_+1][NEtaBins_+1]
edm::EDGetTokenT< edm::PCaloHitContainer > tok_EBhit_
Log< level::Info, false > LogInfo
TH1F * histoE5x5[NPBins_+1][NEtaBins_+1]
edm::EDGetTokenT< edm::PCaloHitContainer > tok_EEhit_
static const int NPBins_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
edm::ESGetToken< CaloTopology, CaloTopologyRecord > tok_caloTopology_
TH1F * histoR1[NPBins_+1][NEtaBins_+1]
double pBins_[NPBins_+1]

◆ ~ElectronStudy()

ElectronStudy::~ElectronStudy ( )
inlineoverride

Definition at line 41 of file ElectronStudy.cc.

41 {}

Member Function Documentation

◆ analyze()

void ElectronStudy::analyze ( edm::Event const &  iEvent,
edm::EventSetup const &  iSetup 
)
overrideprivatevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 161 of file ElectronStudy.cc.

References funct::abs(), Calorimetry_cff::bField, TauDecayModes::dec, spr::propagatedTrackDirection::detIdECAL, electrons_cff::e5x5, EcalBarrel, EcalEndcap, spr::eECALmatrix(), PVValHelper::eta, muonRecoAnalyzer_cfi::etaBin, etaBins_, edm::EventSetup::getData(), histoE1x1, histoE3x3, histoE5x5, histoR1, histoR2, histoR3, histos_, spr::hotCrystal(), hotZone_, hcalRecHitTable_cff::ieta, iEvent, edm::HandleBase::isValid(), NEtaBins_, NPBins_, spr::propagatedTrackDirection::okECAL, AlCaHLTBitMon_ParallelJobs::p, pBins_, spr::propagateCALO(), diffTwoXMLs::r1, diffTwoXMLs::r2, DetId::subdetId(), tok_caloTopology_, tok_EBhit_, tok_EEhit_, tok_geom_, tok_magField_, tok_simTk_, tok_simVtx_, and verbose_.

161  {
162  if (verbose_ > 1)
163  edm::LogVerbatim("IsoTrack") << "Run = " << iEvent.id().run() << " Event = " << iEvent.id().event();
164 
165  // get Geometry, B-field, Topology
166  const CaloGeometry* geo = &iSetup.getData(tok_geom_);
167  const MagneticField* bField = &iSetup.getData(tok_magField_);
168  const CaloTopology* caloTopology = &iSetup.getData(tok_caloTopology_);
169 
170  // get PCaloHits for ecal barrel
172  iEvent.getByToken(tok_EBhit_, caloHitEB);
173 
174  // get PCaloHits for ecal endcap
176  iEvent.getByToken(tok_EEhit_, caloHitEE);
177 
178  // get sim tracks
180  iEvent.getByToken(tok_simTk_, SimTk);
181 
182  // get sim vertices
184  iEvent.getByToken(tok_simVtx_, SimVtx);
185 
186  if (verbose_ > 0)
187  edm::LogVerbatim("IsoTrack") << "ElectronStudy: hits valid[EB]: " << caloHitEB.isValid()
188  << " valid[EE]: " << caloHitEE.isValid();
189 
190  if (caloHitEB.isValid() && caloHitEE.isValid()) {
191  unsigned int indx;
192  if (verbose_ > 2) {
193  edm::PCaloHitContainer::const_iterator ihit;
194  for (ihit = caloHitEB->begin(), indx = 0; ihit != caloHitEB->end(); ihit++, indx++) {
195  EBDetId id = ihit->id();
196  edm::LogVerbatim("IsoTrack") << "Hit[" << indx << "] " << id << " E " << ihit->energy() << " T "
197  << ihit->time();
198  }
199  for (ihit = caloHitEE->begin(), indx = 0; ihit != caloHitEE->end(); ihit++, indx++) {
200  EEDetId id = ihit->id();
201  edm::LogVerbatim("IsoTrack") << "Hit[" << indx << "] " << id << " E " << ihit->energy() << " T "
202  << ihit->time();
203  }
204  }
205  edm::SimTrackContainer::const_iterator simTrkItr = SimTk->begin();
206  for (indx = 0; simTrkItr != SimTk->end(); simTrkItr++, indx++) {
207  if (verbose_ > 0)
208  edm::LogVerbatim("IsoTrack") << "ElectronStudy: Track[" << indx << "] ID " << simTrkItr->trackId() << " type "
209  << simTrkItr->type() << " charge " << simTrkItr->charge() << " p "
210  << simTrkItr->momentum() << " Generator Index " << simTrkItr->genpartIndex()
211  << " vertex " << simTrkItr->vertIndex();
212  if (std::abs(simTrkItr->type()) == 11 && simTrkItr->vertIndex() != -1) {
213  int thisTrk = simTrkItr->trackId();
214  spr::propagatedTrackDirection trkD = spr::propagateCALO(thisTrk, SimTk, SimVtx, geo, bField, (verbose_ > 1));
215  if (trkD.okECAL) {
216  const DetId isoCell = trkD.detIdECAL;
217  DetId hotCell = isoCell;
218  if (hotZone_ > 0)
219  hotCell = spr::hotCrystal(
220  isoCell, caloHitEB, caloHitEE, geo, caloTopology, hotZone_, hotZone_, -500.0, 500.0, (verbose_ > 1));
221  double e1x1 = spr::eECALmatrix(
222  hotCell, caloHitEB, caloHitEE, geo, caloTopology, 0, 0, -100.0, -100.0, -500.0, 500.0, (verbose_ > 2));
223  double e3x3 = spr::eECALmatrix(
224  hotCell, caloHitEB, caloHitEE, geo, caloTopology, 1, 1, -100.0, -100.0, -500.0, 500.0, (verbose_ > 2));
225  double e5x5 = spr::eECALmatrix(
226  hotCell, caloHitEB, caloHitEE, geo, caloTopology, 2, 2, -100.0, -100.0, -500.0, 500.0, (verbose_ > 2));
227  double p = simTrkItr->momentum().P();
228  double eta = std::abs(simTrkItr->momentum().eta());
229  int etaBin = -1, momBin = -1;
230  for (int ieta = 0; ieta < NEtaBins_; ieta++) {
231  if (eta > etaBins_[ieta] && eta < etaBins_[ieta + 1])
232  etaBin = ieta + 1;
233  }
234  for (int ipt = 0; ipt < NPBins_; ipt++) {
235  if (p > pBins_[ipt] && p < pBins_[ipt + 1])
236  momBin = ipt + 1;
237  }
238  double r1 = -1, r2 = -1, r3 = -1;
239  if (e3x3 > 0)
240  r1 = e1x1 / e3x3;
241  if (e5x5 > 0) {
242  r2 = e1x1 / e5x5;
243  r3 = e3x3 / e5x5;
244  }
245  if (verbose_ > 0) {
246  edm::LogVerbatim("IsoTrack") << "ElectronStudy: p " << p << " [" << momBin << "] eta " << eta << " ["
247  << etaBin << "] Cell 0x" << std::hex << isoCell() << std::dec;
248  if (isoCell.subdetId() == EcalBarrel) {
249  edm::LogVerbatim("IsoTrack") << EBDetId(isoCell);
250  } else if (isoCell.subdetId() == EcalEndcap) {
251  edm::LogVerbatim("IsoTrack") << EEDetId(isoCell);
252  }
253  edm::LogVerbatim("IsoTrack") << " e1x1 " << e1x1 << "|" << r1 << "|" << r2 << " e3x3 " << e3x3 << "|" << r3
254  << " e5x5 " << e5x5;
255  }
256  if (histos_) {
257  histoR1[0][0]->Fill(r1);
258  histoR2[0][0]->Fill(r2);
259  histoR3[0][0]->Fill(r3);
260  histoE1x1[0][0]->Fill(e1x1 / p);
261  histoE3x3[0][0]->Fill(e3x3 / p);
262  histoE5x5[0][0]->Fill(e5x5 / p);
263  if (momBin > 0) {
264  histoR1[momBin][0]->Fill(r1);
265  histoR2[momBin][0]->Fill(r2);
266  histoR3[momBin][0]->Fill(r3);
267  histoE1x1[momBin][0]->Fill(e1x1 / p);
268  histoE3x3[momBin][0]->Fill(e3x3 / p);
269  histoE5x5[momBin][0]->Fill(e5x5 / p);
270  }
271  if (etaBin > 0) {
272  histoR1[0][etaBin]->Fill(r1);
273  histoR2[0][etaBin]->Fill(r2);
274  histoR3[0][etaBin]->Fill(r3);
275  histoE1x1[0][etaBin]->Fill(e1x1 / p);
276  histoE3x3[0][etaBin]->Fill(e3x3 / p);
277  histoE5x5[0][etaBin]->Fill(e5x5 / p);
278  if (momBin > 0) {
279  histoR1[momBin][etaBin]->Fill(r1);
280  histoR2[momBin][etaBin]->Fill(r2);
281  histoR3[momBin][etaBin]->Fill(r3);
282  histoE1x1[momBin][etaBin]->Fill(e1x1 / p);
283  histoE3x3[momBin][etaBin]->Fill(e3x3 / p);
284  histoE5x5[momBin][etaBin]->Fill(e5x5 / p);
285  }
286  }
287  }
288  }
289  }
290  }
291  }
292 }
Log< level::Info, true > LogVerbatim
std::vector< spr::propagatedTrackID > propagateCALO(edm::Handle< reco::TrackCollection > &trkCollection, const CaloGeometry *geo, const MagneticField *bField, const std::string &theTrackQuality, bool debug=false)
edm::EDGetTokenT< edm::SimTrackContainer > tok_simTk_
TH1F * histoR3[NPBins_+1][NEtaBins_+1]
edm::EDGetTokenT< edm::SimVertexContainer > tok_simVtx_
static const int NEtaBins_
TH1F * histoE3x3[NPBins_+1][NEtaBins_+1]
TH1F * histoR2[NPBins_+1][NEtaBins_+1]
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > tok_magField_
int iEvent
Definition: GenABIO.cc:224
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double etaBins_[NEtaBins_+1]
TH1F * histoE1x1[NPBins_+1][NEtaBins_+1]
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
edm::EDGetTokenT< edm::PCaloHitContainer > tok_EBhit_
Definition: DetId.h:17
TH1F * histoE5x5[NPBins_+1][NEtaBins_+1]
DetId hotCrystal(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double tMin=-500, double tMax=500, bool debug=false)
edm::EDGetTokenT< edm::PCaloHitContainer > tok_EEhit_
bool isValid() const
Definition: HandleBase.h:70
static const int NPBins_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > tok_geom_
double eECALmatrix(const DetId &detId, edm::Handle< T > &hitsEB, edm::Handle< T > &hitsEE, const CaloGeometry *geo, const CaloTopology *caloTopology, int ieta, int iphi, double ebThr=-100, double eeThr=-100, double tMin=-500, double tMax=500, bool debug=false)
edm::ESGetToken< CaloTopology, CaloTopologyRecord > tok_caloTopology_
TH1F * histoR1[NPBins_+1][NEtaBins_+1]
double pBins_[NPBins_+1]

◆ beginJob()

void ElectronStudy::beginJob ( )
inlineoverrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 47 of file ElectronStudy.cc.

47 {}

◆ fillDescriptions()

void ElectronStudy::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 152 of file ElectronStudy.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

152  {
154  desc.addUntracked<std::string>("ModuleLabel", "g4SimHits");
155  desc.addUntracked<std::string>("EBCollection", "EcalHitsEB");
156  desc.addUntracked<std::string>("EECollection", "EcalHitsEE");
157  desc.addUntracked<int>("Verbosity", 0);
158  descriptions.add("electronStudy", desc);
159 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ etaBins_

double ElectronStudy::etaBins_[NEtaBins_+1]
private

Definition at line 51 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ histoE1x1

TH1F* ElectronStudy::histoE1x1[NPBins_+1][NEtaBins_+1]
private

Definition at line 67 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ histoE3x3

TH1F* ElectronStudy::histoE3x3[NPBins_+1][NEtaBins_+1]
private

Definition at line 68 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ histoE5x5

TH1F* ElectronStudy::histoE5x5[NPBins_+1][NEtaBins_+1]
private

Definition at line 69 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ histoR1

TH1F* ElectronStudy::histoR1[NPBins_+1][NEtaBins_+1]
private

Definition at line 64 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ histoR2

TH1F* ElectronStudy::histoR2[NPBins_+1][NEtaBins_+1]
private

Definition at line 65 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ histoR3

TH1F* ElectronStudy::histoR3[NPBins_+1][NEtaBins_+1]
private

Definition at line 66 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ histos_

bool ElectronStudy::histos_
private

Definition at line 63 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ hotZone_

int ElectronStudy::hotZone_
private

Definition at line 62 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ NEtaBins_

const int ElectronStudy::NEtaBins_ = 3
staticprivate

Definition at line 49 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ NPBins_

const int ElectronStudy::NPBins_ = 8
staticprivate

Definition at line 50 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ pBins_

double ElectronStudy::pBins_[NPBins_+1]
private

Definition at line 51 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ tok_caloTopology_

edm::ESGetToken<CaloTopology, CaloTopologyRecord> ElectronStudy::tok_caloTopology_
private

Definition at line 59 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ tok_EBhit_

edm::EDGetTokenT<edm::PCaloHitContainer> ElectronStudy::tok_EBhit_
private

Definition at line 53 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ tok_EEhit_

edm::EDGetTokenT<edm::PCaloHitContainer> ElectronStudy::tok_EEhit_
private

Definition at line 54 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ tok_geom_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> ElectronStudy::tok_geom_
private

Definition at line 58 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ tok_magField_

edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> ElectronStudy::tok_magField_
private

Definition at line 60 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ tok_simTk_

edm::EDGetTokenT<edm::SimTrackContainer> ElectronStudy::tok_simTk_
private

Definition at line 55 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ tok_simVtx_

edm::EDGetTokenT<edm::SimVertexContainer> ElectronStudy::tok_simVtx_
private

Definition at line 56 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().

◆ verbose_

int ElectronStudy::verbose_
private

Definition at line 62 of file ElectronStudy.cc.

Referenced by analyze(), and ElectronStudy().