Procedure to Measure the Local Reconstruction and Trigger Primitive Efficiencies for the CSC Using Tag and Probe Method.

There are 4 main steps to make such measurement.

Step 1: Generate the Ntuples.

A CMSSW code was created to generate ntuples for a track and an identifed muon forming an invariant mass within the following mass ranges: invMass [2.5, 3.6]GeV and invMass > 75GeV. To start using this code, you need to copy/untar/unzip this tar file: tpcsc.tgz into your CMSSW working directory. The module name is: TPTrackMuonSys. After the code is compiled, you need to run over a dataset which has both RAW-RECO event format. I provide a python file called tp_runOnRawReco_cfg.py as an example, in the test sub-directory. Once the jobs are done, you need to merge the ROOT files into one ROOT file. The ntuple name is: Fraction. Once you have this Ntuple, you can continue with Step 2.

Step 2: Create Station-dependent Ntuples.

This step consists into reading the generated ntuple and create different ntuples which are specific to each of the four CSC stations. To do this you need to run the ROOT macro called: SkimDPG.C which is located under the test sub-directory. Once you run this macro, another ROOT file will be created and called: skimObjTP_real_merge.root which will have four ntuples called: Station1, Station2, Station3 and Station4.

Step 3: Measure the Efficiencies using Tag And Probe Method.

The root file: skimObjTP_real_merge.root is then used to measure the different efficiencies using Tag and Probe method. To do this you need to run the python file: tagProbeDPG_ZMuMu.py with the following command line:

cmsRun tagProbeDPG_ZMuMu.py Station1 real175888

Two arguments need to be defined: (1) station number for eg. Station1 and (2) name to be given for the specific measurement for eg. real (for data) OR mc (for Monte-Carlo) OR real175888 (for a particular run number). After this is done you will end up with 4 ROOT files (one file for each of the 4 stations, eg. "TnP_Z_DPG_real175888_Station1.root") which provide all the required efficiency plots versus Eta, Phi, Pt etc.... For convenience, I provide a script file called: ZrunAll.sh which makes it easier. Both files are provided in the test sub-directory.

Step 4: Create the plots

Now that we have the efficiency plots, we need to plot them. I provide a ROOT macro, called: plotTPZSeg.C, also included in the test sub-directory, and uses all four ROOT files: "TnP_Z_DPG_real175888_Station1.root", "TnP_Z_DPG_real175888_Station2.root", "TnP_Z_DPG_real175888_Station3.root" and "TnP_Z_DPG_real175888_Station4.root" and plot the efficiencies in some specific format.

-- ChaoukiB - 17-Jan-2012

Topic attachments
I Attachment History Action Size Date Who Comment
Compressed Zip archivetgz tpcsc.tgz r4 r3 r2 r1 manage 36.5 K 2012-01-18 - 23:39 UnknownUser Package to measure the CSC local reconstruction and Trigger primitive efficiencies.
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2012-01-18 - unknown
 
    • 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-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback