|
void | analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
| dEdxAnalyzer (const edm::ParameterSet &) |
|
void | endJob () override |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
double | mass (double P, double I) |
|
| ~dEdxAnalyzer () override |
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
virtual void | analyze (edm::Event const &, edm::EventSetup const &) |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
| DQMEDAnalyzer (DQMEDAnalyzer const &)=delete |
|
| DQMEDAnalyzer (DQMEDAnalyzer &&)=delete |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
|
| ~DQMEDAnalyzer () override=default |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducerBase | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
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 ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
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) |
|
edm::EDPutTokenT< DQMToken > | lumiToken_ |
|
edm::EDPutTokenT< DQMToken > | runToken_ |
|
Monitoring source for general quantities related to track dEdx.
Definition at line 35 of file dEdxAnalyzer.h.
Definition at line 164 of file dEdxAnalyzer.cc.
References GenericTriggerEventFlag::accept(), dEdxInputList_, dEdxMEsVector, dEdxTokenList_, doAllPlots_, doDeDxPlots_, genTriggerEventFlag_, edm::Event::getByToken(), HighPtThreshold, reco::TrackBase::highPurity, HIPdEdxMin, mps_fire::i, edm::HandleBase::isValid(), mass(), GenericTriggerEventFlag::on(), edm::Handle< T >::product(), lumiQTWidget::t, HiIsolationCommonParameters_cff::track, TrackHitMin, and trackToken_.
174 if(!trackCollectionHandle.
isValid())
return;
179 if(!dEdxObjectHandle.
isValid())
continue;
183 for(
unsigned int t=0;
t<trackCollectionHandle->size();
t++){
189 if( track->pt() >= 5.0 && track->numberOfValidHits()>
TrackHitMin){
191 dEdxMEsVector[
i].ME_MipDeDxNHits ->Fill(dEdxColl[track].numberOfMeasurements());
192 if (dEdxColl[track].numberOfMeasurements()!=0)
193 dEdxMEsVector[
i].ME_MipDeDxNSatHits->Fill((1.0*dEdxColl[track].numberOfSaturatedMeasurements())/dEdxColl[track].numberOfMeasurements());
199 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits ->Fill(dEdxColl[track].numberOfMeasurements());
edm::EDGetTokenT< reco::TrackCollection > trackToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< std::string > dEdxInputList_
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< dEdxMEs > dEdxMEsVector
double mass(double P, double I)
T const * product() const
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
std::vector< edm::EDGetTokenT< reco::DeDxDataValueMap > > dEdxTokenList_
Implements DQMEDAnalyzer.
Definition at line 70 of file dEdxAnalyzer.cc.
References DQMStore::IBooker::book1D(), conf_, dEdxC, dEdxInputList_, dEdxK, dEdxMEsVector, doAllPlots_, doDeDxPlots_, genTriggerEventFlag_, edm::ParameterSet::getParameter(), HighPtThreshold, HIPdEdxMin, histname, mps_fire::i, GenericTriggerEventFlag::initRun(), GenericTriggerEventFlag::on(), DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and TrackHitMin.
119 dEdxMEsVector[
i].ME_MipDeDx->setAxisTitle(
"dEdx of each MIP Track (MeV/cm)");
122 histname =
"MIP_NumberOfdEdxHitsPerTrack_";
124 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of dEdxHits of each MIP Track");
125 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of Tracks", 2);
127 histname =
"MIP_FractionOfSaturateddEdxHitsPerTrack_";
129 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Fraction of Saturated dEdxHits of each MIP Track");
130 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Number of Tracks", 2);
134 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"dEdx Mass of each MIP Track (GeV/c^{2})");
135 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
139 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"dEdx Mass of each HIP Track (GeV/c^{2})");
140 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
142 histname =
"MIPOfHighPt_dEdxPerTrack_";
144 dEdxMEsVector[
i].ME_MipHighPtDeDx->setAxisTitle(
"dEdx of each MIP (of High pT) Track (MeV/cm)");
145 dEdxMEsVector[
i].ME_MipHighPtDeDx->setAxisTitle(
"Number of Tracks", 2);
147 histname =
"MIPOfHighPt_NumberOfdEdxHitsPerTrack_";
149 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits->setAxisTitle(
"Number of dEdxHits of each MIP (of High pT) Track");
150 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits->setAxisTitle(
"Number of Tracks", 2);
T getParameter(std::string const &) const
std::vector< std::string > dEdxInputList_
MonitorElement * book1D(Args &&...args)
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< dEdxMEs > dEdxMEsVector
void setCurrentFolder(const std::string &fullpath)
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.