The JetMET Payload Inspector

The JetMET Payload Inspector includes Jet Resolution and Jet Corrector that allows detector experts to easily inspect, monitor and share the calibration constants stored in the CMS conditions database. The source code of the plugins can be found in !CondCore/JetMETPlugin . Interactive plots can be generated from user selected data.

Screenshot_from_2023-07-17_17-51-37.png

The visualization part of this plugin is integrated with the cmsDbBrowser web-based application, which is the main entry point accessible for all CMS members to browse and manipulate conditions data and metadata. By visiting this page, one can see the full list of plugins in CMSSW.

Screenshot_from_2023-08-28_17-48-22.png

How to check the plots?

Let's look at the individual plugin of JetMET:

Jet resolution object

There are twelve plots for jet resolution, which includes
  • JetResolutionVsEta (Histo1D)
  • JetResolutionVsPt (Histo1D)
    • The plots are simple 1D histogram that can quickly passed through JSON. User can choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select an iov to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters. The resolution is specified with the tag.

Screenshot_from_2023-08-28_17-51-15.png Screenshot_from_2023-08-28_17-52-47.png Screenshot_from_2023-08-28_17-53-55.png

  • JetResolutionSummary (Image)
    • For the plots in image format, they are generated with ROOT package with complicated contents and would take some time to see the result. User can choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select an iov to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters.

Screenshot_from_2023-08-28_17-59-16.png Screenshot_from_2023-08-28_17-58-27.png

  • JetResolutionCompare (Image)
    • For the comparison plot, user need to select two tags for comparison. User can also choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select the iovs to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters. The red dashed line becomes solid line as too fine binning.

Screenshot_from_2023-08-28_17-59-16.png Screenshot_from_2023-08-28_18-02-33.png Screenshot_from_2023-08-28_18-15-49.png

  • JetScaleFactorVsEtaDOWN (Histo1D)
  • JetScaleFactorVsEtaNORM (Histo1D)
  • JetScaleFactorVsEtaUP (Histo1D)
    • The plots are simple 1D histogram that can quickly passed through JSON. User can choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select an iov to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters. One need to use tag names with SF.

Screenshot_from_2023-08-28_19-24-25.png Screenshot_from_2023-08-28_19-24-33.png Screenshot_from_2023-08-28_19-24-51.png

  • JetScaleFactorVsPtDOWN (Histo1D)
  • JetScaleFactorVsPtNORM (Histo1D)
  • JetScaleFactorVsPtUP (Histo1D)
    • The plots are simple 1D histogram that can quickly passed through JSON. User can choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select an iov to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters. One need to use tag names with SF. Old tags may not have pt bin payload.

Screenshot_from_2023-08-28_19-37-01.png Screenshot_from_2023-08-28_19-38-36.png Screenshot_from_2023-08-28_19-40-51.png

  • JetScaleFactorSummary (Iamge)
    • For the plots in image format, they are generated with ROOT package with complicated contents and would take some time to see the result. User can choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select an iov to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters.

Screenshot_from_2023-08-28_19-48-03.png

  • JetScaleFactorCompare (Image)
    • For the comparison plot, user need to select two tags for comparison. User can also choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select the iovs to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters. The red dashed line becomes solid line as too fine binning.

Screenshot_from_2023-08-28_19-52-33.png

Jet Corrector Parameters object

There are nine plots for jet resolution, which includes

Screenshot_from_2023-08-28_20-01-31.png

  • JetCorrectorVsEtaSummary (Image)
    • For the plots in image format, they are generated with ROOT package with complicated contents and would take some time to see the result. User can choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select an iov to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters. The red dashed line becomes solid line in pt plots as too fine binning.

Screenshot_from_2023-08-28_20-05-14.png

  • JetCorrectorVsEtaCompare (Image)
    • For the comparison plot, user need to select two tags for comparison. User can also choose proper bin values like jet pt, eta, rho. Then a dialog box will prompt you to select the iovs to draw a plot. By clicking the "show plot" button, one can get the distribution of jet resolution with the selected parameters. One needs to specify the correction level curves to draw in either name string or ID:

Screenshot_from_2023-08-28_20-08-07.png Screenshot_from_2023-08-28_20-08-17.png Screenshot_from_2023-08-28_20-09-47.png

How to add new plots?

Condition proponents can easily add new custom plots depending on their needs to the Payload Inspector (PI) service by developing plugins in CMSSW framework.

