#include <TrackingMaterialAnalyser.h>
Public Member Functions | |
TrackingMaterialAnalyser (const edm::ParameterSet &) | |
virtual | ~TrackingMaterialAnalyser () |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Types | |
enum | SplitMode { NEAREST_LAYER, INNER_LAYER, OUTER_LAYER, UNDEFINED } |
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
void | beginJob () |
void | endJob () |
int | findLayer (const MaterialAccountingDetector &detector) |
void | saveLayerPlots () |
void | saveParameters (const char *name) |
void | saveXml (const char *name) |
void | split (MaterialAccountingTrack &track) |
Private Attributes | |
std::vector< std::string > | m_groupNames |
std::vector < MaterialAccountingGroup * > | m_groups |
edm::EDGetTokenT< std::vector < MaterialAccountingTrack > > | m_materialToken |
TrackingMaterialPlotter * | m_plotter |
bool | m_saveDetailedPlots |
bool | m_saveParameters |
bool | m_saveSummaryPlot |
bool | m_saveXml |
bool | m_skipAfterLastDetector |
bool | m_skipBeforeFirstDetector |
SplitMode | m_splitMode |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
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) |
Definition at line 16 of file TrackingMaterialAnalyser.h.
|
private |
Enumerator | |
---|---|
NEAREST_LAYER | |
INNER_LAYER | |
OUTER_LAYER | |
UNDEFINED |
Definition at line 23 of file TrackingMaterialAnalyser.h.
TrackingMaterialAnalyser::TrackingMaterialAnalyser | ( | const edm::ParameterSet & | iPSet | ) |
Definition at line 30 of file TrackingMaterialAnalyser.cc.
References Exception, edm::ParameterSet::getParameter(), INNER_LAYER, edm::errors::LogicError, m_groupNames, m_materialToken, m_plotter, m_saveDetailedPlots, m_saveParameters, m_saveSummaryPlot, m_saveXml, m_skipAfterLastDetector, m_skipBeforeFirstDetector, m_splitMode, NEAREST_LAYER, NULL, OUTER_LAYER, AlCaHLTBitMon_QueryRunRegistry::string, and UNDEFINED.
|
virtual |
Definition at line 59 of file TrackingMaterialAnalyser.cc.
References m_plotter.
|
privatevirtual |
Implements edm::EDAnalyzer.
Definition at line 137 of file TrackingMaterialAnalyser.cc.
References end, edm::EventSetup::get(), i, LogDebug, m_groupNames, m_groups, m_materialToken, split(), and lumiQTWidget::t.
|
inlineprivatevirtual |
|
privatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 117 of file TrackingMaterialAnalyser.cc.
References m_plotter, m_saveDetailedPlots, m_saveParameters, m_saveSummaryPlot, m_saveXml, saveLayerPlots(), saveParameters(), and saveXml().
|
private |
Definition at line 330 of file TrackingMaterialAnalyser.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, i, cmsHarvester::index, m_groups, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), MaterialAccountingDetector::position(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by split().
|
private |
Definition at line 108 of file TrackingMaterialAnalyser.cc.
References i, m_groups, and MaterialAccountingGroup::savePlots().
Referenced by endJob().
|
private |
Definition at line 66 of file TrackingMaterialAnalyser.cc.
References MaterialAccountingGroup::averageEnergyLoss(), MaterialAccountingGroup::averageLength(), MaterialAccountingGroup::averageRadiationLengths(), gather_cfg::cout, cmsPerfStripChart::format, i, m_groups, MaterialAccountingGroup::name(), HLT_25ns10e33_v2_cff::parameters, MaterialAccountingGroup::sigmaEnergyLoss(), MaterialAccountingGroup::sigmaLength(), MaterialAccountingGroup::sigmaRadiationLengths(), and MaterialAccountingGroup::tracks().
Referenced by endJob().
|
private |
Definition at line 91 of file TrackingMaterialAnalyser.cc.
References MaterialAccountingGroup::averageEnergyLoss(), MaterialAccountingGroup::averageRadiationLengths(), i, m_groups, and MaterialAccountingGroup::name().
Referenced by endJob().
|
private |
Definition at line 174 of file TrackingMaterialAnalyser.cc.
References begin, ecal_dqm_sourceclient-live_cfg::cerr, MuonGeometrySanityCheck_cfi::detectors(), MaterialAccountingTrack::detectors(), end, Exception, findLayer(), HLT_25ns10e33_v2_cff::fraction, watchdog::group, i, cmsHarvester::index, INNER_LAYER, MaterialAccountingStep::length(), edm::errors::LogicError, m_groups, m_plotter, m_skipAfterLastDetector, m_skipBeforeFirstDetector, m_splitMode, NEAREST_LAYER, or, OUTER_LAYER, contentValuesFiles::parts, TrackingMaterialPlotter::plotSegmentInLayer(), TrackingMaterialPlotter::plotSegmentUnassigned(), MaterialAccountingStep::split(), relval_parameters_module::step, MaterialAccountingTrack::steps(), MaterialAccountingTrack::summary(), and UNDEFINED.
Referenced by analyze().
|
private |
Definition at line 50 of file TrackingMaterialAnalyser.h.
Referenced by analyze(), and TrackingMaterialAnalyser().
|
private |
Definition at line 49 of file TrackingMaterialAnalyser.h.
Referenced by analyze(), findLayer(), saveLayerPlots(), saveParameters(), saveXml(), and split().
|
private |
Definition at line 41 of file TrackingMaterialAnalyser.h.
Referenced by analyze(), and TrackingMaterialAnalyser().
|
private |
Definition at line 51 of file TrackingMaterialAnalyser.h.
Referenced by endJob(), split(), TrackingMaterialAnalyser(), and ~TrackingMaterialAnalyser().
|
private |
Definition at line 46 of file TrackingMaterialAnalyser.h.
Referenced by endJob(), and TrackingMaterialAnalyser().
|
private |
Definition at line 47 of file TrackingMaterialAnalyser.h.
Referenced by endJob(), and TrackingMaterialAnalyser().
|
private |
Definition at line 45 of file TrackingMaterialAnalyser.h.
Referenced by endJob(), and TrackingMaterialAnalyser().
|
private |
Definition at line 48 of file TrackingMaterialAnalyser.h.
Referenced by endJob(), and TrackingMaterialAnalyser().
|
private |
Definition at line 43 of file TrackingMaterialAnalyser.h.
Referenced by split(), and TrackingMaterialAnalyser().
|
private |
Definition at line 44 of file TrackingMaterialAnalyser.h.
Referenced by split(), and TrackingMaterialAnalyser().
|
private |
Definition at line 42 of file TrackingMaterialAnalyser.h.
Referenced by split(), and TrackingMaterialAnalyser().