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

Improve vertexing monitoring for Tracker Alignment AlCaReco samples #41378

Merged
merged 3 commits into from
Apr 25, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,15 @@ class GeneralPurposeTrackAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchR
TH1D *hrun;
TH1D *hlumi;

TH1F *h_BSx0;
TH1F *h_BSy0;
TH1F *h_BSz0;
TH1F *h_Beamsigmaz;
TH1F *h_BeamWidthX;
TH1F *h_BeamWidthY;
TH1F *h_BSdxdz;
TH1F *h_BSdydz;

std::vector<TH1 *> vTrackHistos_;
std::vector<TH1 *> vTrackProfiles_;
std::vector<TH1 *> vTrack2DHistos_;
Expand Down Expand Up @@ -646,12 +655,31 @@ class GeneralPurposeTrackAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchR
edm::Handle<reco::BeamSpot> beamSpotHandle = event.getHandle(beamspotToken_);
if (beamSpotHandle.isValid()) {
beamSpot = *beamSpotHandle;
math::XYZPoint point(beamSpot.x0(), beamSpot.y0(), beamSpot.z0());

double BSx0 = beamSpot.x0();
double BSy0 = beamSpot.y0();
double BSz0 = beamSpot.z0();
double Beamsigmaz = beamSpot.sigmaZ();
double Beamdxdz = beamSpot.dxdz();
double Beamdydz = beamSpot.dydz();
double BeamWidthX = beamSpot.BeamWidthX();
double BeamWidthY = beamSpot.BeamWidthY();

math::XYZPoint point(BSx0, BSy0, BSz0);
double dxy = track->dxy(point);
double dz = track->dz(point);
hdxyBS->Fill(dxy);
hd0BS->Fill(-dxy);
hdzBS->Fill(dz);

h_BSx0->Fill(BSx0);
h_BSy0->Fill(BSy0);
h_BSz0->Fill(BSz0);
h_Beamsigmaz->Fill(Beamsigmaz);
h_BeamWidthX->Fill(BeamWidthX);
h_BeamWidthY->Fill(BeamWidthY);
h_BSdxdz->Fill(Beamdxdz);
h_BSdydz->Fill(Beamdydz);
}

//dxy with respect to the primary vertex
Expand Down Expand Up @@ -843,6 +871,15 @@ class GeneralPurposeTrackAnalyzer : public edm::one::EDAnalyzer<edm::one::WatchR
hPhiEndcapPlus = book<TH1D>("h_PhiEndcapPlus", "hPhiEndcapPlus (#eta>1.4);track #phi;track", 100, -M_PI, M_PI);
hPhiEndcapMinus = book<TH1D>("h_PhiEndcapMinus", "hPhiEndcapMinus (#eta<1.4);track #phi;tracks", 100, -M_PI, M_PI);

h_BSx0 = book<TH1F>("h_BSx0", "x-coordinate of reco beamspot;x^{BS}_{0};n_{events}", 100, -0.1, 0.1);
h_BSy0 = book<TH1F>("h_BSy0", "y-coordinate of reco beamspot;y^{BS}_{0};n_{events}", 100, -0.1, 0.1);
h_BSz0 = book<TH1F>("h_BSz0", "z-coordinate of reco beamspot;z^{BS}_{0};n_{events}", 100, -1., 1.);
h_Beamsigmaz = book<TH1F>("h_Beamsigmaz", "z-coordinate beam width;#sigma_{Z}^{beam};n_{events}", 100, 0., 1.);
h_BeamWidthX = book<TH1F>("h_BeamWidthX", "x-coordinate beam width;#sigma_{X}^{beam};n_{events}", 100, 0., 0.01);
h_BeamWidthY = book<TH1F>("h_BeamWidthY", "y-coordinate beam width;#sigma_{Y}^{beam};n_{events}", 100, 0., 0.01);
h_BSdxdz = book<TH1F>("h_BSdxdz", "BeamSpot dxdz;beamspot dx/dz;n_{events}", 100, -0.0003, 0.0003);
h_BSdydz = book<TH1F>("h_BSdydz", "BeamSpot dydz;beamspot dy/dz;n_{events}", 100, -0.0003, 0.0003);

if (!isCosmics_) {
hPhp = book<TH1D>("h_P_hp", "Momentum (high purity);track momentum [GeV];tracks", 100, 0., 100.);
hPthp = book<TH1D>("h_Pt_hp", "Transverse Momentum (high purity);track p_{T} [GeV];tracks", 100, 0., 100.);
Expand Down
Loading