Here are some brief details how to do it:

  1. DPG/POGs needs to develop a plugin (with new plots) in CMSSW CondCore package.
  2. Make a pull request and add it to a CMSSW pre-release
  3. Once the new plots is included into the IB or pre-release, go to the Payload Inspector service and try to use it - it will automatically discover the newly added plots.

How to develop the PI plugin in CMSSW?

  • Taking JetResolution PI plugin as an example: https://github.com/cms-sw/cmssw/blob/master/CondCore/JetMETPlugins/plugins/JetResolution_PayloadInspector.cc
  • A plugin should be created for a payload object following the naming convention: XXXXX_PayloadInspector.cc .
  • For each new plot, a class needs to be created, inherited the desired plot type. e.g.: class JetResolutionVsEta : public cond::payloadInspector::Histogram1D <JetResolutionObject, SINGLE_IOV> The class name is the plot name, which inherited the CondCore plot type and SINGLE_IOV or MULTIPLE_IOV. A third type argument can be given for two tag comparison.
  • The plot name should be unique when stating in the constructor.
  • A plot can take user inputs by stating cond::payloadInspector::PlotBase::addInputParam("MY_INPUT") .
    • The bool fill() function is to be overwritten to fill the plots with the de-serialized payload data with fillWithBinAndValue(BIN, VALUE);
    • For PlotImage type, one needs to create a ROOT TCanvas and draw desired contents and save it with canvas.SaveAs(m_imageFileName.c_str());
  • Finally, this new class should be registered with a macro function like here:
      PAYLOAD_INSPECTOR_MODULE(JetResolutionObject) {
        PAYLOAD_INSPECTOR_CLASS(JetResolutionVsEta);
        ...
      }
    

-- YuanChao - 2023-08-14

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng Screenshot_from_2023-07-17_17-51-37.png r1 manage 392.5 K 2023-08-28 - 12:41 YuanChao  
PNGpng Screenshot_from_2023-08-28_17-48-22.png r1 manage 254.5 K 2023-08-28 - 12:41 YuanChao  
PNGpng Screenshot_from_2023-08-28_17-51-15.png r1 manage 243.1 K 2023-08-28 - 12:41 YuanChao  
PNGpng Screenshot_from_2023-08-28_17-52-47.png r1 manage 245.7 K 2023-08-28 - 12:41 YuanChao  
PNGpng Screenshot_from_2023-08-28_17-53-55.png r1 manage 200.1 K 2023-08-28 - 12:41 YuanChao  
PNGpng Screenshot_from_2023-08-28_17-58-27.png r1 manage 212.1 K 2023-08-28 - 12:58 YuanChao  
PNGpng Screenshot_from_2023-08-28_17-59-16.png r1 manage 243.1 K 2023-08-28 - 12:58 YuanChao  
PNGpng Screenshot_from_2023-08-28_18-02-24.png r1 manage 257.5 K 2023-08-28 - 13:07 YuanChao  
PNGpng Screenshot_from_2023-08-28_18-02-33.png r1 manage 243.9 K 2023-08-28 - 13:07 YuanChao  
PNGpng Screenshot_from_2023-08-28_18-15-49.png r1 manage 247.7 K 2023-08-28 - 13:07 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-24-25.png r1 manage 245.0 K 2023-08-28 - 13:30 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-24-33.png r1 manage 234.1 K 2023-08-28 - 13:30 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-24-51.png r1 manage 206.9 K 2023-08-28 - 13:30 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-37-01.png r1 manage 244.8 K 2023-08-28 - 13:44 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-38-36.png r1 manage 230.6 K 2023-08-28 - 13:44 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-40-51.png r1 manage 208.0 K 2023-08-28 - 13:44 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-48-03.png r1 manage 218.8 K 2023-08-28 - 13:53 YuanChao  
PNGpng Screenshot_from_2023-08-28_19-52-33.png r1 manage 245.5 K 2023-08-28 - 13:53 YuanChao  
PNGpng Screenshot_from_2023-08-28_20-01-31.png r1 manage 201.3 K 2023-08-28 - 14:11 YuanChao  
PNGpng Screenshot_from_2023-08-28_20-05-14.png r1 manage 207.7 K 2023-08-28 - 14:11 YuanChao  
PNGpng Screenshot_from_2023-08-28_20-08-07.png r1 manage 236.0 K 2023-08-28 - 14:26 YuanChao  
PNGpng Screenshot_from_2023-08-28_20-08-17.png r1 manage 281.8 K 2023-08-28 - 14:26 YuanChao  
PNGpng Screenshot_from_2023-08-28_20-09-47.png r1 manage 217.7 K 2023-08-28 - 14:11 YuanChao  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2023-09-01 - YuanChao
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback