CMS 3D CMS Logo

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

Public Types

typedef ROOT::Math::Transform3D::Point Point
 
- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 

Public Member Functions

void beginRun (edm::Run const &iEvent, edm::EventSetup const &) override
 
void endRun (edm::Run const &iEvent, edm::EventSetup const &) override
 
 PFAnalysis ()
 
 PFAnalysis (const edm::ParameterSet &)
 
 ~PFAnalysis () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, 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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > 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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices 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 (const edm::Event &, const edm::EventSetup &) override
 
void associateClusterToSimCluster (const vector< ElementWithIndex > &all_elements)
 
void beginJob () override
 
void clearVariables ()
 
void endJob () override
 
GlobalPoint getHitPosition (const DetId &id)
 
pair< vector< ElementWithIndex >, vector< tuple< int, int, float > > > processBlocks (const std::vector< reco::PFBlock > &pfBlocks)
 
void processTrackingParticles (const edm::View< TrackingParticle > &trackingParticles, edm::Handle< edm::View< TrackingParticle >> &trackingParticlesHandle)
 

Private Attributes

MagneticField const * aField_
 
edm::EDGetTokenT< edm::View< CaloParticle > > caloParticles_
 
vector< int > element_charge_
 
vector< float > element_deltap_
 
vector< float > element_depth_
 
vector< float > element_distance_d_
 
vector< int > element_distance_i_
 
vector< int > element_distance_j_
 
vector< float > element_energy_
 
vector< float > element_eta_
 
vector< float > element_eta_ecal_
 
vector< float > element_eta_hcal_
 
vector< int > element_layer_
 
vector< float > element_muon_csc_hits_
 
vector< float > element_muon_dt_hits_
 
vector< float > element_phi_
 
vector< float > element_phi_ecal_
 
vector< float > element_phi_hcal_
 
vector< float > element_pt_
 
vector< float > element_px_
 
vector< float > element_py_
 
vector< float > element_pz_
 
vector< float > element_sigmadeltap_
 
vector< pair< int, int > > element_to_candidate
 
vector< float > element_trajpoint_
 
vector< int > element_type_
 
edm::EventNumber_t ev_event_
 
edm::LuminosityBlockNumber_t ev_lumi_
 
edm::RunNumber_t ev_run_
 
vector< int > gen_charge_
 
vector< vector< int > > gen_daughters_
 
vector< float > gen_energy_
 
vector< float > gen_eta_
 
vector< int > gen_pdgid_
 
vector< float > gen_phi_
 
vector< float > gen_pt_
 
vector< float > gen_px_
 
vector< float > gen_py_
 
vector< float > gen_pz_
 
vector< int > gen_status_
 
edm::EDGetTokenT< std::vector< reco::GenParticle > > genParticles_
 
CaloGeometrygeom
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeometryToken_
 
HcalTopologyhcal_topo
 
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecordhcalDDDrecToken_
 
const HcalDDDRecConstantshcons
 
edm::ESGetToken< MagneticField, IdealMagneticFieldRecordmagFieldToken_
 
edm::EDGetTokenT< std::vector< reco::PFBlock > > pfBlocks_
 
vector< float > pfcandidate_energy_
 
vector< float > pfcandidate_eta_
 
vector< int > pfcandidate_pdgid_
 
vector< float > pfcandidate_phi_
 
vector< float > pfcandidate_pt_
 
vector< float > pfcandidate_px_
 
vector< float > pfcandidate_py_
 
vector< float > pfcandidate_pz_
 
edm::EDGetTokenT< std::vector< reco::PFCandidate > > pfCandidates_
 
vector< float > rechit_det_
 
vector< uint64_t > rechit_detid_
 
vector< float > rechit_e_
 
vector< float > rechit_eta_
 
vector< int > rechit_idx_element_
 
vector< float > rechit_phi_
 
vector< float > rechit_subdet_
 
vector< float > rechit_x_
 
vector< float > rechit_y_
 
vector< float > rechit_z_
 
bool saveHits
 
vector< int > simcluster_bx_
 
vector< std::map< uint64_t, double > > simcluster_detids_
 
vector< float > simcluster_energy_
 
vector< float > simcluster_eta_
 
vector< int > simcluster_ev_
 
vector< int > simcluster_idx_trackingparticle_
 
vector< int > simcluster_nhits_
 
vector< float > simcluster_phi_
 
vector< int > simcluster_pid_
 
vector< float > simcluster_pt_
 
vector< float > simcluster_px_
 
vector< float > simcluster_py_
 
vector< float > simcluster_pz_
 
vector< pair< int, int > > simcluster_to_element
 
vector< float > simcluster_to_element_cmp
 
vector< int > simhit_det_
 
vector< uint64_t > simhit_detid_
 
vector< float > simhit_eta_
 
vector< float > simhit_frac_
 
vector< int > simhit_idx_simcluster_
 
vector< float > simhit_phi_
 
vector< int > simhit_subdet_
 
vector< float > simhit_x_
 
vector< float > simhit_y_
 
vector< float > simhit_z_
 
vector< int > simtrack_idx_simcluster_
 
vector< int > simtrack_pid_
 
vector< float > simtrack_x_
 
vector< float > simtrack_y_
 
vector< float > simtrack_z_
 
TTree * t_
 
edm::ESGetToken< HcalTopology, HcalRecNumberingRecordtopologyToken_
 
vector< int > trackingparticle_bx_
 
vector< float > trackingparticle_dvx_
 
vector< float > trackingparticle_dvy_
 
vector< float > trackingparticle_dvz_
 
vector< float > trackingparticle_energy_
 
vector< float > trackingparticle_eta_
 
vector< int > trackingparticle_ev_
 
vector< float > trackingparticle_exx_
 
vector< float > trackingparticle_exy_
 
vector< int > trackingparticle_mother_
 
vector< float > trackingparticle_ovx_
 
vector< float > trackingparticle_ovy_
 
vector< float > trackingparticle_ovz_
 
vector< float > trackingparticle_phi_
 
vector< int > trackingparticle_pid_
 
vector< float > trackingparticle_pt_
 
vector< float > trackingparticle_px_
 
vector< float > trackingparticle_py_
 
vector< float > trackingparticle_pz_
 
vector< pair< int, int > > trackingparticle_to_element
 
edm::EDGetTokenT< edm::View< TrackingParticle > > trackingParticles_
 
edm::EDGetTokenT< edm::View< reco::Track > > tracks_
 
edm::EDGetTokenT< reco::RecoToSimCollectiontracks_recotosim_
 

Additional Inherited Members

- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Definition at line 108 of file PFAnalysisNtuplizer.cc.

Member Typedef Documentation

◆ Point

typedef ROOT::Math::Transform3D::Point PFAnalysis::Point

Definition at line 110 of file PFAnalysisNtuplizer.cc.

Constructor & Destructor Documentation

◆ PFAnalysis() [1/2]

PFAnalysis::PFAnalysis ( )

Definition at line 280 of file PFAnalysisNtuplizer.cc.

280 { ; }

◆ PFAnalysis() [2/2]

PFAnalysis::PFAnalysis ( const edm::ParameterSet iConfig)
explicit

Definition at line 282 of file PFAnalysisNtuplizer.cc.

