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 = 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) |
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 32 of file HitParentTest.cc.
HitParentTest::HitParentTest | ( | const edm::ParameterSet & | ps | ) |
Definition at line 89 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 35 of file HitParentTest.cc.
|
overrideprotectedvirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 163 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 330 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 260 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 135 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 40 of file HitParentTest.cc.
|
overrideprotectedvirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 217 of file HitParentTest.cc.
References LEDCalibrationChannels::depth, detector, 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, jetUpdater_cfi::sort, total_num_apd_hits_seen, and totalHits.
|
inlineoverrideprotected |
Definition at line 42 of file HitParentTest.cc.
|
static |
Definition at line 124 of file HitParentTest.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 401 of file HitParentTest.cc.
References parentSimTrack(), SimVtx, and HLT_FULL_cff::track.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 416 of file HitParentTest.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, createfilelist::int, gpuVertexFinder::iv, class-composition::parent, SimTk, and SimVtx.
Referenced by analyzeAPDHits(), analyzeHits(), and getOldestParentVertex().
|
private |
Definition at line 393 of file HitParentTest.cc.
References SimTk.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 456 of file HitParentTest.cc.
References gpuVertexFinder::iv, class-composition::parent, SimTk, and SimVtx.
Referenced by analyzeAPDHits(), and analyzeHits().
|
private |
Definition at line 82 of file HitParentTest.cc.
Referenced by analyzeHits(), beginJob(), endJob(), and HitParentTest().
|
private |
Definition at line 56 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 83 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 56 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 56 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 56 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 56 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 86 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 86 of file HitParentTest.cc.
Referenced by ntupleDataFormat._RecoHitAdaptor::_hits(), analyzeHits(), and beginJob().
|
private |
Definition at line 86 of file HitParentTest.cc.
Referenced by analyzeHits(), and beginJob().
|
private |
Definition at line 85 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().
|
private |
Definition at line 84 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().
|
private |
Definition at line 85 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 73 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
Definition at line 66 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 70 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 80 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), and endJob().
|
private |
Definition at line 75 of file HitParentTest.cc.
Referenced by analyze(), analyzeAPDHits(), analyzeHits(), parentSimTrack(), simTrackPresent(), and validSimTrack().
|
private |
Definition at line 76 of file HitParentTest.cc.
Referenced by analyze(), analyzeAPDHits(), analyzeHits(), getOldestParentVertex(), parentSimTrack(), and validSimTrack().
|
private |
Definition at line 56 of file HitParentTest.cc.
Referenced by HitParentTest().
|
private |
Definition at line 57 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 58 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 59 of file HitParentTest.cc.
Referenced by analyze(), and HitParentTest().
|
private |
Definition at line 60 of file HitParentTest.cc.
Referenced by analyze(), and 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 |
error and other counters
Definition at line 65 of file HitParentTest.cc.
Referenced by analyzeAPDHits(), endJob(), and HitParentTest().
|
private |
Definition at line 84 of file HitParentTest.cc.
Referenced by analyzeHits(), endJob(), and HitParentTest().