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) |
Protected Member Functions | |
void | analyze (const edm::Event &e, const edm::EventSetup &c) override |
void | beginJob () override |
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
void | endJob () override |
void | endRun (edm::Run const &, edm::EventSetup const &) override |
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> | |
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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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) |
Private Member Functions | |
void | analyzeAPDHits (const std::vector< PCaloHit > &, int depth) |
void | analyzeHits (const std::vector< PCaloHit > &, int type) |
math::XYZTLorentzVectorD | getOldestParentVertex (edm::SimTrackContainer::const_iterator track) |
edm::SimTrackContainer::const_iterator | parentSimTrack (edm::SimTrackContainer::const_iterator thisTrkItr) |
bool | simTrackPresent (int id) |
bool | validSimTrack (unsigned int simTkId, edm::SimTrackContainer::const_iterator thisTrkItr) |
Private Attributes | |
std::string | detector [7] |
std::string | g4Label |
bool | histos |
std::string | hitLabEB |
std::string | hitLabEE |
std::string | hitLabES |
std::string | hitLabHC |
TH1F * | hitRho [7] |
TH1F * | hitType [7] |
TH1F * | hitZ [7] |
unsigned int | noGenParticle [7] |
unsigned int | noParent [7] |
unsigned int | noSimTrack [7] |
unsigned int | num_apd_hits_no_gen_particle [2] |
unsigned int | num_apd_hits_no_parent [2] |
unsigned int | num_apd_hits_no_simtrack [2] |
std::map< int, unsigned > | particle_type_count |
edm::Handle< edm::SimTrackContainer > | SimTk |
edm::Handle< edm::SimVertexContainer > | SimVtx |
std::string | sourceLabel |
edm::EDGetTokenT< edm::PCaloHitContainer > | tok_eb_ |
edm::EDGetTokenT< edm::PCaloHitContainer > | tok_ee_ |
edm::EDGetTokenT< edm::PCaloHitContainer > | tok_es_ |
edm::EDGetTokenT< edm::PCaloHitContainer > | tok_hc_ |
edm::EDGetTokenT< edm::SimTrackContainer > | tok_tk_ |
edm::EDGetTokenT< edm::SimVertexContainer > | tok_vtx_ |
unsigned int | total_num_apd_hits_seen [2] |
unsigned int | totalHits [7] |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Definition at line 36 of file HitParentTest.cc.
HitParentTest::HitParentTest | ( | const edm::ParameterSet & | ps | ) |
Definition at line 93 of file HitParentTest.cc.
References detector, g4Label, edm::ParameterSet::getUntrackedParameter(), hitLabEB, hitLabEE, hitLabES, hitLabHC, mps_fire::i, TFileService::kSharedResource, noGenParticle, noParent, noSimTrack, num_apd_hits_no_gen_particle, num_apd_hits_no_parent, num_apd_hits_no_simtrack, sourceLabel, AlCaHLTBitMon_QueryRunRegistry::string, tok_eb_, tok_ee_, tok_es_, tok_hc_, tok_tk_, tok_vtx_, total_num_apd_hits_seen, and totalHits.
|
inlineoverride |
Definition at line 39 of file HitParentTest.cc.
|
overrideprotectedvirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 167 of file HitParentTest.cc.
References analyzeAPDHits(), analyzeHits(), LEDCalibrationChannels::depth, MillePedeFileConverter_cfg::e, edm::HandleBase::isValid(), SimTk, SimVtx, tok_eb_, tok_ee_, tok_es_, tok_hc_, tok_tk_, and tok_vtx_.
|
private |
Definition at line 334 of file HitParentTest.cc.
References LEDCalibrationChannels::depth, newFWLiteAna::found, getOldestParentVertex(), hfClusterShapes_cfi::hits, match(), num_apd_hits_no_gen_particle, num_apd_hits_no_parent, num_apd_hits_no_simtrack, parentSimTrack(), particle_type_count, SimTk, simTrackPresent(), SimVtx, total_num_apd_hits_seen, and validSimTrack().
Referenced by analyze().
|
private |
performs some checks on hits
Definition at line 264 of file HitParentTest.cc.
References detector, RemoveAddSevLevel::flag, newFWLiteAna::found, getOldestParentVertex(), HcalEndcap, HcalForward, HcalOuter, histos, hitRho, hfClusterShapes_cfi::hits, hitType, hitZ, triggerObjects_cff::id, match(), noGenParticle, noParent, noSimTrack, parentSimTrack(), SimTk, simTrackPresent(), SimVtx, HcalDetId::subdet(), totalHits, and validSimTrack().
Referenced by analyze().
|
overrideprotectedvirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 139 of file HitParentTest.cc.
References detector, histos, hitRho, hitType, hitZ, mps_fire::i, Skims_PA_cff::name, compare::tfile, and overlapproblemtsosanalyzer_cfi::title.
|
inlineoverrideprotected |
Definition at line 44 of file HitParentTest.cc.
|
overrideprotectedvirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 221 of file HitParentTest.cc.
References LEDCalibrationChannels::depth, detector, dqm-mbProfile::format, mps_fire::i, noGenParticle, noParent, noSimTrack, num_apd_hits_no_gen_particle, num_apd_hits_no_parent, num_apd_hits_no_simtrack, particle_type_count, total_num_apd_hits_seen, and totalHits.
|
inlineoverrideprotected |
Definition at line 46 of file HitParentTest.cc.
|
static |
Definition at line 128 of file HitParentTest.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 405 of file HitParentTest.cc.
References parentSimTrack(), SimVtx, and HLT_2018_cff::track.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 420 of file HitParentTest.cc.
References begin, ALCARECOTkAlJpsiMuMu_cff::charge, createfilelist::int, class-composition::parent, SimTk, and SimVtx.
Referenced by analyzeAPDHits(), analyzeHits(), and getOldestParentVertex().
|
private |
Definition at line 397 of file HitParentTest.cc.
References SimTk.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 460 of file HitParentTest.cc.
References begin, class-composition::parent, SimTk, and SimVtx.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 86 of file HitParentTest.cc.
Referenced by analyzeHits(), beginJob(), endJob(), and HitParentTest().
|
private |
Definition at line 60 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 87 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 60 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 60 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 60 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 60 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 90 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 90 of file HitParentTest.cc.
Referenced by ntupleDataFormat._RecoHitAdaptor::_hits(), analyzeHits(), and beginJob().
|
private |
Definition at line 90 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 89 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().
|
private |
Definition at line 88 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().
|
private |
Definition at line 89 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().
|
private |
number of APD hits for which no generator particle was found
Definition at line 77 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
Definition at line 70 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
number of apd hits for which the parent sim track id was not found in the simtrack collection.
Definition at line 74 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
'histogram' of types of particles going through the APD. Maps from numeric particle code to the number of occurences.
Definition at line 84 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), and endJob().
|
private |
Definition at line 79 of file HitParentTest.cc.
Referenced by analyze(), analyzeAPDHits(), analyzeHits(), parentSimTrack(), simTrackPresent(), and validSimTrack().
|
private |
Definition at line 80 of file HitParentTest.cc.
Referenced by analyze(), analyzeAPDHits(), analyzeHits(), getOldestParentVertex(), parentSimTrack(), and validSimTrack().
|
private |
Definition at line 60 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 61 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 62 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 63 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 64 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 65 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 66 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
error and other counters
Definition at line 69 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
Definition at line 88 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().