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 | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Private Member Functions | |
void | analyzeAPDHits (const std::vector< PCaloHit > &, const edm::Handle< edm::SimTrackContainer > &, const edm::Handle< edm::SimVertexContainer > &, int depth) |
void | analyzeHits (const std::vector< PCaloHit > &, const edm::Handle< edm::SimTrackContainer > &, const edm::Handle< edm::SimVertexContainer > &, int type) |
math::XYZTLorentzVectorD | getOldestParentVertex (const edm::Handle< edm::SimTrackContainer > &, const edm::Handle< edm::SimVertexContainer > &, edm::SimTrackContainer::const_iterator track) |
edm::SimTrackContainer::const_iterator | parentSimTrack (const edm::Handle< edm::SimTrackContainer > &, const edm::Handle< edm::SimVertexContainer > &, edm::SimTrackContainer::const_iterator thisTrkItr) |
bool | simTrackPresent (const edm::Handle< edm::SimTrackContainer > &, int id) |
bool | validSimTrack (const edm::Handle< edm::SimTrackContainer > &, const edm::Handle< edm::SimVertexContainer > &, unsigned int simTkId, edm::SimTrackContainer::const_iterator thisTrkItr) |
Private Attributes | |
std::string | detector [7] |
const std::string | g4Label_ |
bool | histos |
const std::string | hitLabEB_ |
const std::string | hitLabEE_ |
const std::string | hitLabES_ |
const 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 |
const std::string | sourceLabel |
const edm::EDGetTokenT< edm::PCaloHitContainer > | tok_eb_ |
const edm::EDGetTokenT< edm::PCaloHitContainer > | tok_ee_ |
const edm::EDGetTokenT< edm::PCaloHitContainer > | tok_es_ |
const edm::EDGetTokenT< edm::PCaloHitContainer > | tok_hc_ |
const edm::EDGetTokenT< edm::SimTrackContainer > | tok_tk_ |
const 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 31 of file HitParentTest.cc.
HitParentTest::HitParentTest | ( | const edm::ParameterSet & | ps | ) |
Definition at line 98 of file HitParentTest.cc.
References detector, g4Label_, 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, AlCaHLTBitMon_QueryRunRegistry::string, total_num_apd_hits_seen, and totalHits.
|
inlineoverride |
Definition at line 34 of file HitParentTest.cc.
|
overrideprotectedvirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 171 of file HitParentTest.cc.
References analyzeAPDHits(), analyzeHits(), hcalRecHitTable_cff::depth, MillePedeFileConverter_cfg::e, edm::HandleBase::isValid(), tok_eb_, tok_ee_, tok_es_, tok_hc_, tok_tk_, and tok_vtx_.
|
private |
Definition at line 337 of file HitParentTest.cc.
References hcalRecHitTable_cff::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, simTrackPresent(), 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, l1ctLayer2EG_cff::id, match(), noGenParticle, noParent, noSimTrack, parentSimTrack(), simTrackPresent(), HcalDetId::subdet(), totalHits, and validSimTrack().
Referenced by analyze().
|
overrideprotectedvirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 143 of file HitParentTest.cc.
References detector, histos, hitRho, hitType, hitZ, mps_fire::i, Skims_PA_cff::name, compare::tfile, and runGCPTkAlMap::title.
|
inlineoverrideprotected |
Definition at line 39 of file HitParentTest.cc.
|
overrideprotectedvirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 221 of file HitParentTest.cc.
References hcalRecHitTable_cff::depth, detector, mps_fire::i, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, noGenParticle, noParent, noSimTrack, num_apd_hits_no_gen_particle, num_apd_hits_no_parent, num_apd_hits_no_simtrack, particle_type_count, jetUpdater_cfi::sort, total_num_apd_hits_seen, and totalHits.
|
inlineoverrideprotected |
Definition at line 41 of file HitParentTest.cc.
|
static |
Definition at line 132 of file HitParentTest.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 411 of file HitParentTest.cc.
References parentSimTrack(), and HLT_2023v12_cff::track.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 428 of file HitParentTest.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, and class-composition::parent.
Referenced by analyzeAPDHits(), analyzeHits(), and getOldestParentVertex().
|
private |
Definition at line 403 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 470 of file HitParentTest.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::iv, and class-composition::parent.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 91 of file HitParentTest.cc.
Referenced by analyzeHits(), beginJob(), endJob(), and HitParentTest().
|
private |
Definition at line 68 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 92 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 68 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 68 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 68 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 68 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 95 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 95 of file HitParentTest.cc.
Referenced by ntupleDataFormat._RecoHitAdaptor::_hits(), analyzeHits(), and beginJob().
|
private |
Definition at line 95 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 94 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().
|
private |
Definition at line 93 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().
|
private |
Definition at line 94 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 85 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
Definition at line 78 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 82 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 89 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), and endJob().
|
private |
Definition at line 68 of file HitParentTest.cc.
|
private |
Definition at line 69 of file HitParentTest.cc.
Referenced by analyze().
|
private |
Definition at line 70 of file HitParentTest.cc.
Referenced by analyze().
|
private |
Definition at line 71 of file HitParentTest.cc.
Referenced by analyze().
|
private |
Definition at line 72 of file HitParentTest.cc.
Referenced by analyze().
|
private |
Definition at line 73 of file HitParentTest.cc.
Referenced by analyze().
|
private |
Definition at line 74 of file HitParentTest.cc.
Referenced by analyze().
|
private |
error and other counters
Definition at line 77 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
Definition at line 93 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().