User Tools

Site Tools


root:storemcnumbers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
root:storemcnumbers [2009/01/07 15:12] decianmroot:storemcnumbers [2009/01/07 15:16] (current) decianm
Line 1: Line 1:
-====== Storing Monte Carlo numbers in a file ======+====== Storing Monte Carlo particle numbers in a file ======
 ===== Idea ===== ===== Idea =====
 When analyzing signal or background using Monte Carlo truth information, it may be useful to check the real identity of a particle that was considered a Kaon, a Muon, etc. When analyzing signal or background using Monte Carlo truth information, it may be useful to check the real identity of a particle that was considered a Kaon, a Muon, etc.
Line 18: Line 18:
  
 ==== .cc File ==== ==== .cc File ====
-Add the following method to your **.cc-File**+Add the following method to your **.cc-File** (mind the ''yourclass''!):
 <code> <code>
-void ana::storeMCNumbers(TTree* tree, const char* variablename, const char* filename ){+void yourclass::storeMCNumbers(TTree* tree, const char* variablename, const char* filename ){
      
   // --------------------------------------------------------------------------------   // --------------------------------------------------------------------------------
root/storemcnumbers.1231337534.txt.gz · Last modified: 2009/01/07 15:12 by decianm