Changes between Version 14 and Version 15 of WorkBook/TutorialBologna
- Timestamp:
- Jun 9, 2016, 6:48:40 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkBook/TutorialBologna
v14 v15 319 319 cp modules/ExampleModule.cc modules/Timing.cc 320 320 }}} 321 In these two files replace all " ExampleModule" with "Timing".321 In these two files replace all "!ExampleModule" with "Timing". 322 322 323 323 1) Add the Timing module in modules/ModulesLinkDef.h: … … 336 336 You have just added your first empty module in Delphes. 337 337 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. 338 3) 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. 340 339 341 340 {{{ … … 385 384 }}} 386 385 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:386 4) 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: 388 387 389 388 - Candidate (constructor) … … 393 392 If this step is performed properly, you should be able to compile by typing "make" 394 393 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. 394 We 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. 397 395 398 396 5) Let's store this information in Tracks. Find this classes in classes/DelphesClasses.h and add the new variables. Compile. 399 397 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.398 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 by editing the !ProcessTracks method in modules/!TreeWriter.cc. Compile. 401 399 402 400 7) Finally, call the Timing module in the delphes_card_CMS_PileUp in the detector and configure it. … … 404 402 8) Set the average pile-up to 200 in the card. 405 403 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 404 9) Simplify detector card that produces only Tracks out of the Timing module. 405 406 10) Add the following at the top of the card to run on 1k events only: 407 {{{ 408 set MaxEvents 1000 409 }}} 410 411 11) Make two different runs with 20 and 100ps. Open the output trees and plot the new variables. 412 413 12) [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.