282  {
283  tracks_recotosim_ = consumes<reco::RecoToSimCollection>(edm::InputTag("trackingParticleRecoTrackAsssociation"));
284  trackingParticles_ = consumes<edm::View<TrackingParticle>>(edm::InputTag("mix", "MergedTrackTruth"));
285  caloParticles_ = consumes<edm::View<CaloParticle>>(edm::InputTag("mix", "MergedCaloTruth"));
286  genParticles_ = consumes<std::vector<reco::GenParticle>>(edm::InputTag("genParticles"));
287  pfBlocks_ = consumes<std::vector<reco::PFBlock>>(edm::InputTag("particleFlowBlock"));
288  pfCandidates_ = consumes<std::vector<reco::PFCandidate>>(edm::InputTag("particleFlow"));
289  tracks_ = consumes<edm::View<reco::Track>>(edm::InputTag("generalTracks"));
290  saveHits = iConfig.getUntrackedParameter<bool>("saveHits", false);
291 
292  geometryToken_ = esConsumes<CaloGeometry, CaloGeometryRecord>(edm::ESInputTag{});
293  topologyToken_ = esConsumes<HcalTopology, HcalRecNumberingRecord>(edm::ESInputTag{});
294  magFieldToken_ = esConsumes<edm::Transition::BeginRun>();
295  hcalDDDrecToken_ = esConsumes<edm::Transition::BeginRun>();
296 
297  usesResource(TFileService::kSharedResource);
299  fs->make<TH1F>("total", "total", 100, 0, 5.);
300 
301  t_ = fs->make<TTree>("pftree", "pftree");
302 
303  // event info
304  t_->Branch("event", &ev_event_);
305  t_->Branch("lumi", &ev_lumi_);
306  t_->Branch("run", &ev_run_);
307 
308  t_->Branch("trackingparticle_eta", &trackingparticle_eta_);
309  t_->Branch("trackingparticle_phi", &trackingparticle_phi_);
310  t_->Branch("trackingparticle_pt", &trackingparticle_pt_);
311  t_->Branch("trackingparticle_px", &trackingparticle_px_);
312  t_->Branch("trackingparticle_py", &trackingparticle_py_);
313  t_->Branch("trackingparticle_pz", &trackingparticle_pz_);
314  t_->Branch("trackingparticle_energy", &trackingparticle_energy_);
315  t_->Branch("trackingparticle_dvx", &trackingparticle_dvx_);
316  t_->Branch("trackingparticle_dvy", &trackingparticle_dvy_);
317  t_->Branch("trackingparticle_dvz", &trackingparticle_dvz_);
318  t_->Branch("trackingparticle_bx", &trackingparticle_bx_);
319  t_->Branch("trackingparticle_ev", &trackingparticle_ev_);
320  t_->Branch("trackingparticle_pid", &trackingparticle_pid_);
321 
322  t_->Branch("simcluster_eta", &simcluster_eta_);
323  t_->Branch("simcluster_phi", &simcluster_phi_);
324  t_->Branch("simcluster_pt", &simcluster_pt_);
325  t_->Branch("simcluster_px", &simcluster_px_);
326  t_->Branch("simcluster_py", &simcluster_py_);
327  t_->Branch("simcluster_pz", &simcluster_pz_);
328  t_->Branch("simcluster_energy", &simcluster_energy_);
329  t_->Branch("simcluster_bx", &simcluster_bx_);
330  t_->Branch("simcluster_ev", &simcluster_ev_);
331  t_->Branch("simcluster_pid", &simcluster_pid_);
332  t_->Branch("simcluster_idx_trackingparticle", &simcluster_idx_trackingparticle_);
333  t_->Branch("simcluster_nhits", &simcluster_nhits_);
334 
335  if (saveHits) {
336  t_->Branch("simhit_frac", &simhit_frac_);
337  t_->Branch("simhit_x", &simhit_x_);
338  t_->Branch("simhit_y", &simhit_y_);
339  t_->Branch("simhit_z", &simhit_z_);
340  t_->Branch("simhit_det", &simhit_det_);
341  t_->Branch("simhit_subdet", &simhit_subdet_);
342  t_->Branch("simhit_eta", &simhit_eta_);
343  t_->Branch("simhit_phi", &simhit_phi_);
344  t_->Branch("simhit_idx_simcluster", &simhit_idx_simcluster_);
345  t_->Branch("simhit_detid", &simhit_detid_);
346 
347  t_->Branch("rechit_e", &rechit_e_);
348  t_->Branch("rechit_x", &rechit_x_);
349  t_->Branch("rechit_y", &rechit_y_);
350  t_->Branch("rechit_z", &rechit_z_);
351  t_->Branch("rechit_det", &rechit_det_);
352  t_->Branch("rechit_subdet", &rechit_subdet_);
353  t_->Branch("rechit_eta", &rechit_eta_);
354  t_->Branch("rechit_phi", &rechit_phi_);
355  t_->Branch("rechit_idx_element", &rechit_idx_element_);
356  t_->Branch("rechit_detid", &rechit_detid_);
357  }
358 
359  t_->Branch("simtrack_x", &simtrack_x_);
360  t_->Branch("simtrack_y", &simtrack_y_);
361  t_->Branch("simtrack_z", &simtrack_z_);
362  t_->Branch("simtrack_idx_simcluster_", &simtrack_idx_simcluster_);
363  t_->Branch("simtrack_pid", &simtrack_pid_);
364 
365  t_->Branch("gen_eta", &gen_eta_);
366  t_->Branch("gen_phi", &gen_phi_);
367  t_->Branch("gen_pt", &gen_pt_);
368  t_->Branch("gen_px", &gen_px_);
369  t_->Branch("gen_py", &gen_py_);
370  t_->Branch("gen_pz", &gen_pz_);
371  t_->Branch("gen_energy", &gen_energy_);
372  t_->Branch("gen_charge", &gen_charge_);
373  t_->Branch("gen_pdgid", &gen_pdgid_);
374  t_->Branch("gen_status", &gen_status_);
375  t_->Branch("gen_daughters", &gen_daughters_);
376 
377  //PF Elements
378  t_->Branch("element_pt", &element_pt_);
379  t_->Branch("element_px", &element_px_);
380  t_->Branch("element_py", &element_py_);
381  t_->Branch("element_pz", &element_pz_);
382  t_->Branch("element_deltap", &element_deltap_);
383  t_->Branch("element_sigmadeltap", &element_sigmadeltap_);
384  t_->Branch("element_eta", &element_eta_);
385  t_->Branch("element_phi", &element_phi_);
386  t_->Branch("element_energy", &element_energy_);
387  t_->Branch("element_eta_ecal", &element_eta_ecal_);
388  t_->Branch("element_phi_ecal", &element_phi_ecal_);
389  t_->Branch("element_eta_hcal", &element_eta_hcal_);
390  t_->Branch("element_phi_hcal", &element_phi_hcal_);
391  t_->Branch("element_charge", &element_charge_);
392  t_->Branch("element_type", &element_type_);
393  t_->Branch("element_layer", &element_layer_);
394  t_->Branch("element_depth", &element_depth_);
395  t_->Branch("element_trajpoint", &element_trajpoint_);
396  t_->Branch("element_muon_dt_hits", &element_muon_dt_hits_);
397  t_->Branch("element_muon_csc_hits", &element_muon_csc_hits_);
398 
399  //Distance matrix between PF elements
400  t_->Branch("element_distance_i", &element_distance_i_);
401  t_->Branch("element_distance_j", &element_distance_j_);
402  t_->Branch("element_distance_d", &element_distance_d_);
403 
404  t_->Branch("pfcandidate_eta", &pfcandidate_eta_);
405  t_->Branch("pfcandidate_phi", &pfcandidate_phi_);
406  t_->Branch("pfcandidate_pt", &pfcandidate_pt_);
407  t_->Branch("pfcandidate_px", &pfcandidate_px_);
408  t_->Branch("pfcandidate_py", &pfcandidate_py_);
409  t_->Branch("pfcandidate_pz", &pfcandidate_pz_);
410  t_->Branch("pfcandidate_energy", &pfcandidate_energy_);
411  t_->Branch("pfcandidate_pdgid", &pfcandidate_pdgid_);
412 
413  //Links between reco, gen and PFCandidate objects
414  t_->Branch("trackingparticle_to_element", &trackingparticle_to_element);
415  t_->Branch("simcluster_to_element", &simcluster_to_element);
416  t_->Branch("simcluster_to_element_cmp", &simcluster_to_element_cmp);
417  t_->Branch("element_to_candidate", &element_to_candidate);
418 } // constructor

References edm::ParameterSet::getUntrackedParameter(), HLT_FULL_cff::InputTag, TFileService::kSharedResource, and TFileService::make().

◆ ~PFAnalysis()

PFAnalysis::~PFAnalysis ( )
override

Definition at line 420 of file PFAnalysisNtuplizer.cc.

420 {}

Member Function Documentation

◆ analyze()

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

Implements edm::one::EDAnalyzerBase.

Definition at line 562 of file PFAnalysisNtuplizer.cc.

