|
|
#include <MixCollectionValidation.h>
|
template<class T1 , class T2 > |
void | fillCaloHitTime (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
template<class T1 , class T2 > |
void | fillCaloHitTime (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
template<class T1 , class T2 > |
void | fillGenParticleMulti (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
template<class T1 , class T2 > |
void | fillGenParticleMulti (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
template<class T1 , class T2 > |
void | fillMultiplicity (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
template<class T1 , class T2 > |
void | fillMultiplicity (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
template<class T1 , class T2 > |
void | fillSimHitTime (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
template<class T1 , class T2 > |
void | fillSimHitTime (T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_) |
|
Definition at line 33 of file MixCollectionValidation.h.
◆ MixCollectionValidation()
MixCollectionValidation::MixCollectionValidation |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
◆ ~MixCollectionValidation()
MixCollectionValidation::~MixCollectionValidation |
( |
| ) |
|
|
override |
◆ analyze()
Reimplemented from DQMEDAnalyzer.
Definition at line 116 of file MixCollectionValidation.cc.
120 bool gotHepMCProduct;
124 if (gotHepMCProduct) {
125 std::unique_ptr<MixCollection<HepMCProduct>> hepMCProduct(
References CaloHitNrmap_, CaloHitTimemap_, crossingFrame_Hep_Token_, crossingFrame_PCaloHit_Tokens_, crossingFrame_PSimHit_Tokens_, crossingFrame_SimTr_Token_, crossingFrame_SimVtx_Token_, fillCaloHitTime(), fillGenParticleMulti(), fillMultiplicity(), fillSimHitTime(), HepMCProductTags_, mps_fire::i, iEvent, instance, createfilelist::int, nrHepMCProductH_, nrSimTrackH_, nrSimVertexH_, PCaloHitTags_, edm::Handle< T >::product(), PSimHitTags_, SimHitNrmap_, FastTrackerRecHitCombiner_cfi::simHits, SimHitTimemap_, TrackCandidateProducer_cfi::simTracks, SimTrackTags_, SimVertexTags_, and AlCaHLTBitMon_QueryRunRegistry::string.
◆ bookHistograms()
Implements DQMEDAnalyzer.
Definition at line 35 of file MixCollectionValidation.cc.
42 for (std::vector<std::string>::iterator it =
names.begin(); it !=
names.end(); ++it) {
44 if (!
pset.exists(
"type"))
47 std::vector<InputTag>
tags =
pset.getParameter<std::vector<InputTag>>(
"input");
49 if (
object ==
"HepMCProduct") {
59 }
else if (
object ==
"SimTrack") {
68 }
else if (
object ==
"SimVertex") {
78 }
else if (
object ==
"PSimHit") {
79 std::vector<std::string>
subdets =
pset.getParameter<std::vector<std::string>>(
"subdets");
95 }
else if (
object ==
"PCaloHit") {
96 std::vector<std::string>
subdets =
pset.getParameter<std::vector<std::string>>(
"subdets");
References dqm::implementation::IBooker::bookProfile(), CaloHitNrmap_, CaloHitTimemap_, crossingFrame_Hep_Token_, crossingFrame_PCaloHit_Tokens_, crossingFrame_PSimHit_Tokens_, crossingFrame_SimTr_Token_, crossingFrame_SimVtx_Token_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNames(), HepMCProductTags_, cuy::ii, HLT_FULL_cff::InputTag, label, maxbunch_, minbunch_, mixObjextsSet_, Skims_PA_cff::name, names, nbin_, nrHepMCProductH_, nrSimTrackH_, nrSimVertexH_, resolutioncreator_cfi::object, PCaloHitTags_, muonDTDigis_cfi::pset, PSimHitTags_, dqm::implementation::NavigatorBase::setCurrentFolder(), SimHitNrmap_, SimHitTimemap_, SimTrackTags_, SimVertexTags_, AlCaHLTBitMon_QueryRunRegistry::string, fireworks::subdets, triggerMatcherToHLTDebug_cfi::tags, and runGCPTkAlMap::title.
◆ fillCaloHitTime() [1/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillCaloHitTime |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ fillCaloHitTime() [2/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillCaloHitTime |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ fillGenParticleMulti() [1/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillGenParticleMulti |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ fillGenParticleMulti() [2/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillGenParticleMulti |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ fillMultiplicity() [1/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillMultiplicity |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ fillMultiplicity() [2/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillMultiplicity |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ fillSimHitTime() [1/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillSimHitTime |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ fillSimHitTime() [2/2]
template<class T1 , class T2 >
void MixCollectionValidation::fillSimHitTime |
( |
T1 & |
theItr_, |
|
|
T2 & |
theColl_, |
|
|
MonitorElement * |
theProfile_ |
|
) |
| |
|
private |
◆ CaloHitNrmap_
std::map<std::string, MonitorElement *> MixCollectionValidation::CaloHitNrmap_ |
|
private |
◆ CaloHitTimemap_
std::map<std::string, MonitorElement *> MixCollectionValidation::CaloHitTimemap_ |
|
private |
◆ crossingFrame_Hep_Token_
◆ crossingFrame_PCaloHit_Tokens_
◆ crossingFrame_PSimHit_Tokens_
◆ crossingFrame_SimTr_Token_
◆ crossingFrame_SimVtx_Token_
◆ HepMCProductTags_
std::vector<edm::InputTag> MixCollectionValidation::HepMCProductTags_ |
|
private |
◆ maxbunch_
int MixCollectionValidation::maxbunch_ |
|
private |
◆ minbunch_
int MixCollectionValidation::minbunch_ |
|
private |
◆ mixObjextsSet_
◆ nbin_
int MixCollectionValidation::nbin_ |
|
private |
◆ nrHepMCProductH_
◆ nrSimTrackH_
◆ nrSimVertexH_
◆ outputFile_
std::string MixCollectionValidation::outputFile_ |
|
private |
◆ PCaloHitTags_
std::vector<edm::InputTag> MixCollectionValidation::PCaloHitTags_ |
|
private |
◆ PSimHitTags_
◆ SimHitNrmap_
std::map<std::string, MonitorElement *> MixCollectionValidation::SimHitNrmap_ |
|
private |
◆ SimHitTimemap_
std::map<std::string, MonitorElement *> MixCollectionValidation::SimHitTimemap_ |
|
private |
◆ SimTrackTags_
std::vector<edm::InputTag> MixCollectionValidation::SimTrackTags_ |
|
private |
◆ SimVertexTags_
std::vector<edm::InputTag> MixCollectionValidation::SimVertexTags_ |
|
private |
◆ verbose_
bool MixCollectionValidation::verbose_ |
|
private |
std::vector< edm::InputTag > SimVertexTags_
T const * product() const
void fillGenParticleMulti(T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_)
static const std::string subdets[7]
virtual void setCurrentFolder(std::string const &fullpath)
edm::EDGetTokenT< CrossingFrame< SimVertex > > crossingFrame_SimVtx_Token_
T getUntrackedParameter(std::string const &, T const &) const
Log< level::Warning, false > LogWarning
void fillSimHitTime(T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_)
edm::EDGetTokenT< CrossingFrame< SimTrack > > crossingFrame_SimTr_Token_
const std::string names[nVars_]
std::vector< edm::EDGetTokenT< CrossingFrame< PCaloHit > > > crossingFrame_PCaloHit_Tokens_
edm::EDGetTokenT< CrossingFrame< edm::HepMCProduct > > crossingFrame_Hep_Token_
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
MonitorElement * nrSimTrackH_
edm::ParameterSet mixObjextsSet_
std::vector< std::string > getParameterNames() const
void fillMultiplicity(T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_)
MonitorElement * nrHepMCProductH_
static PFTauRenderPlugin instance
void fillCaloHitTime(T1 &theItr_, T2 &theColl_, MonitorElement *theProfile_)
std::vector< edm::InputTag > PCaloHitTags_
std::vector< edm::InputTag > PSimHitTags_
std::map< std::string, MonitorElement * > SimHitTimemap_
std::vector< edm::EDGetTokenT< CrossingFrame< PSimHit > > > crossingFrame_PSimHit_Tokens_
std::map< std::string, MonitorElement * > CaloHitTimemap_
T getParameter(std::string const &) const
std::map< std::string, MonitorElement * > SimHitNrmap_
std::vector< edm::InputTag > SimTrackTags_
std::map< std::string, MonitorElement * > CaloHitNrmap_
std::vector< edm::InputTag > HepMCProductTags_
MonitorElement * nrSimVertexH_