Fork me on GitHub

Changes between Version 14 and Version 15 of WorkBook/TutorialBologna


Ignore:
Timestamp:
Jun 9, 2016, 6:48:40 PM (8 years ago)
Author:
Michele Selvaggi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkBook/TutorialBologna

    v14 v15  
    319319cp modules/ExampleModule.cc modules/Timing.cc
    320320}}}
    321 In these two files replace all "ExampleModule" with "Timing".
     321In these two files replace all "!ExampleModule" with "Timing".
    322322
    3233231) Add the Timing module in modules/ModulesLinkDef.h:
     
    336336You have just added your first empty module in Delphes.
    337337
    338 3) Replace the existing "Process"  method in the newly created module. Understand this piece of code.
    339     Then edit the rest of the Timing class (both the .cc and .h), in order to comply with this method.
     3383) Understand the following piece of code and replace the existing "Process" method in the newly created module. Then edit the rest of the Timing class (both the .cc and .h), in order to be able to compile.
    340339
    341340{{{
     
    385384}}}
    386385
    387 4)  Add the new variables T0, TF, genT0, genTF, ErrorT to the Candidate class. You will have to edit the files classes/DelphesClasses.h and classes/DelphesClasses.cc. The Candidate class is defined in classes/DelphesClasses.h. Other methods involving the Candidate class are defined in classes/DelphesClasses.cc:
     3864)  Add the new variables T0, TF, genT0, genTF, ErrorT to the Candidate class. For this, you will have to edit the files classes/DelphesClasses.h and classes/DelphesClasses.cc. The Candidate class is defined in classes/DelphesClasses.h. Other methods involving the Candidate class are defined in classes/DelphesClasses.cc:
    388387
    389388    - Candidate (constructor)
     
    393392If this step is performed properly, you should be able to compile by typing "make"
    394393
    395 We are not done yet... The newly computed timing information is now properly stored and propagated
    396 inside Delphes. However, we have to decide which objects will display this new information.
     394We are not done yet... The newly computed timing information is now properly stored and propagated inside Delphes. However, we have to decide which objects will display this new information.
    397395
    3983965) Let's store this information in Tracks. Find this classes in classes/DelphesClasses.h and add the new variables. Compile.
    399397
    400 6)  Now we have to tell Delphes that we want these variables to appear in our final root tree. Store these variables in the Track objects in the ProcessTracks method in modules/TreeWriter.cc. Compile.
     3986)  Now we have to tell Delphes that we want these variables to appear in our final root tree. Store these variables in the Track objects by editing the !ProcessTracks method in modules/!TreeWriter.cc. Compile.
    401399
    4024007)  Finally, call the Timing module in the delphes_card_CMS_PileUp in the detector and configure it.
     
    4044028) Set the average pile-up to 200 in the card.
    405403
    406 9) Make a simplified detector card that produces only Tracks out of the Timing module. 
    407 
    408 10) Make two different runs with 20 and 100ps. Open the output trees and plot the new variables.
    409 
    410 11) [https://cp3.irmp.ucl.ac.be/projects/delphes/raw-attachment/wiki/WorkBook/TutorialBologna/TimingAnalysis.C Download] and run it. This macro isolates the four highest PT tracks. The hard vertex is taken to be that given by the most energetic track. The difference in time between the first and the fourth track is plotted. Explain what you see.
    411 
    412 
     4049) Simplify detector card that produces only Tracks out of the Timing module. 
     405
     40610) Add the following at the top of the card to run on 1k events only:
     407{{{
     408set MaxEvents 1000
     409}}}
     410
     41111) Make two different runs with 20 and 100ps. Open the output trees and plot the new variables.
     412
     41312) [https://cp3.irmp.ucl.ac.be/projects/delphes/raw-attachment/wiki/WorkBook/TutorialBologna/TimingAnalysis.C Download] and run it. This macro isolates the four highest PT tracks. The hard vertex is taken to be that given by the most energetic track. The difference in time between the first and the fourth track is plotted. Explain what you see.