562  {
563  clearVariables();
564 
565  auto& pG = iSetup.getData(geometryToken_);
566  geom = (CaloGeometry*)&pG;
567  auto& pT = iSetup.getData(topologyToken_);
569 
570  //Simulated tracks, cleaned up by TrackingTruthAccumulator
571  edm::Handle<edm::View<TrackingParticle>> trackingParticlesHandle;
572  iEvent.getByToken(trackingParticles_, trackingParticlesHandle);
573  const edm::View<TrackingParticle>& trackingParticles = *trackingParticlesHandle;
574 
575  edm::Handle<edm::View<CaloParticle>> caloParticlesHandle;
576  iEvent.getByToken(caloParticles_, caloParticlesHandle);
577  const edm::View<CaloParticle>& caloParticles = *caloParticlesHandle;
578 
579  //Matches reco tracks to sim tracks (TrackingParticle)
580  edm::Handle<reco::RecoToSimCollection> recotosimCollection;
581  iEvent.getByToken(tracks_recotosim_, recotosimCollection);
582  const auto recotosim = *recotosimCollection;
583 
585  iEvent.getByToken(tracks_, trackHandle);
586  const edm::View<reco::Track>& tracks = *trackHandle;
587 
588  edm::Handle<std::vector<reco::GenParticle>> genParticlesHandle;
589  iEvent.getByToken(genParticles_, genParticlesHandle);
590  for (std::vector<reco::GenParticle>::const_iterator it_p = genParticlesHandle->begin();
591  it_p != genParticlesHandle->end();
592  ++it_p) {
593  gen_eta_.push_back(it_p->eta());
594  gen_phi_.push_back(it_p->phi());
595  gen_pt_.push_back(it_p->pt());
596  gen_px_.push_back(it_p->px());
597  gen_py_.push_back(it_p->py());
598  gen_pz_.push_back(it_p->pz());
599  gen_energy_.push_back(it_p->energy());
600  gen_charge_.push_back(it_p->charge());
601  gen_pdgid_.push_back(it_p->pdgId());
602  gen_status_.push_back(it_p->status());
603  std::vector<int> daughters(it_p->daughterRefVector().size(), 0);
604  for (unsigned j = 0; j < it_p->daughterRefVector().size(); ++j) {
605  daughters[j] = static_cast<int>(it_p->daughterRefVector().at(j).key());
606  }
607  gen_daughters_.push_back(daughters);
608  }
609 
610  edm::Handle<std::vector<reco::PFCandidate>> pfCandidatesHandle;
611  iEvent.getByToken(pfCandidates_, pfCandidatesHandle);
612  std::vector<reco::PFCandidate> pfCandidates = *pfCandidatesHandle;
613 
615  iEvent.getByToken(pfBlocks_, pfBlocksHandle);
616  std::vector<reco::PFBlock> pfBlocks = *pfBlocksHandle;
617 
618  //Collect all clusters, tracks and superclusters
619  const auto& all_elements_distances = processBlocks(pfBlocks);
620  const auto& all_elements = all_elements_distances.first;
621  const auto& all_distances = all_elements_distances.second;
622  assert(!all_elements.empty());
623  //assert(all_distances.size() > 0);
624  for (const auto& d : all_distances) {
625  element_distance_i_.push_back(get<0>(d));
626  element_distance_j_.push_back(get<1>(d));
627  element_distance_d_.push_back(get<2>(d));
628  }
629 
630  //We need to use the original reco::Track collection for track association
631  for (unsigned long ntrack = 0; ntrack < tracks.size(); ntrack++) {
632  edm::RefToBase<reco::Track> trackref(trackHandle, ntrack);
633  const auto vec_idx_in_all_elements = find_element_ref(all_elements, trackref);
634 
635  //track was not used by PF, we skip as well
636  if (vec_idx_in_all_elements.empty()) {
637  continue;
638  }
639 
640  if (recotosim.find(trackref) != recotosim.end()) {
641  const auto& tps = recotosim[trackref];
642  for (const auto& tp : tps) {
644  for (auto idx_in_all_elements : vec_idx_in_all_elements) {
645  trackingparticle_to_element.emplace_back(tpr.key(), idx_in_all_elements);
646  }
647  }
648  }
649  }
650 
651  processTrackingParticles(trackingParticles, trackingParticlesHandle);
652 
653  int idx_simcluster = 0;
654  //Fill genparticles from calorimeter hits
655  for (unsigned long ncaloparticle = 0; ncaloparticle < caloParticles.size(); ncaloparticle++) {
656  const auto& cp = caloParticles.at(ncaloparticle);
657  edm::RefToBase<CaloParticle> cpref(caloParticlesHandle, ncaloparticle);
658 
659  int nhits = 0;
660  for (const auto& simcluster : cp.simClusters()) {
661  //create a map of detId->energy of all the rechits in all the clusters of this SimCluster
662  map<uint64_t, double> detid_energy;
663 
664  simcluster_nhits_.push_back(nhits);
665  simcluster_eta_.push_back(simcluster->p4().eta());
666  simcluster_phi_.push_back(simcluster->p4().phi());
667  simcluster_pt_.push_back(simcluster->p4().pt());
668  simcluster_energy_.push_back(simcluster->energy());
669  simcluster_pid_.push_back(simcluster->pdgId());
670  simcluster_bx_.push_back(simcluster->eventId().bunchCrossing());
671  simcluster_ev_.push_back(simcluster->eventId().event());
672 
673  simcluster_px_.push_back(simcluster->p4().x());
674  simcluster_py_.push_back(simcluster->p4().y());
675  simcluster_pz_.push_back(simcluster->p4().z());
676 
677  for (const auto& hf : simcluster->hits_and_fractions()) {
678  DetId id(hf.first);
679 
680  if (id.det() == DetId::Hcal || id.det() == DetId::Ecal) {
681  const auto& pos = getHitPosition(id);
682  nhits += 1;
683 
684  const float x = pos.x();
685  const float y = pos.y();
686  const float z = pos.z();
687  const float eta = pos.eta();
688  const float phi = pos.phi();
689 
690  simhit_frac_.push_back(hf.second);
691  simhit_x_.push_back(x);
692  simhit_y_.push_back(y);
693  simhit_z_.push_back(z);
694  simhit_det_.push_back(id.det());
695  simhit_subdet_.push_back(id.subdetId());
696  simhit_eta_.push_back(eta);
697  simhit_phi_.push_back(phi);
698  simhit_idx_simcluster_.push_back(idx_simcluster);
699  simhit_detid_.push_back(id.rawId());
700  detid_energy[id.rawId()] += hf.second;
701  }
702  }
703 
704  int simcluster_to_trackingparticle = -1;
705  for (const auto& simtrack : simcluster->g4Tracks()) {
706  simtrack_x_.push_back(simtrack.trackerSurfacePosition().x());
707  simtrack_y_.push_back(simtrack.trackerSurfacePosition().y());
708  simtrack_z_.push_back(simtrack.trackerSurfacePosition().z());
709  simtrack_idx_simcluster_.push_back(idx_simcluster);
710  simtrack_pid_.push_back(simtrack.type());
711 
712  for (unsigned int itp = 0; itp < trackingParticles.size(); itp++) {
713  const auto& simtrack2 = trackingParticles.at(itp).g4Tracks().at(0);
714  //compare the two tracks, taking into account that both eventId and trackId need to be compared due to pileup
715  if (simtrack.eventId() == simtrack2.eventId() && simtrack.trackId() == simtrack2.trackId()) {
716  simcluster_to_trackingparticle = itp;
717  //we are satisfied with the first match, in practice there should not be more
718  break;
719  }
720  } //trackingParticles
721  } //simcluster tracks
722 
723  simcluster_detids_.push_back(detid_energy);
724  simcluster_idx_trackingparticle_.push_back(simcluster_to_trackingparticle);
725 
726  idx_simcluster += 1;
727  } //simclusters
728  } //caloParticles
729 
730  associateClusterToSimCluster(all_elements);
731 
732  //fill elements
733  for (unsigned int ielem = 0; ielem < all_elements.size(); ielem++) {
734  const auto& elem = all_elements.at(ielem);
735  const auto& orig = elem.orig;
736  reco::PFBlockElement::Type type = orig.type();
737 
738  float pt = 0.0;
739  float deltap = 0.0;
740  float sigmadeltap = 0.0;
741  float px = 0.0;
742  float py = 0.0;
743  float pz = 0.0;
744  float eta = 0.0;
745  float phi = 0.0;
746  float energy = 0.0;
747  float trajpoint = 0.0;
748  float eta_ecal = 0.0;
749  float phi_ecal = 0.0;
750  float eta_hcal = 0.0;
751  float phi_hcal = 0.0;
752  int charge = 0;
753  int layer = 0;
754  float depth = 0;
755  float muon_dt_hits = 0.0;
756  float muon_csc_hits = 0.0;
757 
759  const auto& matched_pftrack = orig.trackRefPF();
760  if (matched_pftrack.isNonnull()) {
761  const auto& atECAL = matched_pftrack->extrapolatedPoint(reco::PFTrajectoryPoint::ECALShowerMax);
762  const auto& atHCAL = matched_pftrack->extrapolatedPoint(reco::PFTrajectoryPoint::HCALEntrance);
763  if (atHCAL.isValid()) {
764  eta_hcal = atHCAL.positionREP().eta();
765  phi_hcal = atHCAL.positionREP().phi();
766  }
767  if (atECAL.isValid()) {
768  eta_ecal = atECAL.positionREP().eta();
769  phi_ecal = atECAL.positionREP().phi();
770  }
771  }
772  const auto& ref = ((const reco::PFBlockElementTrack*)&orig)->trackRef();
773  pt = ref->pt();
774  px = ref->px();
775  py = ref->py();
776  pz = ref->pz();
777  eta = ref->eta();
778  phi = ref->phi();
779  energy = ref->p();
780  charge = ref->charge();
781 
782  reco::MuonRef muonRef = orig.muonRef();
783  if (muonRef.isNonnull()) {
784  reco::TrackRef standAloneMu = muonRef->standAloneMuon();
785  if (standAloneMu.isNonnull()) {
786  muon_dt_hits = standAloneMu->hitPattern().numberOfValidMuonDTHits();
787  muon_csc_hits = standAloneMu->hitPattern().numberOfValidMuonCSCHits();
788  }
789  }
790 
791  } else if (type == reco::PFBlockElement::BREM) {
792  const auto* orig2 = (const reco::PFBlockElementBrem*)&orig;
793  const auto& ref = orig2->GsftrackRef();
794  if (ref.isNonnull()) {
795  deltap = orig2->DeltaP();
796  sigmadeltap = orig2->SigmaDeltaP();
797  pt = ref->pt();
798  px = ref->px();
799  py = ref->py();
800  pz = ref->pz();
801  eta = ref->eta();
802  phi = ref->phi();
803  energy = ref->p();
804  trajpoint = orig2->indTrajPoint();
805  charge = ref->charge();
806  }
807  } else if (type == reco::PFBlockElement::GSF) {
808  //requires to keep GsfPFRecTracks
809  const auto* orig2 = (const reco::PFBlockElementGsfTrack*)&orig;
810  const auto& vec = orig2->Pin();
811  pt = vec.pt();
812  px = vec.px();
813  py = vec.py();
814  pz = vec.pz();
815  eta = vec.eta();
816  phi = vec.phi();
817  energy = vec.energy();
818  if (!orig2->GsftrackRefPF().isNull()) {
819  charge = orig2->GsftrackRefPF()->charge();
820  }
825  const auto& ref = ((const reco::PFBlockElementCluster*)&orig)->clusterRef();
826  if (ref.isNonnull()) {
827  eta = ref->eta();
828  phi = ref->phi();
829  px = ref->position().x();
830  py = ref->position().y();
831  pz = ref->position().z();
832  energy = ref->energy();
833  layer = ref->layer();
834  depth = ref->depth();
835  }
836  } else if (type == reco::PFBlockElement::SC) {
837  const auto& clref = ((const reco::PFBlockElementSuperCluster*)&orig)->superClusterRef();
838  if (clref.isNonnull()) {
839  eta = clref->eta();
840  phi = clref->phi();
841  px = clref->position().x();
842  py = clref->position().y();
843  pz = clref->position().z();
844  energy = clref->energy();
845  }
846  }
847  vector<int> tps;
848  for (const auto& t : trackingparticle_to_element) {
849  if (t.second == (int)ielem) {
850  tps.push_back(t.first);
851  }
852  }
853  vector<int> scs;
854  for (const auto& t : simcluster_to_element) {
855  if (t.second == (int)ielem) {
856  scs.push_back(t.first);
857  }
858  }
859 
860  element_pt_.push_back(pt);
861  element_px_.push_back(px);
862  element_py_.push_back(py);
863  element_pz_.push_back(pz);
864  element_deltap_.push_back(deltap);
865  element_sigmadeltap_.push_back(sigmadeltap);
866  element_eta_.push_back(eta);
867  element_phi_.push_back(phi);
868  element_energy_.push_back(energy);
869  element_eta_ecal_.push_back(eta_ecal);
870  element_phi_ecal_.push_back(phi_ecal);
871  element_eta_hcal_.push_back(eta_hcal);
872  element_phi_hcal_.push_back(phi_hcal);
873  element_charge_.push_back(charge);
874  element_type_.push_back(type);
875  element_layer_.push_back(layer);
876  element_depth_.push_back(depth);
877  element_trajpoint_.push_back(trajpoint);
878  element_muon_dt_hits_.push_back(muon_dt_hits);
879  element_muon_csc_hits_.push_back(muon_csc_hits);
880  }
881 
882  //associate candidates to elements
883  int icandidate = 0;
884  for (const auto& cand : pfCandidates) {
885  pfcandidate_eta_.push_back(cand.eta());
886  pfcandidate_phi_.push_back(cand.phi());
887  pfcandidate_pt_.push_back(cand.pt());
888  pfcandidate_px_.push_back(cand.px());
889  pfcandidate_py_.push_back(cand.py());
890  pfcandidate_pz_.push_back(cand.pz());
891  pfcandidate_energy_.push_back(cand.energy());
892  pfcandidate_pdgid_.push_back(cand.pdgId());
893 
894  for (const auto& el : cand.elementsInBlocks()) {
895  const auto idx_block = el.first.index();
896  unsigned idx_element_in_block = el.second;
897 
898  int ielem = -1;
899  for (const auto& elem_with_index : all_elements) {
900  ielem += 1;
901  if (elem_with_index.idx_block == idx_block && elem_with_index.idx_elem == idx_element_in_block) {
902  break;
903  }
904  }
905  assert(ielem != -1);
906  element_to_candidate.push_back(make_pair(ielem, icandidate));
907  } //elements
908 
909  icandidate += 1;
910  } //pfCandidates
911 
912  ev_event_ = iEvent.id().event();
913  ev_lumi_ = iEvent.id().luminosityBlock();
914  ev_run_ = iEvent.id().run();
915 
916  t_->Fill();
917 } //analyze

References cms::cuda::assert(), reco::PFBlockElement::BREM, caloTruthCellsProducer_cfi::caloParticles, ALCARECOTkAlJpsiMuMu_cff::charge, ztail::d, BPhysicsValidation_cfi::daughters, LEDCalibrationChannels::depth, DetId::Ecal, reco::PFBlockElement::ECAL, reco::PFTrajectoryPoint::ECALShowerMax, HCALHighEnergyHPDFilter_cfi::energy, PVValHelper::eta, find_element_ref(), relativeConstraints::geom, edm::EventSetup::getData(), reco::PFBlockElement::GSF, DetId::Hcal, reco::PFBlockElement::HCAL, reco::PFTrajectoryPoint::HCALEntrance, photonIsolationHIProducer_cfi::hf, reco::PFBlockElement::HFEM, reco::PFBlockElement::HFHAD, reco::PFBlockElement::HO, triggerObjects_cff::id, iEvent, edm::Ref< C, T, F >::isNonnull(), dqmiolumiharvest::j, edm::Ref< C, T, F >::key(), phase1PixelTopology::layer, nhits, ntrack, zmumugammaAnalyzer_cfi::pfCandidates, reco::PFBlockElement::PS1, reco::PFBlockElement::PS2, DiDispStaMuonMonitor_cfi::pt, PVValHelper::pT, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, reco::PFBlockElement::SC, submitPVValidationJobs::t, cmsswSequenceInfo::tp, reco::PFBlockElement::TRACK, muonClassificationByHits_cfi::trackingParticles, and tracks.

◆ associateClusterToSimCluster()

void PFAnalysis::associateClusterToSimCluster ( const vector< ElementWithIndex > &  all_elements)
private

Definition at line 998 of file PFAnalysisNtuplizer.cc.

998  {
999  vector<map<uint64_t, double>> detids_elements;
1000  map<uint64_t, double> rechits_energy_all;
1001 
1002  int idx_element = 0;
1003  for (const auto& elem : all_elements) {
1004  map<uint64_t, double> detids;
1005  const auto& type = elem.orig.type();
1006 
1010  const auto& clref = elem.orig.clusterRef();
1011  assert(clref.isNonnull());
1012  const auto& cluster = *clref;
1013 
1014  //all rechits and the energy fractions in this cluster
1015  const vector<reco::PFRecHitFraction>& rechit_fracs = cluster.recHitFractions();
1016  for (const auto& rh : rechit_fracs) {
1017  const reco::PFRecHit pfrh = *rh.recHitRef();
1018  if (detids.find(pfrh.detId()) != detids.end()) {
1019  continue;
1020  }
1021  detids[pfrh.detId()] += pfrh.energy() * rh.fraction();
1022  const auto id = DetId(pfrh.detId());
1023  float x = 0;
1024  float y = 0;
1025  float z = 0;
1026  float eta = 0;
1027  float phi = 0;
1028 
1029  const auto& pos = getHitPosition(id);
1030  x = pos.x();
1031  y = pos.y();
1032  z = pos.z();
1033  eta = pos.eta();
1034  phi = pos.phi();
1035 
1036  rechit_x_.push_back(x);
1037  rechit_y_.push_back(y);
1038  rechit_z_.push_back(z);
1039  rechit_det_.push_back(id.det());
1040  rechit_subdet_.push_back(id.subdetId());
1041  rechit_eta_.push_back(eta);
1042  rechit_phi_.push_back(phi);
1043  rechit_e_.push_back(pfrh.energy() * rh.fraction());
1044  rechit_idx_element_.push_back(idx_element);
1045  rechit_detid_.push_back(id.rawId());
1046  rechits_energy_all[id.rawId()] += pfrh.energy() * rh.fraction();
1047  } //rechit_fracs
1048  } else if (type == reco::PFBlockElement::SC) {
1049  const auto& clref = ((const reco::PFBlockElementSuperCluster*)&(elem.orig))->superClusterRef();
1050  assert(clref.isNonnull());
1051  const auto& cluster = *clref;
1052 
1053  //all rechits and the energy fractions in this cluster
1054  const auto& rechit_fracs = cluster.hitsAndFractions();
1055  for (const auto& rh : rechit_fracs) {
1056  if (detids.find(rh.first.rawId()) != detids.end()) {
1057  continue;
1058  }
1059  detids[rh.first.rawId()] += cluster.energy() * rh.second;
1060  const auto id = rh.first;
1061  float x = 0;
1062  float y = 0;
1063  float z = 0;
1064  float eta = 0;
1065  float phi = 0;
1066 
1067  const auto& pos = getHitPosition(id);
1068  x = pos.x();
1069  y = pos.y();
1070  z = pos.z();
1071  eta = pos.eta();
1072  phi = pos.phi();
1073 
1074  rechit_x_.push_back(x);
1075  rechit_y_.push_back(y);
1076  rechit_z_.push_back(z);
1077  rechit_det_.push_back(id.det());
1078  rechit_subdet_.push_back(id.subdetId());
1079  rechit_eta_.push_back(eta);
1080  rechit_phi_.push_back(phi);
1081  rechit_e_.push_back(rh.second);
1082  rechit_idx_element_.push_back(idx_element);
1083  rechit_detid_.push_back(id.rawId());
1084  rechits_energy_all[id.rawId()] += cluster.energy() * rh.second;
1085  } //rechit_fracs
1086  }
1087  detids_elements.push_back(detids);
1088  idx_element += 1;
1089  } //all_elements
1090 
1091  //associate elements (reco clusters) to simclusters
1092  int ielement = 0;
1093  for (const auto& detids : detids_elements) {
1094  int isimcluster = 0;
1095  if (!detids.empty()) {
1096  double sum_e_tot = 0.0;
1097  for (const auto& c : detids) {
1098  sum_e_tot += c.second;
1099  }
1100 
1101  for (const auto& simcluster_detids : simcluster_detids_) {
1102  double sum_e_tot_sc = 0.0;
1103  for (const auto& c : simcluster_detids) {
1104  sum_e_tot_sc += c.second;
1105  }
1106 
1107  //get the energy of the simcluster hits that matches detids of the rechits
1108  double cmp = detid_compare(detids, simcluster_detids);
1109  if (cmp > 0) {
1110  simcluster_to_element.push_back(make_pair(isimcluster, ielement));
1111  simcluster_to_element_cmp.push_back((float)cmp);
1112  }
1113  isimcluster += 1;
1114  }
1115  } //element had rechits
1116  ielement += 1;
1117  } //rechit clusters
1118 }

References cms::cuda::assert(), c, fileCollector::cmp, reco::PFRecHit::detId(), detid_compare(), reco::PFBlockElement::ECAL, reco::PFRecHit::energy(), PVValHelper::eta, reco::PFBlockElement::HCAL, reco::PFBlockElement::HFEM, reco::PFBlockElement::HFHAD, reco::PFBlockElement::HO, reco::PFBlockElement::PS1, reco::PFBlockElement::PS2, and reco::PFBlockElement::SC.

◆ beginJob()

void PFAnalysis::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 1127 of file PFAnalysisNtuplizer.cc.

1127 { ; }

◆ beginRun()

void PFAnalysis::beginRun ( edm::Run const &  iEvent,
edm::EventSetup const &  es 
)
override

Definition at line 1120 of file PFAnalysisNtuplizer.cc.

1120  {
1121  hcons = &es.getData(hcalDDDrecToken_);
1122  aField_ = &es.getData(magFieldToken_);
1123 }

References edm::EventSetup::getData().

◆ clearVariables()

void PFAnalysis::clearVariables ( )
private

Definition at line 422 of file PFAnalysisNtuplizer.cc.

422  {
423  ev_run_ = 0;
424  ev_lumi_ = 0;
425  ev_event_ = 0;
426 
428  simcluster_to_element.clear();
430  element_to_candidate.clear();
431 
432  trackingparticle_eta_.clear();
433  trackingparticle_phi_.clear();
434  trackingparticle_pt_.clear();
435  trackingparticle_px_.clear();
436  trackingparticle_py_.clear();
437  trackingparticle_pz_.clear();
438  trackingparticle_energy_.clear();
439  trackingparticle_dvx_.clear();
440  trackingparticle_dvy_.clear();
441  trackingparticle_dvz_.clear();
442  trackingparticle_bx_.clear();
443  trackingparticle_ev_.clear();
444  trackingparticle_ovx_.clear();
445  trackingparticle_ovy_.clear();
446  trackingparticle_ovz_.clear();
447  trackingparticle_exx_.clear();
448  trackingparticle_exy_.clear();
449  trackingparticle_mother_.clear();
450  trackingparticle_pid_.clear();
451 
452  simcluster_eta_.clear();
453  simcluster_phi_.clear();
454  simcluster_pt_.clear();
455  simcluster_energy_.clear();
456  simcluster_pid_.clear();
457  simcluster_detids_.clear();
458  simcluster_bx_.clear();
459  simcluster_ev_.clear();
460  simcluster_px_.clear();
461  simcluster_py_.clear();
462  simcluster_pz_.clear();
464  simcluster_nhits_.clear();
465 
466  if (saveHits) {
467  simhit_frac_.clear();
468  simhit_x_.clear();
469  simhit_y_.clear();
470  simhit_z_.clear();
471  simhit_det_.clear();
472  simhit_subdet_.clear();
473  simhit_eta_.clear();
474  simhit_phi_.clear();
475  simhit_idx_simcluster_.clear();
476  simhit_detid_.clear();
477 
478  rechit_e_.clear();
479  rechit_x_.clear();
480  rechit_y_.clear();
481  rechit_z_.clear();
482  rechit_det_.clear();
483  rechit_subdet_.clear();
484  rechit_eta_.clear();
485  rechit_phi_.clear();
486  rechit_idx_element_.clear();
487  rechit_detid_.clear();
488  }
489 
490  simtrack_x_.clear();
491  simtrack_y_.clear();
492  simtrack_z_.clear();
493  simtrack_idx_simcluster_.clear();
494  simtrack_pid_.clear();
495 
496  gen_eta_.clear();
497  gen_phi_.clear();
498  gen_pt_.clear();
499  gen_px_.clear();
500  gen_py_.clear();
501  gen_pz_.clear();
502  gen_energy_.clear();
503  gen_charge_.clear();
504  gen_pdgid_.clear();
505  gen_status_.clear();
506  gen_daughters_.clear();
507 
508  element_pt_.clear();
509  element_px_.clear();
510  element_py_.clear();
511  element_pz_.clear();
512  element_deltap_.clear();
513  element_sigmadeltap_.clear();
514  element_eta_.clear();
515  element_phi_.clear();
516  element_energy_.clear();
517  element_eta_ecal_.clear();
518  element_phi_ecal_.clear();
519  element_eta_hcal_.clear();
520  element_phi_hcal_.clear();
521  element_charge_.clear();
522  element_type_.clear();
523  element_layer_.clear();
524  element_depth_.clear();
525  element_trajpoint_.clear();
526  element_muon_dt_hits_.clear();
527  element_muon_csc_hits_.clear();
528 
529  element_distance_i_.clear();
530  element_distance_j_.clear();
531  element_distance_d_.clear();
532 
533  pfcandidate_eta_.clear();
534  pfcandidate_phi_.clear();
535  pfcandidate_pt_.clear();
536  pfcandidate_px_.clear();
537  pfcandidate_py_.clear();
538  pfcandidate_pz_.clear();
539  pfcandidate_energy_.clear();
540  pfcandidate_pdgid_.clear();
541 
542 } //clearVariables

◆ endJob()

void PFAnalysis::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 1129 of file PFAnalysisNtuplizer.cc.

1129 {}

◆ endRun()

void PFAnalysis::endRun ( edm::Run const &  iEvent,
edm::EventSetup const &   
)
override

Definition at line 1125 of file PFAnalysisNtuplizer.cc.

1125 {}

◆ fillDescriptions()

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

Definition at line 1131 of file PFAnalysisNtuplizer.cc.

1131  {
1133  desc.setUnknown();
1134  descriptions.addDefault(desc);
1135 }

References edm::ConfigurationDescriptions::addDefault(), and submitPVResolutionJobs::desc.

◆ getHitPosition()

GlobalPoint PFAnalysis::getHitPosition ( const DetId id)
private

Definition at line 544 of file PFAnalysisNtuplizer.cc.

544  {
546 
547  bool present = false;
548  if (((id.det() == DetId::Ecal &&
549  (id.subdetId() == EcalBarrel || id.subdetId() == EcalEndcap || id.subdetId() == EcalPreshower)) ||
550  (id.det() == DetId::Hcal && (id.subdetId() == HcalBarrel || id.subdetId() == HcalEndcap ||
551  id.subdetId() == HcalForward || id.subdetId() == HcalOuter)))) {
552  const CaloSubdetectorGeometry* geom_sd(geom->getSubdetectorGeometry(id.det(), id.subdetId()));
553  present = geom_sd->present(id);
554  if (present) {
555  const auto& cell = geom_sd->getGeometry(id);
556  ret = GlobalPoint(cell->getPosition());
557  }
558  }
559  return ret;
560 }

References DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, relativeConstraints::geom, CaloSubdetectorGeometry::getGeometry(), DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, CaloSubdetectorGeometry::present(), and runTheMatrix::ret.

◆ processBlocks()

pair< vector< ElementWithIndex >, vector< tuple< int, int, float > > > PFAnalysis::processBlocks ( const std::vector< reco::PFBlock > &  pfBlocks)
private

Definition at line 966 of file PFAnalysisNtuplizer.cc.

