#include <Alignment/CommonAlignmentMonitor/interface/AlignmentMonitorBase.h>
Public Types | |
typedef std::pair< const Trajectory *, const reco::Track * > | ConstTrajTrackPair |
typedef std::vector< ConstTrajTrackPair > | ConstTrajTrackPairCollection |
Public Member Functions | |
virtual void | afterAlignment () |
AlignmentMonitorBase (const edm::ParameterSet &cfg, std::string name) | |
Constructor. More... | |
void | beginOfJob (AlignableTracker *pTracker, AlignableMuon *pMuon, AlignmentParameterStore *pStore) |
Called at beginning of job: don't reimplement. More... | |
virtual void | book ()=0 |
Book or retrieve histograms; MUST be reimplemented. More... | |
void | duringLoop (const edm::Event &iEvent, const edm::EventSetup &iSetup, const ConstTrajTrackPairCollection &iTrajTracks) |
Called for each event: don't reimplement. More... | |
void | endOfJob () |
Called at end of processing: don't implement. More... | |
void | endOfLoop () |
Called at end of loop: don't reimplement. More... | |
virtual void | event (const edm::Event &iEvent, const edm::EventSetup &iSetup, const ConstTrajTrackPairCollection &iTrajTracks) |
Called for each event (by "run()"): may be reimplemented. More... | |
void | startingNewLoop () |
Called at beginning of loop: don't reimplement. More... | |
virtual | ~AlignmentMonitorBase () |
Destructor. More... | |
Protected Member Functions | |
TH1F * | book1D (std::string dir, std::string name, std::string title, int nchX, double lowX, double highX) |
TH2F * | book2D (std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY) |
TProfile * | bookProfile (std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY=1, double lowY=0., double highY=0., const char *option="s") |
TFileDirectory * | directory (std::string dir) |
int | iteration () |
AlignableMuon * | pMuon () |
AlignableNavigator * | pNavigator () |
AlignmentParameterStore * | pStore () |
AlignableTracker * | pTracker () |
Protected Attributes | |
const edm::InputTag | m_beamSpotTag |
Private Member Functions | |
AlignmentMonitorBase (const AlignmentMonitorBase &)=delete | |
const AlignmentMonitorBase & | operator= (const AlignmentMonitorBase &)=delete |
Private Attributes | |
std::map< std::vector< std::string >, TFileDirectory * > | m_baseDirMap |
int | m_iteration |
std::map< std::vector< std::string >, TFileDirectory * > | m_iterDirMap |
AlignableMuon * | mp_muon |
AlignableNavigator * | mp_navigator |
AlignmentParameterStore * | mp_store |
AlignableTracker * | mp_tracker |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 42 of file AlignmentMonitorBase.h.
typedef std::pair<const Trajectory *, const reco::Track *> AlignmentMonitorBase::ConstTrajTrackPair |
Definition at line 44 of file AlignmentMonitorBase.h.
typedef std::vector<ConstTrajTrackPair> AlignmentMonitorBase::ConstTrajTrackPairCollection |
Definition at line 45 of file AlignmentMonitorBase.h.
AlignmentMonitorBase::AlignmentMonitorBase | ( | const edm::ParameterSet & | cfg, |
std::string | name | ||
) |
Constructor.
Definition at line 20 of file AlignmentMonitorBase.cc.
References m_baseDirMap, and TFileService::mkdir().
|
inlinevirtual |
Destructor.
Definition at line 51 of file AlignmentMonitorBase.h.
References beginOfJob(), duringLoop(), endOfLoop(), iEvent, pMuon(), pStore(), pTracker(), and startingNewLoop().
|
privatedelete |
|
inlinevirtual |
Called after updating AlignableTracker and AlignableMuon (by "endOfLoop()"): may be reimplemented
Reimplemented in AlignmentMonitorMuonSystemMap1D, AlignmentMonitorMuonResiduals, AlignmentMonitorTracksFromTrajectories, and AlignmentMonitorTemplate.
Definition at line 82 of file AlignmentMonitorBase.h.
References book1D(), book2D(), bookProfile(), DeadROC_duringRun::dir, directory(), Skims_PA_cff::name, fileinputsource_cfi::option, AlCaHLTBitMon_QueryRunRegistry::string, and overlapproblemtsosanalyzer_cfi::title.
Referenced by endOfLoop().
void AlignmentMonitorBase::beginOfJob | ( | AlignableTracker * | pTracker, |
AlignableMuon * | pMuon, | ||
AlignmentParameterStore * | pStore | ||
) |
Called at beginning of job: don't reimplement.
Definition at line 30 of file AlignmentMonitorBase.cc.
References mp_muon, mp_navigator, mp_store, mp_tracker, pMuon(), pStore(), and pTracker().
Referenced by ~AlignmentMonitorBase().
|
pure virtual |
Book or retrieve histograms; MUST be reimplemented.
Implemented in AlignmentMonitorTracksFromTrajectories, AlignmentMonitorMuonResiduals, AlignmentMonitorMuonSystemMap1D, AlignmentMonitorMuonVsCurvature, AlignmentMonitorSegmentDifferences, AlignmentMonitorGeneric, AlignmentMonitorTemplate, and AlignmentMonitorSurvey.
Referenced by endOfJob(), and startingNewLoop().
|
protected |
Use this every time you book a histogram (so that AlignmentMonitorBase can find your histograms in a collector (parallel-processing) job)
Definition at line 107 of file AlignmentMonitorBase.cc.
References directory(), and TFileDirectory::make().
Referenced by afterAlignment(), AlignmentMonitorTemplate::book(), AlignmentMonitorGeneric::book(), AlignmentMonitorMuonResiduals::book(), AlignmentMonitorMuonVsCurvature::book(), AlignmentMonitorSegmentDifferences::book(), AlignmentMonitorTracksFromTrajectories::book(), and AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::MuonSystemMapPlot1D().
|
protected |
Definition at line 129 of file AlignmentMonitorBase.cc.
References directory(), and TFileDirectory::make().
Referenced by afterAlignment(), AlignmentMonitorMuonVsCurvature::book(), and AlignmentMonitorMuonSystemMap1D::MuonSystemMapPlot1D::MuonSystemMapPlot1D().
|
protected |
Definition at line 112 of file AlignmentMonitorBase.cc.
References directory(), TFileDirectory::make(), and fileinputsource_cfi::option.
Referenced by afterAlignment(), AlignmentMonitorSegmentDifferences::book(), and AlignmentMonitorMuonVsCurvature::book().
|
protected |
Definition at line 71 of file AlignmentMonitorBase.cc.
References heppy_check::dirs, mps_fire::i, dqmdumpme::last, m_baseDirMap, m_iterDirMap, TFileDirectory::mkdir(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by afterAlignment(), AlignmentMonitorSurvey::book(), AlignmentMonitorMuonResiduals::book(), book1D(), book2D(), and bookProfile().
void AlignmentMonitorBase::duringLoop | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup, | ||
const ConstTrajTrackPairCollection & | iTrajTracks | ||
) |
Called for each event: don't reimplement.
Definition at line 63 of file AlignmentMonitorBase.cc.
References event().
Referenced by ~AlignmentMonitorBase().
|
inline |
Called at end of processing: don't implement.
Definition at line 68 of file AlignmentMonitorBase.h.
References book().
void AlignmentMonitorBase::endOfLoop | ( | ) |
Called at end of loop: don't reimplement.
Definition at line 69 of file AlignmentMonitorBase.cc.
References afterAlignment().
Referenced by ~AlignmentMonitorBase().
|
inlinevirtual |
Called for each event (by "run()"): may be reimplemented.
Reimplemented in AlignmentMonitorMuonSystemMap1D, AlignmentMonitorMuonVsCurvature, AlignmentMonitorSegmentDifferences, AlignmentMonitorTracksFromTrajectories, AlignmentMonitorMuonResiduals, AlignmentMonitorGeneric, AlignmentMonitorTemplate, and AlignmentMonitorSurvey.
Definition at line 76 of file AlignmentMonitorBase.h.
Referenced by Types.EventID::cppID(), and duringLoop().
|
inlineprotected |
Definition at line 110 of file AlignmentMonitorBase.h.
References m_iteration.
Referenced by AlignmentMonitorTemplate::afterAlignment(), AlignmentMonitorTemplate::event(), and startingNewLoop().
|
privatedelete |
|
inlineprotected |
Definition at line 112 of file AlignmentMonitorBase.h.
References mp_muon.
Referenced by AlignmentMonitorMuonResiduals::afterAlignment(), beginOfJob(), AlignmentMonitorSurvey::book(), AlignmentMonitorGeneric::book(), AlignmentMonitorMuonResiduals::book(), and ~AlignmentMonitorBase().
|
inlineprotected |
Definition at line 114 of file AlignmentMonitorBase.h.
References mp_navigator.
Referenced by AlignmentMonitorTemplate::event(), AlignmentMonitorGeneric::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorMuonVsCurvature::event(), AlignmentMonitorMuonSystemMap1D::event(), and AlignmentMonitorSegmentDifferences::event().
|
inlineprotected |
Definition at line 113 of file AlignmentMonitorBase.h.
References mp_store.
Referenced by beginOfJob(), AlignmentMonitorSurvey::book(), AlignmentMonitorTemplate::book(), AlignmentMonitorGeneric::book(), and ~AlignmentMonitorBase().
|
inlineprotected |
Definition at line 111 of file AlignmentMonitorBase.h.
References mp_tracker.
Referenced by beginOfJob(), AlignmentMonitorSurvey::book(), AlignmentMonitorGeneric::book(), and ~AlignmentMonitorBase().
void AlignmentMonitorBase::startingNewLoop | ( | ) |
Called at beginning of loop: don't reimplement.
Definition at line 45 of file AlignmentMonitorBase.cc.
References book(), TrackerOfflineValidation_Dqm_cff::dirName, mps_fire::i, iteration(), m_baseDirMap, m_iteration, m_iterDirMap, and genParticles_cff::map.
Referenced by ~AlignmentMonitorBase().
|
private |
Definition at line 130 of file AlignmentMonitorBase.h.
Referenced by AlignmentMonitorBase(), directory(), and startingNewLoop().
|
protected |
Definition at line 116 of file AlignmentMonitorBase.h.
Referenced by AlignmentMonitorMuonSystemMap1D::event(), AlignmentMonitorSegmentDifferences::event(), and AlignmentMonitorMuonVsCurvature::event().
|
private |
Definition at line 124 of file AlignmentMonitorBase.h.
Referenced by iteration(), and startingNewLoop().
|
private |
Definition at line 130 of file AlignmentMonitorBase.h.
Referenced by directory(), and startingNewLoop().
|
private |
Definition at line 126 of file AlignmentMonitorBase.h.
Referenced by beginOfJob(), and pMuon().
|
private |
Definition at line 128 of file AlignmentMonitorBase.h.
Referenced by beginOfJob(), and pNavigator().
|
private |
Definition at line 127 of file AlignmentMonitorBase.h.
Referenced by beginOfJob(), and pStore().
|
private |
Definition at line 125 of file AlignmentMonitorBase.h.
Referenced by beginOfJob(), and pTracker().