Skip to content

Commit

Permalink
MUON: add plots with global kinematics (#2378)
Browse files Browse the repository at this point in the history
* [MUON] added plots from global tracks kinematics

Some additional kinematics plots are introduced for eta, phi and pT
distributions that are filled using the parameters of the global
MFT+MCH(+MID) forward tracks.
The additional plots are only instantiated when MFT is included in the
required detectors.
The already existing plots are now always filled using the MCH track parameters.

Five other plots have been disabled by default, to compensate the newly
instroduced plots (which are also five by default).

* [MUON] reshuffled histogram instantiation

Cosmetic-only modification to better logically group the
histogram instantiations.

* [MUON] clang formatting
  • Loading branch information
aferrero2707 authored Aug 5, 2024
1 parent 1ad7dd2 commit 158680c
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 38 deletions.
23 changes: 16 additions & 7 deletions Modules/MUON/Common/include/MUONCommon/TrackPlotter.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,24 @@ class TrackPlotter : public HistPlotter
std::array<std::unique_ptr<TH1D>, 3> mNofTracksPerTF; ///< number of tracks per TF
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackChi2OverNDF; ///< chi2/ndf for the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackDCA; ///< DCA (cm) of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackEta; ///< eta of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackPDCA; ///< p (GeV/c) x DCA (cm) of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackPhi; ///< phi (in degrees) of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackPt; ///< Pt (Gev/c) of the track
std::unique_ptr<TH1DRatio> mTrackQOverPt; ///< Q / Pt of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackRAbs; ///< R at absorber end of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackEtaPhi; ///< phi (in degrees) vs. eta of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackEtaPt; ///< Pt (Gev/c) vs. eta of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackPhiPt; ///< Pt (Gev/c) vs. phi (in degrees) of the track
// kinematic variables, using MCH tracks parameters
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackEta; ///< eta of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackPhi; ///< phi (in degrees) of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackPt; ///< Pt (Gev/c) of the track
std::unique_ptr<TH1DRatio> mTrackQOverPt; ///< Q / Pt of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackEtaPhi; ///< phi (in degrees) vs. eta of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackEtaPt; ///< Pt (Gev/c) vs. eta of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackPhiPt; ///< Pt (Gev/c) vs. phi (in degrees) of the track
// kinematic variables, using global tracks parameters (only instantiated when MFT is included)
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackEtaGlobal; ///< eta of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackPhiGlobal; ///< phi (in degrees) of the track
std::array<std::unique_ptr<TH1DRatio>, 3> mTrackPtGlobal; ///< Pt (Gev/c) of the track
std::unique_ptr<TH1DRatio> mTrackQOverPtGlobal; ///< Q / Pt of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackEtaPhiGlobal; ///< phi (in degrees) vs. eta of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackEtaPtGlobal; ///< Pt (Gev/c) vs. eta of the track
std::array<std::unique_ptr<TH2DRatio>, 3> mTrackPhiPtGlobal; ///< Pt (Gev/c) vs. phi (in degrees) of the track

std::unique_ptr<TH2DRatio> mTrackPosAtMFT; ///< MCH track poisiton at MFT exit
std::unique_ptr<TH2DRatio> mTrackPosAtMID; ///< MCH track poisiton at MID entrance
Expand Down
Loading

0 comments on commit 158680c

Please sign in to comment.