967  {
968  vector<ElementWithIndex> ret;
969  vector<tuple<int, int, float>> distances;
970 
971  //Collect all the elements
972  int iblock = 0;
973  for (const auto& block : pfBlocks) {
974  int ielem = 0;
975  const auto& linkdata = block.linkData();
976 
977  //create a list of global element indices with distances
978  for (const auto& link : linkdata) {
979  const auto vecidx = link.first;
980  const auto dist = link.second.distance;
981  const auto& ij = get_triu_vector_index(vecidx, block.elements().size());
982  auto globalindex_i = ij.first + ret.size();
983  auto globalindex_j = ij.second + ret.size();
984  distances.push_back(make_tuple(globalindex_i, globalindex_j, dist));
985  }
986 
987  for (const auto& elem : block.elements()) {
988  ElementWithIndex elem_index(elem, iblock, ielem);
989  ret.push_back(elem_index);
990  ielem += 1;
991  } //elements
992  iblock += 1;
993  } //blocks
994  return make_pair(ret, distances);
995 
996 } //processBlocks

References groupFilesInBlocks::block, get_triu_vector_index(), MainPageGenerator::link, and runTheMatrix::ret.

◆ processTrackingParticles()

void PFAnalysis::processTrackingParticles ( const edm::View< TrackingParticle > &  trackingParticles,
edm::Handle< edm::View< TrackingParticle >> &  trackingParticlesHandle 
)
private

Definition at line 919 of file PFAnalysisNtuplizer.cc.

920  {
921  for (unsigned long ntrackingparticle = 0; ntrackingparticle < trackingParticles.size(); ntrackingparticle++) {
922  const auto& tp = trackingParticles.at(ntrackingparticle);
923  edm::RefToBase<TrackingParticle> tpref(trackingParticlesHandle, ntrackingparticle);
924 
925  math::XYZTLorentzVectorD vtx(0, 0, 0, 0);
926 
927  if (!tp.decayVertices().empty()) {
928  vtx = tp.decayVertices().at(0)->position();
929  }
930  auto orig_vtx = tp.vertex();
931 
932  // fill branches
933  trackingparticle_eta_.push_back(tp.p4().eta());
934  trackingparticle_phi_.push_back(tp.p4().phi());
935  trackingparticle_pt_.push_back(tp.p4().pt());
936  trackingparticle_px_.push_back(tp.p4().px());
937  trackingparticle_py_.push_back(tp.p4().py());
938  trackingparticle_pz_.push_back(tp.p4().pz());
939  trackingparticle_energy_.push_back(tp.p4().energy());
940  trackingparticle_dvx_.push_back(vtx.x());
941  trackingparticle_dvy_.push_back(vtx.y());
942  trackingparticle_dvz_.push_back(vtx.z());
943  trackingparticle_bx_.push_back(tp.eventId().bunchCrossing());
944  trackingparticle_ev_.push_back(tp.eventId().event());
945 
946  trackingparticle_ovx_.push_back(orig_vtx.x());
947  trackingparticle_ovy_.push_back(orig_vtx.y());
948  trackingparticle_ovz_.push_back(orig_vtx.z());
949 
950  trackingparticle_pid_.push_back(tp.pdgId());
951  }
952 }

References cmsswSequenceInfo::tp, muonClassificationByHits_cfi::trackingParticles, and extraflags_cff::vtx.

Member Data Documentation

◆ aField_

MagneticField const* PFAnalysis::aField_
private

Definition at line 266 of file PFAnalysisNtuplizer.cc.

◆ caloParticles_

edm::EDGetTokenT<edm::View<CaloParticle> > PFAnalysis::caloParticles_
private

Definition at line 140 of file PFAnalysisNtuplizer.cc.

◆ element_charge_

vector<int> PFAnalysis::element_charge_
private

Definition at line 239 of file PFAnalysisNtuplizer.cc.

◆ element_deltap_

vector<float> PFAnalysis::element_deltap_
private

Definition at line 230 of file PFAnalysisNtuplizer.cc.

◆ element_depth_

vector<float> PFAnalysis::element_depth_
private

Definition at line 242 of file PFAnalysisNtuplizer.cc.

◆ element_distance_d_

vector<float> PFAnalysis::element_distance_d_
private

Definition at line 249 of file PFAnalysisNtuplizer.cc.

◆ element_distance_i_

vector<int> PFAnalysis::element_distance_i_
private

Definition at line 247 of file PFAnalysisNtuplizer.cc.

◆ element_distance_j_

vector<int> PFAnalysis::element_distance_j_
private

Definition at line 248 of file PFAnalysisNtuplizer.cc.

◆ element_energy_

vector<float> PFAnalysis::element_energy_
private

Definition at line 234 of file PFAnalysisNtuplizer.cc.

◆ element_eta_

vector<float> PFAnalysis::element_eta_
private

Definition at line 232 of file PFAnalysisNtuplizer.cc.

◆ element_eta_ecal_

vector<float> PFAnalysis::element_eta_ecal_
private

Definition at line 235 of file PFAnalysisNtuplizer.cc.

◆ element_eta_hcal_

vector<float> PFAnalysis::element_eta_hcal_
private

Definition at line 237 of file PFAnalysisNtuplizer.cc.

◆ element_layer_

vector<int> PFAnalysis::element_layer_
private

Definition at line 241 of file PFAnalysisNtuplizer.cc.

◆ element_muon_csc_hits_

vector<float> PFAnalysis::element_muon_csc_hits_
private

Definition at line 245 of file PFAnalysisNtuplizer.cc.

◆ element_muon_dt_hits_

vector<float> PFAnalysis::element_muon_dt_hits_
private

Definition at line 244 of file PFAnalysisNtuplizer.cc.

◆ element_phi_

vector<float> PFAnalysis::element_phi_
private

Definition at line 233 of file PFAnalysisNtuplizer.cc.

◆ element_phi_ecal_

vector<float> PFAnalysis::element_phi_ecal_
private

Definition at line 236 of file PFAnalysisNtuplizer.cc.

◆ element_phi_hcal_

vector<float> PFAnalysis::element_phi_hcal_
private

Definition at line 238 of file PFAnalysisNtuplizer.cc.

◆ element_pt_

vector<float> PFAnalysis::element_pt_
private

Definition at line 226 of file PFAnalysisNtuplizer.cc.

◆ element_px_

vector<float> PFAnalysis::element_px_
private

Definition at line 227 of file PFAnalysisNtuplizer.cc.

◆ element_py_

vector<float> PFAnalysis::element_py_
private

Definition at line 228 of file PFAnalysisNtuplizer.cc.

◆ element_pz_

vector<float> PFAnalysis::element_pz_
private

Definition at line 229 of file PFAnalysisNtuplizer.cc.

◆ element_sigmadeltap_

vector<float> PFAnalysis::element_sigmadeltap_
private

Definition at line 231 of file PFAnalysisNtuplizer.cc.

◆ element_to_candidate

vector<pair<int, int> > PFAnalysis::element_to_candidate
private

Definition at line 263 of file PFAnalysisNtuplizer.cc.

◆ element_trajpoint_

vector<float> PFAnalysis::element_trajpoint_
private

Definition at line 243 of file PFAnalysisNtuplizer.cc.

◆ element_type_

vector<int> PFAnalysis::element_type_
private

Definition at line 240 of file PFAnalysisNtuplizer.cc.

◆ ev_event_

edm::EventNumber_t PFAnalysis::ev_event_
private

Definition at line 150 of file PFAnalysisNtuplizer.cc.

◆ ev_lumi_

edm::LuminosityBlockNumber_t PFAnalysis::ev_lumi_
private

Definition at line 149 of file PFAnalysisNtuplizer.cc.

◆ ev_run_

edm::RunNumber_t PFAnalysis::ev_run_
private

Definition at line 148 of file PFAnalysisNtuplizer.cc.

◆ gen_charge_

vector<int> PFAnalysis::gen_charge_
private

Definition at line 221 of file PFAnalysisNtuplizer.cc.

◆ gen_daughters_

vector<vector<int> > PFAnalysis::gen_daughters_
private

Definition at line 224 of file PFAnalysisNtuplizer.cc.

◆ gen_energy_

vector<float> PFAnalysis::gen_energy_
private

Definition at line 220 of file PFAnalysisNtuplizer.cc.

◆ gen_eta_

vector<float> PFAnalysis::gen_eta_
private

Definition at line 214 of file PFAnalysisNtuplizer.cc.

◆ gen_pdgid_

vector<int> PFAnalysis::gen_pdgid_
private

Definition at line 222 of file PFAnalysisNtuplizer.cc.

◆ gen_phi_

vector<float> PFAnalysis::gen_phi_
private

Definition at line 215 of file PFAnalysisNtuplizer.cc.

◆ gen_pt_

vector<float> PFAnalysis::gen_pt_
private

Definition at line 216 of file PFAnalysisNtuplizer.cc.

◆ gen_px_

vector<float> PFAnalysis::gen_px_
private

Definition at line 217 of file PFAnalysisNtuplizer.cc.

◆ gen_py_

vector<float> PFAnalysis::gen_py_
private

Definition at line 218 of file PFAnalysisNtuplizer.cc.

◆ gen_pz_

vector<float> PFAnalysis::gen_pz_
private

Definition at line 219 of file PFAnalysisNtuplizer.cc.

◆ gen_status_

vector<int> PFAnalysis::gen_status_
private

Definition at line 223 of file PFAnalysisNtuplizer.cc.

◆ genParticles_

edm::EDGetTokenT<std::vector<reco::GenParticle> > PFAnalysis::genParticles_
private

Definition at line 138 of file PFAnalysisNtuplizer.cc.

◆ geom

CaloGeometry* PFAnalysis::geom
private

Definition at line 273 of file PFAnalysisNtuplizer.cc.

◆ geometryToken_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> PFAnalysis::geometryToken_
private

Definition at line 268 of file PFAnalysisNtuplizer.cc.

◆ hcal_topo

HcalTopology* PFAnalysis::hcal_topo
private

Definition at line 274 of file PFAnalysisNtuplizer.cc.

◆ hcalDDDrecToken_

edm::ESGetToken<HcalDDDRecConstants, HcalRecNumberingRecord> PFAnalysis::hcalDDDrecToken_
private

Definition at line 271 of file PFAnalysisNtuplizer.cc.

◆ hcons

const HcalDDDRecConstants* PFAnalysis::hcons
private

Definition at line 275 of file PFAnalysisNtuplizer.cc.

◆ magFieldToken_

edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> PFAnalysis::magFieldToken_
private

Definition at line 270 of file PFAnalysisNtuplizer.cc.

◆ pfBlocks_

edm::EDGetTokenT<std::vector<reco::PFBlock> > PFAnalysis::pfBlocks_
private

Definition at line 142 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_energy_

vector<float> PFAnalysis::pfcandidate_energy_
private

Definition at line 257 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_eta_

vector<float> PFAnalysis::pfcandidate_eta_
private

Definition at line 251 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_pdgid_

vector<int> PFAnalysis::pfcandidate_pdgid_
private

Definition at line 258 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_phi_

vector<float> PFAnalysis::pfcandidate_phi_
private

Definition at line 252 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_pt_

vector<float> PFAnalysis::pfcandidate_pt_
private

Definition at line 253 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_px_

vector<float> PFAnalysis::pfcandidate_px_
private

Definition at line 254 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_py_

