Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kCanRebin is replaced with SetCanExtend in online beamspot code for dqm #9416

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 12 additions & 12 deletions DQM/BeamMonitor/plugins/BeamMonitor.cc
Expand Up @@ -161,7 +161,7 @@ void BeamMonitor::beginJob() {

h_vx_vy = dbe_->book2D("trk_vx_vy","Vertex (PCA) position of selected tracks",vxBin,vxMin,vxMax,vxBin,vxMin,vxMax);
h_vx_vy->getTH2F()->SetOption("COLZ");
// h_vx_vy->getTH1()->SetBit(TH1::kCanRebin);
// h_vx_vy->getTH1()->SetCanExtend(TH1::kAllAxes);
h_vx_vy->setAxisTitle("x coordinate of input track at PCA (cm)",1);
h_vx_vy->setAxisTitle("y coordinate of input track at PCA (cm)",2);

Expand Down Expand Up @@ -244,7 +244,7 @@ void BeamMonitor::beginJob() {
histName += "_all";
histTitle += " all";
hs[histName] = dbe_->book1D(histName,histTitle,40,0.5,40.5);
hs[histName]->getTH1()->SetBit(TH1::kCanRebin);
hs[histName]->getTH1()->SetCanExtend(TH1::kAllAxes);
hs[histName]->setAxisTitle(xtitle,1);
hs[histName]->setAxisTitle(ytitle,2);
hs[histName]->getTH1()->SetOption("E1");
Expand Down Expand Up @@ -272,27 +272,27 @@ void BeamMonitor::beginJob() {

h_x0 = dbe_->book1D("BeamMonitorFeedBack_x0","x coordinate of beam spot (Fit)",100,-0.01,0.01);
h_x0->setAxisTitle("x_{0} (cm)",1);
h_x0->getTH1()->SetBit(TH1::kCanRebin);
h_x0->getTH1()->SetCanExtend(TH1::kAllAxes);

h_y0 = dbe_->book1D("BeamMonitorFeedBack_y0","y coordinate of beam spot (Fit)",100,-0.01,0.01);
h_y0->setAxisTitle("y_{0} (cm)",1);
h_y0->getTH1()->SetBit(TH1::kCanRebin);
h_y0->getTH1()->SetCanExtend(TH1::kAllAxes);

h_z0 = dbe_->book1D("BeamMonitorFeedBack_z0","z coordinate of beam spot (Fit)",dzBin,dzMin,dzMax);
h_z0->setAxisTitle("z_{0} (cm)",1);
h_z0->getTH1()->SetBit(TH1::kCanRebin);
h_z0->getTH1()->SetCanExtend(TH1::kAllAxes);

h_sigmaX0 = dbe_->book1D("BeamMonitorFeedBack_sigmaX0","sigma x0 of beam spot (Fit)",100,0,0.05);
h_sigmaX0->setAxisTitle("#sigma_{X_{0}} (cm)",1);
h_sigmaX0->getTH1()->SetBit(TH1::kCanRebin);
h_sigmaX0->getTH1()->SetCanExtend(TH1::kAllAxes);

h_sigmaY0 = dbe_->book1D("BeamMonitorFeedBack_sigmaY0","sigma y0 of beam spot (Fit)",100,0,0.05);
h_sigmaY0->setAxisTitle("#sigma_{Y_{0}} (cm)",1);
h_sigmaY0->getTH1()->SetBit(TH1::kCanRebin);
h_sigmaY0->getTH1()->SetCanExtend(TH1::kAllAxes);

h_sigmaZ0 = dbe_->book1D("BeamMonitorFeedBack_sigmaZ0","sigma z0 of beam spot (Fit)",100,0,10);
h_sigmaZ0->setAxisTitle("#sigma_{Z_{0}} (cm)",1);
h_sigmaZ0->getTH1()->SetBit(TH1::kCanRebin);
h_sigmaZ0->getTH1()->SetCanExtend(TH1::kAllAxes);

// Histograms of all reco tracks (without cuts):
h_trkPt=dbe_->book1D("trkPt","p_{T} of all reco'd tracks (no selection)",200,0.,50.);
Expand Down Expand Up @@ -331,22 +331,22 @@ void BeamMonitor::beginJob() {
// Monitor only the PV with highest sum pt of assoc. trks:
h_PVx[0] = dbe_->book1D("PVX","x coordinate of Primary Vtx",50,-0.01,0.01);
h_PVx[0]->setAxisTitle("PVx (cm)",1);
h_PVx[0]->getTH1()->SetBit(TH1::kCanRebin);
h_PVx[0]->getTH1()->SetCanExtend(TH1::kAllAxes);

h_PVy[0] = dbe_->book1D("PVY","y coordinate of Primary Vtx",50,-0.01,0.01);
h_PVy[0]->setAxisTitle("PVy (cm)",1);
h_PVy[0]->getTH1()->SetBit(TH1::kCanRebin);
h_PVy[0]->getTH1()->SetCanExtend(TH1::kAllAxes);

h_PVz[0] = dbe_->book1D("PVZ","z coordinate of Primary Vtx",dzBin,dzMin,dzMax);
h_PVz[0]->setAxisTitle("PVz (cm)",1);

h_PVx[1] = dbe_->book1D("PVXFit","x coordinate of Primary Vtx (Last Fit)",50,-0.01,0.01);
h_PVx[1]->setAxisTitle("PVx (cm)",1);
h_PVx[1]->getTH1()->SetBit(TH1::kCanRebin);
h_PVx[1]->getTH1()->SetCanExtend(TH1::kAllAxes);

h_PVy[1] = dbe_->book1D("PVYFit","y coordinate of Primary Vtx (Last Fit)",50,-0.01,0.01);
h_PVy[1]->setAxisTitle("PVy (cm)",1);
h_PVy[1]->getTH1()->SetBit(TH1::kCanRebin);
h_PVy[1]->getTH1()->SetCanExtend(TH1::kAllAxes);

h_PVz[1] = dbe_->book1D("PVZFit","z coordinate of Primary Vtx (Last Fit)",dzBin,dzMin,dzMax);
h_PVz[1]->setAxisTitle("PVz (cm)",1);
Expand Down
4 changes: 2 additions & 2 deletions DQM/BeamMonitor/plugins/BeamMonitorBx.cc
Expand Up @@ -294,7 +294,7 @@ void BeamMonitorBx::BookTrendHistos(bool plotPV,int nBx,map<string,string> & vMa
if (createHisto) {
edm::LogInfo("BX|BeamMonitorBx") << "histName = " << histName << "; histTitle = " << histTitle << std::endl;
hst[histName] = dbe_->book1D(histName,histTitle,40,0.5,40.5);
hst[histName]->getTH1()->SetBit(TH1::kCanRebin);
hst[histName]->getTH1()->SetCanExtend(TH1::kAllAxes);
hst[histName]->setAxisTitle(xtitle,1);
hst[histName]->setAxisTitle(ytitle,2);
hst[histName]->getTH1()->SetOption("E1");
Expand All @@ -321,7 +321,7 @@ void BeamMonitorBx::BookTrendHistos(bool plotPV,int nBx,map<string,string> & vMa

hst[histName] = dbe_->book1D(histName,"Number of Good Reconstructed Vertices",40,0.5,40.5);
hst[histName]->setAxisTitle(xtitle,1);
hst[histName]->getTH1()->SetBit(TH1::kCanRebin);
hst[histName]->getTH1()->SetCanExtend(TH1::kAllAxes);
hst[histName]->getTH1()->SetOption("E1");

}
Expand Down
2 changes: 1 addition & 1 deletion DQM/BeamMonitor/plugins/BeamSpotProblemMonitor.cc
Expand Up @@ -118,7 +118,7 @@ void BeamSpotProblemMonitor::beginJob() {
histName += "_all";
histTitle += " all";
hs[histName] = dbe_->book1D(histName,histTitle,40,0.5,40.5);
hs[histName]->getTH1()->SetBit(TH1::kCanRebin);
hs[histName]->getTH1()->SetCanExtend(TH1::kAllAxes);
hs[histName]->setAxisTitle(xtitle,1);
hs[histName]->setAxisTitle(ytitle,2);

Expand Down