22 : m_beamSpotTag(cfg.getUntrackedParameter<
edm::InputTag>(
"beamSpotTag",
edm::InputTag(
"offlineBeamSpot")))
23 , m_iteration(0), mp_tracker(0), mp_muon(0), mp_store(0)
61 event(iEvent, iSetup, iTrajTracks);
75 std::vector<std::string>
dirs;
78 if (dir.substr(lastPos, pos - lastPos) ==
std::string(
"iterN")) {
80 lastPos = dir.find_first_not_of(
"/", pos);
81 pos = dir.find_first_of(
"/", lastPos);
84 while (std::string::npos != pos || std::string::npos != lastPos) {
85 dirs.push_back(dir.substr(lastPos, pos - lastPos));
86 lastPos = dir.find_first_not_of(
"/", pos);
87 pos = dir.find_first_of(
"/", lastPos);
94 std::vector<std::string> partial;
96 for (
unsigned int i = 0;
i < dirs.size();
i++) {
97 partial.push_back(dirs[
i]);
98 if (theMap->find(partial) == theMap->end()) {
101 last = (*theMap)[partial];
109 return directory(dir)->
make<TH1F>(name.c_str(), title.c_str(), nchX, lowX, highX);
116 return directory(dir)->
make<TProfile>(name.c_str(), title.c_str(), nchX, lowX, highX,
option);
119 return directory(dir)->
make<TProfile>(name.c_str(), title.c_str(), nchX, lowX, highX, lowY, highY,
option);
126 return directory(dir)->
make<TH2F>(name.c_str(), title.c_str(), nchX, lowX, highX, nchY, lowY, highY);
AlignmentParameterStore * pStore()
std::map< std::vector< std::string >, TFileDirectory * > m_baseDirMap
virtual void event(const edm::Event &iEvent, const edm::EventSetup &iSetup, const ConstTrajTrackPairCollection &iTrajTracks)
Called for each event (by "run()"): may be reimplemented.
TH2F * book2D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
std::map< std::vector< std::string >, TFileDirectory * > m_iterDirMap
AlignmentParameterStore * mp_store
AlignmentMonitorBase(const edm::ParameterSet &cfg, std::string name)
Constructor.
AlignableTracker * pTracker()
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)
T * make(const Args &...args) const
make new ROOT object
std::vector< ConstTrajTrackPair > ConstTrajTrackPairCollection
TH1F * book1D(std::string dir, std::string name, std::string title, int nchX, double lowX, double highX)
AlignableTracker * mp_tracker
void beginOfJob(AlignableTracker *pTracker, AlignableMuon *pMuon, AlignmentParameterStore *pStore)
Called at beginning of job: don't reimplement.
virtual void afterAlignment()
AlignableNavigator * mp_navigator
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
TFileDirectory mkdir(const std::string &dir, const std::string &descr="")
create a new subdirectory
void startingNewLoop()
Called at beginning of loop: don't reimplement.
void duringLoop(const edm::Event &iEvent, const edm::EventSetup &iSetup, const ConstTrajTrackPairCollection &iTrajTracks)
Called for each event: don't reimplement.
virtual void book()=0
Book or retrieve histograms; MUST be reimplemented.
Constructor of the full muon geometry.
void endOfLoop()
Called at end of loop: don't reimplement.