vector<float> PFAnalysis::pfcandidate_py_
private

Definition at line 255 of file PFAnalysisNtuplizer.cc.

◆ pfcandidate_pz_

vector<float> PFAnalysis::pfcandidate_pz_
private

Definition at line 256 of file PFAnalysisNtuplizer.cc.

◆ pfCandidates_

edm::EDGetTokenT<std::vector<reco::PFCandidate> > PFAnalysis::pfCandidates_
private

Definition at line 143 of file PFAnalysisNtuplizer.cc.

◆ rechit_det_

vector<float> PFAnalysis::rechit_det_
private

Definition at line 201 of file PFAnalysisNtuplizer.cc.

◆ rechit_detid_

vector<uint64_t> PFAnalysis::rechit_detid_
private

Definition at line 206 of file PFAnalysisNtuplizer.cc.

◆ rechit_e_

vector<float> PFAnalysis::rechit_e_
private

Definition at line 197 of file PFAnalysisNtuplizer.cc.

◆ rechit_eta_

vector<float> PFAnalysis::rechit_eta_
private

Definition at line 203 of file PFAnalysisNtuplizer.cc.

◆ rechit_idx_element_

vector<int> PFAnalysis::rechit_idx_element_
private

Definition at line 205 of file PFAnalysisNtuplizer.cc.

◆ rechit_phi_

vector<float> PFAnalysis::rechit_phi_
private

Definition at line 204 of file PFAnalysisNtuplizer.cc.

◆ rechit_subdet_

vector<float> PFAnalysis::rechit_subdet_
private

Definition at line 202 of file PFAnalysisNtuplizer.cc.

◆ rechit_x_

vector<float> PFAnalysis::rechit_x_
private

Definition at line 198 of file PFAnalysisNtuplizer.cc.

◆ rechit_y_

vector<float> PFAnalysis::rechit_y_
private

Definition at line 199 of file PFAnalysisNtuplizer.cc.

◆ rechit_z_

vector<float> PFAnalysis::rechit_z_
private

Definition at line 200 of file PFAnalysisNtuplizer.cc.

◆ saveHits

bool PFAnalysis::saveHits
private

Definition at line 277 of file PFAnalysisNtuplizer.cc.

◆ simcluster_bx_

vector<int> PFAnalysis::simcluster_bx_
private

Definition at line 179 of file PFAnalysisNtuplizer.cc.

◆ simcluster_detids_

vector<std::map<uint64_t, double> > PFAnalysis::simcluster_detids_
private

Definition at line 184 of file PFAnalysisNtuplizer.cc.

◆ simcluster_energy_

vector<float> PFAnalysis::simcluster_energy_
private

Definition at line 175 of file PFAnalysisNtuplizer.cc.

◆ simcluster_eta_

vector<float> PFAnalysis::simcluster_eta_
private

Definition at line 172 of file PFAnalysisNtuplizer.cc.

◆ simcluster_ev_

vector<int> PFAnalysis::simcluster_ev_
private

Definition at line 180 of file PFAnalysisNtuplizer.cc.

◆ simcluster_idx_trackingparticle_

vector<int> PFAnalysis::simcluster_idx_trackingparticle_
private

Definition at line 182 of file PFAnalysisNtuplizer.cc.

◆ simcluster_nhits_

vector<int> PFAnalysis::simcluster_nhits_
private

Definition at line 183 of file PFAnalysisNtuplizer.cc.

◆ simcluster_phi_

vector<float> PFAnalysis::simcluster_phi_
private

Definition at line 173 of file PFAnalysisNtuplizer.cc.

◆ simcluster_pid_

vector<int> PFAnalysis::simcluster_pid_
private

Definition at line 181 of file PFAnalysisNtuplizer.cc.

◆ simcluster_pt_

vector<float> PFAnalysis::simcluster_pt_
private

Definition at line 174 of file PFAnalysisNtuplizer.cc.

◆ simcluster_px_

vector<float> PFAnalysis::simcluster_px_
private

Definition at line 176 of file PFAnalysisNtuplizer.cc.

◆ simcluster_py_

vector<float> PFAnalysis::simcluster_py_
private

Definition at line 177 of file PFAnalysisNtuplizer.cc.

◆ simcluster_pz_

vector<float> PFAnalysis::simcluster_pz_
private

Definition at line 178 of file PFAnalysisNtuplizer.cc.

◆ simcluster_to_element

vector<pair<int, int> > PFAnalysis::simcluster_to_element
private

Definition at line 261 of file PFAnalysisNtuplizer.cc.

◆ simcluster_to_element_cmp

vector<float> PFAnalysis::simcluster_to_element_cmp
private

Definition at line 262 of file PFAnalysisNtuplizer.cc.

◆ simhit_det_

vector<int> PFAnalysis::simhit_det_
private

Definition at line 192 of file PFAnalysisNtuplizer.cc.

◆ simhit_detid_

vector<uint64_t> PFAnalysis::simhit_detid_
private

Definition at line 195 of file PFAnalysisNtuplizer.cc.

◆ simhit_eta_

vector<float> PFAnalysis::simhit_eta_
private

Definition at line 190 of file PFAnalysisNtuplizer.cc.

◆ simhit_frac_

vector<float> PFAnalysis::simhit_frac_
private

Definition at line 186 of file PFAnalysisNtuplizer.cc.

◆ simhit_idx_simcluster_

vector<int> PFAnalysis::simhit_idx_simcluster_
private

Definition at line 194 of file PFAnalysisNtuplizer.cc.

◆ simhit_phi_

vector<float> PFAnalysis::simhit_phi_
private

Definition at line 191 of file PFAnalysisNtuplizer.cc.

◆ simhit_subdet_

vector<int> PFAnalysis::simhit_subdet_
private

Definition at line 193 of file PFAnalysisNtuplizer.cc.

◆ simhit_x_

vector<float> PFAnalysis::simhit_x_
private

Definition at line 187 of file PFAnalysisNtuplizer.cc.

◆ simhit_y_

vector<float> PFAnalysis::simhit_y_
private

Definition at line 188 of file PFAnalysisNtuplizer.cc.

◆ simhit_z_

vector<float> PFAnalysis::simhit_z_
private

Definition at line 189 of file PFAnalysisNtuplizer.cc.

◆ simtrack_idx_simcluster_

vector<int> PFAnalysis::simtrack_idx_simcluster_
private

Definition at line 211 of file PFAnalysisNtuplizer.cc.

◆ simtrack_pid_

vector<int> PFAnalysis::simtrack_pid_
private

Definition at line 212 of file PFAnalysisNtuplizer.cc.

◆ simtrack_x_

vector<float> PFAnalysis::simtrack_x_
private

Definition at line 208 of file PFAnalysisNtuplizer.cc.

◆ simtrack_y_

vector<float> PFAnalysis::simtrack_y_
private

Definition at line 209 of file PFAnalysisNtuplizer.cc.

◆ simtrack_z_

vector<float> PFAnalysis::simtrack_z_
private

Definition at line 210 of file PFAnalysisNtuplizer.cc.

◆ t_

TTree* PFAnalysis::t_
private

Definition at line 146 of file PFAnalysisNtuplizer.cc.

◆ topologyToken_

edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> PFAnalysis::topologyToken_
private

Definition at line 269 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_bx_

vector<int> PFAnalysis::trackingparticle_bx_
private

Definition at line 162 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_dvx_

vector<float> PFAnalysis::trackingparticle_dvx_
private

Definition at line 159 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_dvy_

vector<float> PFAnalysis::trackingparticle_dvy_
private

Definition at line 160 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_dvz_

vector<float> PFAnalysis::trackingparticle_dvz_
private

Definition at line 161 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_energy_

vector<float> PFAnalysis::trackingparticle_energy_
private

Definition at line 158 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_eta_

vector<float> PFAnalysis::trackingparticle_eta_
private

Definition at line 152 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_ev_

vector<int> PFAnalysis::trackingparticle_ev_
private

Definition at line 163 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_exx_

vector<float> PFAnalysis::trackingparticle_exx_
private

Definition at line 167 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_exy_

vector<float> PFAnalysis::trackingparticle_exy_
private

Definition at line 168 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_mother_

vector<int> PFAnalysis::trackingparticle_mother_
private

Definition at line 169 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_ovx_

vector<float> PFAnalysis::trackingparticle_ovx_
private

Definition at line 164 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_ovy_

vector<float> PFAnalysis::trackingparticle_ovy_
private

Definition at line 165 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_ovz_

vector<float> PFAnalysis::trackingparticle_ovz_
private

Definition at line 166 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_phi_

vector<float> PFAnalysis::trackingparticle_phi_
private

Definition at line 153 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_pid_

vector<int> PFAnalysis::trackingparticle_pid_
private

Definition at line 170 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_pt_

vector<float> PFAnalysis::trackingparticle_pt_
private

Definition at line 154 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_px_

vector<float> PFAnalysis::trackingparticle_px_
private

Definition at line 155 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_py_

vector<float> PFAnalysis::trackingparticle_py_
private

Definition at line 156 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_pz_

vector<float> PFAnalysis::trackingparticle_pz_
private

Definition at line 157 of file PFAnalysisNtuplizer.cc.

◆ trackingparticle_to_element

vector<pair<int, int> > PFAnalysis::trackingparticle_to_element
private

Definition at line 260 of file PFAnalysisNtuplizer.cc.

◆ trackingParticles_

edm::EDGetTokenT<edm::View<TrackingParticle> > PFAnalysis::trackingParticles_
private

Definition at line 139 of file PFAnalysisNtuplizer.cc.

◆ tracks_

edm::EDGetTokenT<edm::View<reco::Track> > PFAnalysis::tracks_
private

Definition at line 141 of file PFAnalysisNtuplizer.cc.

◆ tracks_recotosim_

edm::EDGetTokenT<reco::RecoToSimCollection> PFAnalysis::tracks_recotosim_
private

Definition at line 144 of file PFAnalysisNtuplizer.cc.

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:543
PFAnalysis::element_to_candidate
vector< pair< int, int > > element_to_candidate
Definition: PFAnalysisNtuplizer.cc:263
ntrack
#define ntrack
PFAnalysis::pfCandidates_
edm::EDGetTokenT< std::vector< reco::PFCandidate > > pfCandidates_
Definition: PFAnalysisNtuplizer.cc:143
DDAxes::y
PFAnalysis::trackingparticle_bx_
vector< int > trackingparticle_bx_
Definition: PFAnalysisNtuplizer.cc:162
reco::PFBlockElement::HO
Definition: PFBlockElement.h:42
zmumugammaAnalyzer_cfi.pfCandidates
pfCandidates
Definition: zmumugammaAnalyzer_cfi.py:11
PFAnalysis::clearVariables
void clearVariables()
Definition: PFAnalysisNtuplizer.cc:422
PFAnalysis::trackingparticle_dvx_
vector< float > trackingparticle_dvx_
Definition: PFAnalysisNtuplizer.cc:159
PFAnalysis::simcluster_phi_
vector< float > simcluster_phi_
Definition: PFAnalysisNtuplizer.cc:173
PFAnalysis::element_energy_
vector< float > element_energy_
Definition: PFAnalysisNtuplizer.cc:234
edm::ESInputTag
Definition: ESInputTag.h:87
PFAnalysis::pfcandidate_py_
vector< float > pfcandidate_py_
Definition: PFAnalysisNtuplizer.cc:255
ElementWithIndex
Definition: PFAnalysisNtuplizer.cc:68
PFAnalysis::getHitPosition
GlobalPoint getHitPosition(const DetId &id)
Definition: PFAnalysisNtuplizer.cc:544
PFAnalysis::gen_eta_
vector< float > gen_eta_
Definition: PFAnalysisNtuplizer.cc:214
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
PFAnalysis::trackingparticle_exy_
vector< float > trackingparticle_exy_
Definition: PFAnalysisNtuplizer.cc:168
PFAnalysis::genParticles_
edm::EDGetTokenT< std::vector< reco::GenParticle > > genParticles_
Definition: PFAnalysisNtuplizer.cc:138
PFAnalysis::simtrack_x_
vector< float > simtrack_x_
Definition: PFAnalysisNtuplizer.cc:208
PFAnalysis::trackingParticles_
edm::EDGetTokenT< edm::View< TrackingParticle > > trackingParticles_
Definition: PFAnalysisNtuplizer.cc:139
PFAnalysis::element_deltap_
vector< float > element_deltap_
Definition: PFAnalysisNtuplizer.cc:230
PFAnalysis::caloParticles_
edm::EDGetTokenT< edm::View< CaloParticle > > caloParticles_
Definition: PFAnalysisNtuplizer.cc:140
PFAnalysis::gen_pdgid_
vector< int > gen_pdgid_
Definition: PFAnalysisNtuplizer.cc:222
reco::PFRecHit::energy
float energy() const
rechit energy
Definition: PFRecHit.h:99
PFAnalysis::gen_px_
vector< float > gen_px_
Definition: PFAnalysisNtuplizer.cc:217
PFAnalysis::trackingparticle_py_
vector< float > trackingparticle_py_
Definition: PFAnalysisNtuplizer.cc:156
DiDispStaMuonMonitor_cfi.pt
pt
Definition: DiDispStaMuonMonitor_cfi.py:39
PFAnalysis::simhit_y_
vector< float > simhit_y_
Definition: PFAnalysisNtuplizer.cc:188
PFAnalysis::gen_pt_
vector< float > gen_pt_
Definition: PFAnalysisNtuplizer.cc:216
PFAnalysis::element_depth_
vector< float > element_depth_
Definition: PFAnalysisNtuplizer.cc:242
PFAnalysis::trackingparticle_dvz_
vector< float > trackingparticle_dvz_
Definition: PFAnalysisNtuplizer.cc:161
multPhiCorr_741_25nsDY_cfi.py
py
Definition: multPhiCorr_741_25nsDY_cfi.py:12
PFAnalysis::simcluster_energy_
vector< float > simcluster_energy_
Definition: PFAnalysisNtuplizer.cc:175
PFAnalysis::pfcandidate_pt_
vector< float > pfcandidate_pt_
Definition: PFAnalysisNtuplizer.cc:253
PFAnalysis::ev_run_
edm::RunNumber_t ev_run_
Definition: PFAnalysisNtuplizer.cc:148
reco::PFBlockElementSuperCluster
Cluster Element.
Definition: PFBlockElementSuperCluster.h:15
math::XYZTLorentzVectorD
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
pos
Definition: PixelAliasList.h:18
HcalTopology
Definition: HcalTopology.h:26
DetId::Hcal
Definition: DetId.h:28
reco::PFBlockElement::SC
Definition: PFBlockElement.h:41
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
PFAnalysis::simcluster_detids_
vector< std::map< uint64_t, double > > simcluster_detids_
Definition: PFAnalysisNtuplizer.cc:184
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
find_element_ref
vector< int > find_element_ref(const vector< ElementWithIndex > &vec, const edm::RefToBase< reco::Track > &r)
Definition: PFAnalysisNtuplizer.cc:77
PFAnalysis::element_px_
vector< float > element_px_
Definition: PFAnalysisNtuplizer.cc:227
CaloGeometry::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
cms::cuda::assert
assert(be >=bs)
PFAnalysis::gen_status_
vector< int > gen_status_
Definition: PFAnalysisNtuplizer.cc:223
PFAnalysis::simcluster_pid_
vector< int > simcluster_pid_
Definition: PFAnalysisNtuplizer.cc:181
PFAnalysis::trackingparticle_dvy_
vector< float > trackingparticle_dvy_
Definition: PFAnalysisNtuplizer.cc:160
PFAnalysis::simhit_det_
vector< int > simhit_det_
Definition: PFAnalysisNtuplizer.cc:192
reco::PFBlockElement::HCAL
Definition: PFBlockElement.h:36
PFAnalysis::rechit_x_
vector< float > rechit_x_
Definition: PFAnalysisNtuplizer.cc:198
PFAnalysis::simhit_subdet_
vector< int > simhit_subdet_
Definition: PFAnalysisNtuplizer.cc:193
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
hgcal_conditions::parameters
Definition: HGCConditions.h:86
PFAnalysis::magFieldToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: PFAnalysisNtuplizer.cc:270
DDAxes::x
PFAnalysis::tracks_recotosim_
edm::EDGetTokenT< reco::RecoToSimCollection > tracks_recotosim_
Definition: PFAnalysisNtuplizer.cc:144
PFAnalysis::simhit_eta_
vector< float > simhit_eta_
Definition: PFAnalysisNtuplizer.cc:190
HcalBarrel
Definition: HcalAssistant.h:33
PFAnalysis::ev_event_
edm::EventNumber_t ev_event_
Definition: PFAnalysisNtuplizer.cc:150
PFAnalysis::topologyToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topologyToken_
Definition: PFAnalysisNtuplizer.cc:269
edm::Handle
Definition: AssociativeIterator.h:50
PFAnalysis::element_distance_i_
vector< int > element_distance_i_
Definition: PFAnalysisNtuplizer.cc:247
PFAnalysis::trackingparticle_exx_
vector< float > trackingparticle_exx_
Definition: PFAnalysisNtuplizer.cc:167
PFAnalysis::element_muon_csc_hits_
vector< float > element_muon_csc_hits_
Definition: PFAnalysisNtuplizer.cc:245
EcalBarrel
Definition: EcalSubdetector.h:10
PFAnalysis::hcons
const HcalDDDRecConstants * hcons
Definition: PFAnalysisNtuplizer.cc:275
PFAnalysis::simcluster_pz_
vector< float > simcluster_pz_
Definition: PFAnalysisNtuplizer.cc:178
edm::Ref
Definition: AssociativeIterator.h:58
PFAnalysis::trackingparticle_pid_
vector< int > trackingparticle_pid_
Definition: PFAnalysisNtuplizer.cc:170
reco::PFBlockElement::Type
Type
Definition: PFBlockElement.h:30
DetId
Definition: DetId.h:17
PFAnalysis::rechit_idx_element_
vector< int > rechit_idx_element_
Definition: PFAnalysisNtuplizer.cc:205
PFAnalysis::trackingparticle_px_
vector< float > trackingparticle_px_
Definition: PFAnalysisNtuplizer.cc:155
PFAnalysis::trackingparticle_ev_
vector< int > trackingparticle_ev_
Definition: PFAnalysisNtuplizer.cc:163
CaloGeometry
Definition: CaloGeometry.h:21
PFAnalysis::element_charge_
vector< int > element_charge_
Definition: PFAnalysisNtuplizer.cc:239
photonIsolationHIProducer_cfi.hf
hf
Definition: photonIsolationHIProducer_cfi.py:9
PFAnalysis::pfcandidate_pz_
vector< float > pfcandidate_pz_
Definition: PFAnalysisNtuplizer.cc:256
PFAnalysis::element_type_
vector< int > element_type_
Definition: PFAnalysisNtuplizer.cc:240
PFAnalysis::ev_lumi_
edm::LuminosityBlockNumber_t ev_lumi_
Definition: PFAnalysisNtuplizer.cc:149
BPhysicsValidation_cfi.daughters
daughters
Definition: BPhysicsValidation_cfi.py:11
PFAnalysis::hcalDDDrecToken_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > hcalDDDrecToken_
Definition: PFAnalysisNtuplizer.cc:271
PFAnalysis::rechit_z_
vector< float > rechit_z_
Definition: PFAnalysisNtuplizer.cc:200
PFAnalysis::simtrack_z_
vector< float > simtrack_z_
Definition: PFAnalysisNtuplizer.cc:210
PFAnalysis::processTrackingParticles
void processTrackingParticles(const edm::View< TrackingParticle > &trackingParticles, edm::Handle< edm::View< TrackingParticle >> &trackingParticlesHandle)
Definition: PFAnalysisNtuplizer.cc:919
PFAnalysis::simhit_frac_
vector< float > simhit_frac_
Definition: PFAnalysisNtuplizer.cc:186
reco::PFBlockElement::TRACK
Definition: PFBlockElement.h:32
PVValHelper::eta
Definition: PVValidationHelpers.h:70
PFAnalysis::trackingparticle_pz_
vector< float > trackingparticle_pz_
Definition: PFAnalysisNtuplizer.cc:157
PVValHelper::pT
Definition: PVValidationHelpers.h:71
PFAnalysis::simtrack_pid_
vector< int > simtrack_pid_
Definition: PFAnalysisNtuplizer.cc:212
PFAnalysis::simtrack_y_
vector< float > simtrack_y_
Definition: PFAnalysisNtuplizer.cc:209
reco::PFTrajectoryPoint::ECALShowerMax
Definition: PFTrajectoryPoint.h:46
caloTruthCellsProducer_cfi.caloParticles
caloParticles
Definition: caloTruthCellsProducer_cfi.py:6
PFAnalysis::simcluster_idx_trackingparticle_
vector< int > simcluster_idx_trackingparticle_
Definition: PFAnalysisNtuplizer.cc:182
PFAnalysis::element_phi_hcal_
vector< float > element_phi_hcal_
Definition: PFAnalysisNtuplizer.cc:238
DDAxes::z
HcalOuter
Definition: HcalAssistant.h:35
PFAnalysis::simcluster_ev_
vector< int > simcluster_ev_
Definition: PFAnalysisNtuplizer.cc:180
reco::PFBlockElementBrem
Track Element.
Definition: PFBlockElementBrem.h:17
PFAnalysis::simhit_detid_
vector< uint64_t > simhit_detid_
Definition: PFAnalysisNtuplizer.cc:195
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
get_triu_vector_index
pair< int, int > get_triu_vector_index(int k, int n)
Definition: PFAnalysisNtuplizer.cc:960
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
PFAnalysis::rechit_detid_
vector< uint64_t > rechit_detid_
Definition: PFAnalysisNtuplizer.cc:206
PFAnalysis::trackingparticle_to_element
vector< pair< int, int > > trackingparticle_to_element
Definition: PFAnalysisNtuplizer.cc:260
Point3DBase< float, GlobalTag >
nhits
Definition: HIMultiTrackSelector.h:42
PFAnalysis::trackingparticle_ovx_
vector< float > trackingparticle_ovx_
Definition: PFAnalysisNtuplizer.cc:164
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
cmsswSequenceInfo.tp
tp
Definition: cmsswSequenceInfo.py:17
PFAnalysis::gen_phi_
vector< float > gen_phi_
Definition: PFAnalysisNtuplizer.cc:215
PFAnalysis::simcluster_to_element
vector< pair< int, int > > simcluster_to_element
Definition: PFAnalysisNtuplizer.cc:261
PFAnalysis::simcluster_pt_
vector< float > simcluster_pt_
Definition: PFAnalysisNtuplizer.cc:174
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition: phase1PixelTopology.h:99
PFAnalysis::pfcandidate_pdgid_
vector< int > pfcandidate_pdgid_
Definition: PFAnalysisNtuplizer.cc:258
EcalEndcap
Definition: EcalSubdetector.h:10
PFAnalysis::pfcandidate_energy_
vector< float > pfcandidate_energy_
Definition: PFAnalysisNtuplizer.cc:257
PFAnalysis::simcluster_nhits_
vector< int > simcluster_nhits_
Definition: PFAnalysisNtuplizer.cc:183
PFAnalysis::rechit_subdet_
vector< float > rechit_subdet_
Definition: PFAnalysisNtuplizer.cc:202
PFAnalysis::simhit_phi_
vector< float > simhit_phi_
Definition: PFAnalysisNtuplizer.cc:191
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
edm::View
Definition: CaloClusterFwd.h:14
PFAnalysis::simcluster_px_
vector< float > simcluster_px_
Definition: PFAnalysisNtuplizer.cc:176
PFAnalysis::associateClusterToSimCluster
void associateClusterToSimCluster(const vector< ElementWithIndex > &all_elements)
Definition: PFAnalysisNtuplizer.cc:998
PFAnalysis::element_eta_hcal_
vector< float > element_eta_hcal_
Definition: PFAnalysisNtuplizer.cc:237
PFAnalysis::element_muon_dt_hits_
vector< float > element_muon_dt_hits_
Definition: PFAnalysisNtuplizer.cc:244
reco::PFBlockElement::HFEM
Definition: PFBlockElement.h:39
PFAnalysis::element_phi_
vector< float > element_phi_
Definition: PFAnalysisNtuplizer.cc:233
reco::PFBlockElement::GSF
Definition: PFBlockElement.h:37
tracks
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
Definition: CAHitNtupletGeneratorKernelsImpl.h:176
PFAnalysis::rechit_e_
vector< float > rechit_e_
Definition: PFAnalysisNtuplizer.cc:197
PFAnalysis::element_phi_ecal_
vector< float > element_phi_ecal_
Definition: PFAnalysisNtuplizer.cc:236
PFAnalysis::gen_py_
vector< float > gen_py_
Definition: PFAnalysisNtuplizer.cc:218
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
edm::Ref::isNonnull
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:238
PFAnalysis::processBlocks
pair< vector< ElementWithIndex >, vector< tuple< int, int, float > > > processBlocks(const std::vector< reco::PFBlock > &pfBlocks)
Definition: PFAnalysisNtuplizer.cc:966
muonClassificationByHits_cfi.trackingParticles
trackingParticles
Definition: muonClassificationByHits_cfi.py:28
PFAnalysis::simcluster_to_element_cmp
vector< float > simcluster_to_element_cmp
Definition: PFAnalysisNtuplizer.cc:262
PFAnalysis::rechit_eta_
vector< float > rechit_eta_
Definition: PFAnalysisNtuplizer.cc:203
reco::PFBlockElement::ECAL
Definition: PFBlockElement.h:35
reco::PFTrajectoryPoint::HCALEntrance
HCAL front face.
Definition: PFTrajectoryPoint.h:48
cand
Definition: decayParser.h:32
edm::Service< TFileService >
reco::PFBlockElement::BREM
Definition: PFBlockElement.h:38
PFAnalysis::element_trajpoint_
vector< float > element_trajpoint_
Definition: PFAnalysisNtuplizer.cc:243
iEvent
int iEvent
Definition: GenABIO.cc:224
PFAnalysis::element_distance_j_
vector< int > element_distance_j_
Definition: PFAnalysisNtuplizer.cc:248
PFAnalysis::simhit_idx_simcluster_
vector< int > simhit_idx_simcluster_
Definition: PFAnalysisNtuplizer.cc:194
PFAnalysis::gen_energy_
vector< float > gen_energy_
Definition: PFAnalysisNtuplizer.cc:220
PFAnalysis::simtrack_idx_simcluster_
vector< int > simtrack_idx_simcluster_
Definition: PFAnalysisNtuplizer.cc:211
PFAnalysis::element_distance_d_
vector< float > element_distance_d_
Definition: PFAnalysisNtuplizer.cc:249
groupFilesInBlocks.block
block
Definition: groupFilesInBlocks.py:150
PFAnalysis::gen_pz_
vector< float > gen_pz_
Definition: PFAnalysisNtuplizer.cc:219
reco::PFBlockElement::HFHAD
Definition: PFBlockElement.h:40
PFAnalysis::pfcandidate_px_
vector< float > pfcandidate_px_
Definition: PFAnalysisNtuplizer.cc:254
DetId::Ecal
Definition: DetId.h:27
PFAnalysis::element_sigmadeltap_
vector< float > element_sigmadeltap_
Definition: PFAnalysisNtuplizer.cc:231
PFAnalysis::element_eta_
vector< float > element_eta_
Definition: PFAnalysisNtuplizer.cc:232
PFAnalysis::simcluster_py_
vector< float > simcluster_py_
Definition: PFAnalysisNtuplizer.cc:177
TFileService::make
T * make(const Args &...args) const
make new ROOT object
Definition: TFileService.h:64
detid_compare
double detid_compare(const map< uint64_t, double > &rechits, const map< uint64_t, double > &simhits)
Definition: PFAnalysisNtuplizer.cc:93
PFAnalysis::simcluster_bx_
vector< int > simcluster_bx_
Definition: PFAnalysisNtuplizer.cc:179
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
reco::PFRecHit::detId
unsigned detId() const
rechit detId
Definition: PFRecHit.h:93
HcalForward
Definition: HcalAssistant.h:36
PFAnalysis::element_pz_
vector< float > element_pz_
Definition: PFAnalysisNtuplizer.cc:229
DDAxes::phi
EcalPreshower
Definition: EcalSubdetector.h:10
multPhiCorr_741_25nsDY_cfi.px
px
Definition: multPhiCorr_741_25nsDY_cfi.py:10
reco::PFBlockElementGsfTrack
Track Element.
Definition: PFBlockElementGsfTrack.h:18
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
PFAnalysis::simcluster_eta_
vector< float > simcluster_eta_
Definition: PFAnalysisNtuplizer.cc:172
PFAnalysis::trackingparticle_phi_
vector< float > trackingparticle_phi_
Definition: PFAnalysisNtuplizer.cc:153
PFAnalysis::element_pt_
vector< float > element_pt_
Definition: PFAnalysisNtuplizer.cc:226
PFAnalysis::element_py_
vector< float > element_py_
Definition: PFAnalysisNtuplizer.cc:228
extraflags_cff.vtx
vtx
Definition: extraflags_cff.py:19
PFAnalysis::simhit_z_
vector< float > simhit_z_
Definition: PFAnalysisNtuplizer.cc:189
HcalEndcap
Definition: HcalAssistant.h:34
fileCollector.cmp
cmp
Definition: fileCollector.py:125
PFAnalysis::trackingparticle_ovz_
vector< float > trackingparticle_ovz_
Definition: PFAnalysisNtuplizer.cc:166
PFAnalysis::gen_charge_
vector< int > gen_charge_
Definition: PFAnalysisNtuplizer.cc:221
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
reco::PFBlockElementCluster
Cluster Element.
Definition: PFBlockElementCluster.h:16
PFAnalysis::saveHits
bool saveHits
Definition: PFAnalysisNtuplizer.cc:277
TFileService::kSharedResource
static const std::string kSharedResource
Definition: TFileService.h:76
reco::PFBlockElementTrack
Track Element.
Definition: PFBlockElementTrack.h:17
PFAnalysis::aField_
MagneticField const * aField_
Definition: PFAnalysisNtuplizer.cc:266
CaloSubdetectorGeometry
Definition: CaloSubdetectorGeometry.h:22
edm::RefToBase< reco::Track >
PFAnalysis::trackingparticle_eta_
vector< float > trackingparticle_eta_
Definition: PFAnalysisNtuplizer.cc:152
PFAnalysis::element_layer_
vector< int > element_layer_
Definition: PFAnalysisNtuplizer.cc:241
reco::PFRecHit
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
Definition: PFRecHit.h:31
PFAnalysis::hcal_topo
HcalTopology * hcal_topo
Definition: PFAnalysisNtuplizer.cc:274
edm::Ref::key
key_type key() const
Accessor for product key.
Definition: Ref.h:250
PFAnalysis::geom
CaloGeometry * geom
Definition: PFAnalysisNtuplizer.cc:273
ztail.d
d
Definition: ztail.py:151
PFAnalysis::geometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
Definition: PFAnalysisNtuplizer.cc:268
reco::PFBlockElement::PS1
Definition: PFBlockElement.h:33
PFAnalysis::pfBlocks_
edm::EDGetTokenT< std::vector< reco::PFBlock > > pfBlocks_
Definition: PFAnalysisNtuplizer.cc:142
PFAnalysis::pfcandidate_phi_
vector< float > pfcandidate_phi_
Definition: PFAnalysisNtuplizer.cc:252
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
PFAnalysis::gen_daughters_
vector< vector< int > > gen_daughters_
Definition: PFAnalysisNtuplizer.cc:224
PFAnalysis::pfcandidate_eta_
vector< float > pfcandidate_eta_
Definition: PFAnalysisNtuplizer.cc:251
PFAnalysis::trackingparticle_pt_
vector< float > trackingparticle_pt_
Definition: PFAnalysisNtuplizer.cc:154
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
PFAnalysis::trackingparticle_energy_
vector< float > trackingparticle_energy_
Definition: PFAnalysisNtuplizer.cc:158
PFAnalysis::element_eta_ecal_
vector< float > element_eta_ecal_
Definition: PFAnalysisNtuplizer.cc:235
edm::InputTag
Definition: InputTag.h:15
PFAnalysis::rechit_det_
vector< float > rechit_det_
Definition: PFAnalysisNtuplizer.cc:201
PFAnalysis::t_
TTree * t_
Definition: PFAnalysisNtuplizer.cc:146
reco::PFBlockElement::PS2
Definition: PFBlockElement.h:34
PFAnalysis::trackingparticle_mother_
vector< int > trackingparticle_mother_
Definition: PFAnalysisNtuplizer.cc:169
PFAnalysis::rechit_y_
vector< float > rechit_y_
Definition: PFAnalysisNtuplizer.cc:199
PFAnalysis::tracks_
edm::EDGetTokenT< edm::View< reco::Track > > tracks_
Definition: PFAnalysisNtuplizer.cc:141
PFAnalysis::trackingparticle_ovy_
vector< float > trackingparticle_ovy_
Definition: PFAnalysisNtuplizer.cc:165
PFAnalysis::rechit_phi_
vector< float > rechit_phi_
Definition: PFAnalysisNtuplizer.cc:204
PFAnalysis::simhit_x_
vector< float > simhit_x_
Definition: PFAnalysisNtuplizer.cc:187