Difference: DaVinciTutorial5 (1 vs. 19)

Revision 192013-09-30 - PatrickSKoppenburg

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 20 to 20
 
  • Don't forget to declare where you want to run your algorithm. A good idea is the monitoring sequence which is always run after the user algorithm. Do
<!-- SyntaxHighlightingPlugin -->
DaVinci().MoniSequence += [ tree ]      # The monitoring stuff
<!-- end SyntaxHighlightingPlugin -->
Added:
>
>
You should see something like that in your log file:

<!-- SyntaxHighlightingPlugin -->
PrintFoundBs.PrintDecay                                        INFO 
<--------------------------------------- Particle --------------------------------------->
                Name         M         P        Px        Py        Pz        Pt      chi2
                           MeV       MeV       MeV       MeV       MeV       MeV          
B_s0                  5351.02  84792.49  -1078.03    806.66  84781.80   1346.43      3.15
+-->phi(1020)         1019.20  40180.02   -446.29  -1077.38  40163.09   1166.16      8.96
|+-->K+                493.68  18956.49   -202.68   -631.37  18944.89    663.10      1.06
|+-->K-                493.68  21224.40   -252.57   -446.01  21218.21    512.56      0.88
+-->J/psi(1S)         3079.47  44663.99   -629.67   1873.95  44620.22   1976.91      1.69
 +-->mu+               105.66  32007.70    694.44   2121.09  31929.79   2231.88      0.85
 +-->mu-               105.66  12759.41  -1323.64   -247.43  12688.16   1346.57      0.94
<!-- end SyntaxHighlightingPlugin -->
 

Use the PrintMCTree algorithm to print the MC true tree.

%SYNTAX{ syntax="python"}% from Configurables import PrintMCTree, PrintMCDecayTreeTool
Line: 31 to 47
 
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.
  • If you add mctree as a member of the sequencer it will display information only about events where there is a selected candidate. If you want to see information about all the events you need to add it to DaVinci().MoniSequence.
Added:
>
>
The output should look like:
<!-- SyntaxHighlightingPlugin -->
PrintTrueBs                                                    INFO Printing MC tree for particle with ID -531
PrintTrueBs.PrintMCDecayTreeTool                               INFO 
B_s~0                 5366.77  82776.55    654.36    798.35  82770.11   1032.25
+-->J/psi(1S)         3096.93  43814.97   1718.46    887.50  43772.26   1934.10
|+-->mu+               105.66  28838.35   1078.37   2016.86  28747.52   2287.05
|+-->mu-               105.66  14493.28    569.92  -1141.92  14436.98   1276.24
|+-->gamma               0.00    591.63     70.16     12.59    587.32     71.28
|+-->gamma               0.00      0.43      0.01     -0.03      0.43      0.03
|+-->gamma               0.00      0.01      0.00      0.00      0.01      0.00
+-->phi(1020)         1029.89  39012.47  -1064.11    -89.15  38997.85   1067.84
 +-->K+                493.68  17506.04   -437.16     90.51  17500.35    446.43
 +-->K-                493.68  21507.39   -626.95   -179.66  21497.50    652.18
<!-- end SyntaxHighlightingPlugin -->
 The solution to this part is to be found in solutions/DaVinci5/

Go to DaVinciTutorial6

Line: 40 to 70
 -- PatrickKoppenburg - 13 Jun 2008 -- PatrickKoppenburg - 05 Jan 2009 -- PatrickSKoppenburg - 16-Oct-2012
Added:
>
>
-- PatrickSKoppenburg - 30-Sep-2013
  |*META PREFERENCE*|name="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" title="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" type="Set" value="
"|

Revision 182012-10-16 - PatrickSKoppenburg

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 39 to 39
 -- PatrickKoppenburg - 01 Oct 2007 -- PatrickKoppenburg - 13 Jun 2008 -- PatrickKoppenburg - 05 Jan 2009
Added:
>
>
-- PatrickSKoppenburg - 16-Oct-2012
  |*META PREFERENCE*|name="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" title="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" type="Set" value="
"|

Revision 172011-03-23 - PatrickSKoppenburg

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 12 to 12
 from Configurables import PrintDecayTree, PrintDecayTreeTool tree = PrintDecayTree("PrintFoundBs") %ENDSYNTAX%
Changed:
<
<
  • You need to give it the location where to find your head Particle. (in our case InputLocations = [ SeqBs2JpsiPhi.outputLocation() ].
>
>
  • You need to give it the location where to find your head Particle. (in our case Inputs = [ SeqBs2JpsiPhi.outputLocation() ].
 
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
<!-- SyntaxHighlightingPlugin -->
tree.addTool( PrintDecayTreeTool, name = "PrintDecay" )
tree.PrintDecay.Information = "Name M P Px Py Pz Pt chi2" 
<!-- end SyntaxHighlightingPlugin -->

Revision 162010-12-30 - ChristopherRJones

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 19 to 19
 You can see a list of variables here
  • Don't forget to declare where you want to run your algorithm. A good idea is the monitoring sequence which is always run after the user algorithm. Do
%SYNTAX{ syntax="python"}%
Changed:
<
<
DaVinci().MoniSequence = [ tree ] # The monitoring stuff%ENDSYNTAX%
>
>
DaVinci().MoniSequence += [ tree ] # The monitoring stuff%ENDSYNTAX%
 

Use the PrintMCTree algorithm to print the MC true tree.

<!-- SyntaxHighlightingPlugin -->
from Configurables import PrintMCTree, PrintMCDecayTreeTool
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
Changed:
<
<
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.
<!-- SyntaxHighlightingPlugin -->
mctree.addTool( PrintMCDecayTreeTool() )
mctree.PrintMCDecayTreeTool.Information = "Name M P Px Py Pz Pt"
<!-- end SyntaxHighlightingPlugin -->
>
>
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.
<!-- SyntaxHighlightingPlugin -->
mctree.addTool( PrintMCDecayTreeTool, name = "PrintMC" )
mctree.PrintMC.Information = "Name M P Px Py Pz Pt"
<!-- end SyntaxHighlightingPlugin -->
 
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
mctree.ParticleNames = [  "B_s0", "B_s~0" ]
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
    <!-- SyntaxHighlightingPlugin -->
mctree.Depth = 2  # down to the K and mu
<!-- end SyntaxHighlightingPlugin -->
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.

Revision 152010-04-26 - PatrickSKoppenburg

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 12 to 12
 from Configurables import PrintDecayTree, PrintDecayTreeTool tree = PrintDecayTree("PrintFoundBs") %ENDSYNTAX%
Changed:
<
<
  • You need to give it the location where to find your head Particle. (in our case PrintDecayTree.InputLocations =["SelBs2JpsiPhi"]).
>
>
  • You need to give it the location where to find your head Particle. (in our case InputLocations = [ SeqBs2JpsiPhi.outputLocation() ].
 
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
<!-- SyntaxHighlightingPlugin -->
tree.addTool( PrintDecayTreeTool, name = "PrintDecay" )
tree.PrintDecay.Information = "Name M P Px Py Pz Pt chi2" 
<!-- end SyntaxHighlightingPlugin -->
You can see a list of variables here
Added:
>
>
  • Don't forget to declare where you want to run your algorithm. A good idea is the monitoring sequence which is always run after the user algorithm. Do
<!-- SyntaxHighlightingPlugin -->
DaVinci().MoniSequence = [ tree ]      # The monitoring stuff
<!-- end SyntaxHighlightingPlugin -->
 

Use the PrintMCTree algorithm to print the MC true tree.

%SYNTAX{ syntax="python"}% from Configurables import PrintMCTree, PrintMCDecayTreeTool
Line: 26 to 29
 
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
mctree.ParticleNames = [  "B_s0", "B_s~0" ]
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
    <!-- SyntaxHighlightingPlugin -->
mctree.Depth = 2  # down to the K and mu
<!-- end SyntaxHighlightingPlugin -->
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.
Changed:
<
<
  • If you add mctree as a member of the sequencer it will display information only about events where there is a selected candidate. If you want to see information about all the events you need to add it to
    <!-- SyntaxHighlightingPlugin -->
DaVinci().UserAlgorithms
<!-- end SyntaxHighlightingPlugin -->
list.
>
>
  • If you add mctree as a member of the sequencer it will display information only about events where there is a selected candidate. If you want to see information about all the events you need to add it to DaVinci().MoniSequence.
  The solution to this part is to be found in solutions/DaVinci5/

Revision 142010-01-28 - RobLambert

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 12 to 12
 from Configurables import PrintDecayTree, PrintDecayTreeTool tree = PrintDecayTree("PrintFoundBs") %ENDSYNTAX%
Changed:
<
<
  • You need to give it the location where to find your head Particle.
>
>
  • You need to give it the location where to find your head Particle. (in our case PrintDecayTree.InputLocations =["SelBs2JpsiPhi"]).
 
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
<!-- SyntaxHighlightingPlugin -->
tree.addTool( PrintDecayTreeTool, name = "PrintDecay" )
tree.PrintDecay.Information = "Name M P Px Py Pz Pt chi2" 
<!-- end SyntaxHighlightingPlugin -->

Revision 132010-01-27 - NicolaChiapolini

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 18 to 18
 tree.PrintDecay.Information = "Name M P Px Py Pz Pt chi2" %ENDSYNTAX% You can see a list of variables here

Use the PrintMCTree algorithm to print the MC true tree.

Changed:
<
<
<!-- SyntaxHighlightingPlugin -->
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
>
>
<!-- SyntaxHighlightingPlugin -->
from Configurables import PrintMCTree, PrintMCDecayTreeTool
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
 It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.
<!-- SyntaxHighlightingPlugin -->
mctree.addTool( PrintMCDecayTreeTool() )
mctree.PrintMCDecayTreeTool.Information = "Name M P Px Py Pz Pt"
<!-- end SyntaxHighlightingPlugin -->
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
mctree.ParticleNames = [  "B_s0", "B_s~0" ]
<!-- end SyntaxHighlightingPlugin -->

Revision 122010-01-27 - NicolaChiapolini

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 8 to 8
 

Slides

This tutorial corresponds to the slides last shown here.

Use the PrintDecayTree algorithm to print the reconstructed tree.

Changed:
<
<
<!-- SyntaxHighlightingPlugin -->
tree = PrintDecayTree("PrintFoundBs")
<!-- end SyntaxHighlightingPlugin -->
>
>
<!-- SyntaxHighlightingPlugin -->
from Configurables import PrintDecayTree, PrintDecayTreeTool
tree = PrintDecayTree("PrintFoundBs")
<!-- end SyntaxHighlightingPlugin -->
 
  • You need to give it the location where to find your head Particle.
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
%SYNTAX{ syntax="python"}%tree.addTool( PrintDecayTreeTool, name = "PrintDecay" )

Revision 112009-07-17 - RuggeroTurra

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 13 to 13
 
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
<!-- SyntaxHighlightingPlugin -->
tree.addTool( PrintDecayTreeTool, name = "PrintDecay" )
tree.PrintDecay.Information = "Name M P Px Py Pz Pt chi2" 
<!-- end SyntaxHighlightingPlugin -->
Added:
>
>
You can see a list of variables here
 

Use the PrintMCTree algorithm to print the MC true tree.

<!-- SyntaxHighlightingPlugin -->
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.%SYNTAX{ syntax="python"}%mctree.addTool( PrintMCDecayTreeTool() )

Revision 102009-07-06 - RuggeroTurra

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 16 to 16
 

Use the PrintMCTree algorithm to print the MC true tree.

<!-- SyntaxHighlightingPlugin -->
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.%SYNTAX{ syntax="python"}%mctree.addTool( PrintMCDecayTreeTool() )
Changed:
<
<
mctree.PrintMCDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2"%ENDSYNTAX%
>
>
mctree.PrintMCDecayTreeTool.Information = "Name M P Px Py Pz Pt"%ENDSYNTAX%
 
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
mctree.ParticleNames = [  "B_s0", "B_s~0" ]
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
    <!-- SyntaxHighlightingPlugin -->
mctree.Depth = 2  # down to the K and mu
<!-- end SyntaxHighlightingPlugin -->
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.
Added:
>
>
  • If you add mctree as a member of the sequencer it will display information only about events where there is a selected candidate. If you want to see information about all the events you need to add it to
    <!-- SyntaxHighlightingPlugin -->
DaVinci().UserAlgorithms
<!-- end SyntaxHighlightingPlugin -->
list.
  The solution to this part is to be found in solutions/DaVinci5/

Revision 92009-07-01 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 11 to 11
 
<!-- SyntaxHighlightingPlugin -->
tree = PrintDecayTree("PrintFoundBs")
<!-- end SyntaxHighlightingPlugin -->
  • You need to give it the location where to find your head Particle.
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
Changed:
<
<
<!-- SyntaxHighlightingPlugin -->
tree.PrintDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2"
<!-- end SyntaxHighlightingPlugin -->
>
>
<!-- SyntaxHighlightingPlugin -->
tree.addTool( PrintDecayTreeTool, name = "PrintDecay" )
tree.PrintDecay.Information = "Name M P Px Py Pz Pt chi2" 
<!-- end SyntaxHighlightingPlugin -->
 

Use the PrintMCTree algorithm to print the MC true tree.

<!-- SyntaxHighlightingPlugin -->
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.%SYNTAX{ syntax="python"}%mctree.addTool( PrintMCDecayTreeTool() )

Revision 82009-02-05 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 7 to 7
 

Slides

This tutorial corresponds to the slides last shown here.
Changed:
<
<

Use the PrintTree algorithm to print the reconstructed tree.

<!-- SyntaxHighlightingPlugin -->
tree = PrintTree("PrintFoundBs")
<!-- end SyntaxHighlightingPlugin -->
>
>

Use the PrintDecayTree algorithm to print the reconstructed tree.

<!-- SyntaxHighlightingPlugin -->
tree = PrintDecayTree("PrintFoundBs")
<!-- end SyntaxHighlightingPlugin -->
 
  • You need to give it the location where to find your head Particle.
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
<!-- SyntaxHighlightingPlugin -->
tree.PrintDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2"
<!-- end SyntaxHighlightingPlugin -->

Revision 72009-01-05 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 6 to 6
 

Slides

Changed:
<
<
This tutorial corresponds to the slides last shown here. But they might be a little out of date. Also have a look here.
>
>
This tutorial corresponds to the slides last shown here.
 

Use the PrintTree algorithm to print the reconstructed tree.

<!-- SyntaxHighlightingPlugin -->
tree = PrintTree("PrintFoundBs")
<!-- end SyntaxHighlightingPlugin -->
  • You need to give it the location where to find your head Particle.
Changed:
<
<
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
    <!-- SyntaxHighlightingPlugin -->
tree.PrintDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2"
<!-- end SyntaxHighlightingPlugin -->
>
>
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
<!-- SyntaxHighlightingPlugin -->
tree.PrintDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2"
<!-- end SyntaxHighlightingPlugin -->
 

Use the PrintMCTree algorithm to print the MC true tree.

<!-- SyntaxHighlightingPlugin -->
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.%SYNTAX{ syntax="python"}%mctree.addTool( PrintMCDecayTreeTool() )
Line: 19 to 19
 
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
mctree.ParticleNames = [  "B_s0", "B_s~0" ]
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
    <!-- SyntaxHighlightingPlugin -->
mctree.Depth = 2  # down to the K and mu
<!-- end SyntaxHighlightingPlugin -->
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.
Deleted:
<
<

Filter you input kaons and muons according to the truth

  • Add two FilterDesktop algorithms that run on the standard muons and kaons are keep only the ones associated to the true particles of your Bs.
  The solution to this part is to be found in solutions/DaVinci5/
Line: 29 to 27
  -- PatrickKoppenburg - 01 Oct 2007 -- PatrickKoppenburg - 13 Jun 2008
Added:
>
>
-- PatrickKoppenburg - 05 Jan 2009
 |*META PREFERENCE*|name="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" title="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" type="Set" value="
"|

Revision 62008-12-23 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 29 to 29
  -- PatrickKoppenburg - 01 Oct 2007 -- PatrickKoppenburg - 13 Jun 2008
Added:
>
>
|*META PREFERENCE*|name="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" title="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" type="Set" value="
"|

Revision 52008-06-13 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 9 to 9
 This tutorial corresponds to the slides last shown here. But they might be a little out of date. Also have a look here.

Use the PrintTree algorithm to print the reconstructed tree.

Added:
>
>
<!-- SyntaxHighlightingPlugin -->
tree = PrintTree("PrintFoundBs")
<!-- end SyntaxHighlightingPlugin -->
 
  • You need to give it the location where to find your head Particle.
Changed:
<
<
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
    <!-- SyntaxHighlightingPlugin -->
PrintFoundBs.PrintDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2" ;
<!-- end SyntaxHighlightingPlugin -->
  • Also tell it to associate to the truth:
    <!-- SyntaxHighlightingPlugin -->
PrintFoundBs. = "Name M P Px Py Pz Pt phi Vz" ;
<!-- end SyntaxHighlightingPlugin -->
>
>
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
    <!-- SyntaxHighlightingPlugin -->
tree.PrintDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2"
<!-- end SyntaxHighlightingPlugin -->
 

Use the PrintMCTree algorithm to print the MC true tree.

Changed:
<
<
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
PrintTrueBs.ParticleNames = { "B_s0", "B_s~0" } ;
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
    <!-- SyntaxHighlightingPlugin -->
PrintTrueBs.Depth = 2 ; // down to the K and mu 
<!-- end SyntaxHighlightingPlugin -->
>
>
<!-- SyntaxHighlightingPlugin -->
mctree = PrintMCTree("PrintTrueBs")
<!-- end SyntaxHighlightingPlugin -->
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.
<!-- SyntaxHighlightingPlugin -->
mctree.addTool( PrintMCDecayTreeTool() )
mctree.PrintMCDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2"
<!-- end SyntaxHighlightingPlugin -->
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
mctree.ParticleNames = [  "B_s0", "B_s~0" ]
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
    <!-- SyntaxHighlightingPlugin -->
mctree.Depth = 2  # down to the K and mu
<!-- end SyntaxHighlightingPlugin -->
 
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.

Filter you input kaons and muons according to the truth

  • Add two FilterDesktop algorithms that run on the standard muons and kaons are keep only the ones associated to the true particles of your Bs.

The solution to this part is to be found in solutions/DaVinci5/

Added:
>
>

Go to DaVinciTutorial6

 -- PatrickKoppenburg - 01 Oct 2007
Added:
>
>
-- PatrickKoppenburg - 13 Jun 2008

Revision 42008-03-04 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 10 to 10
 

Use the PrintTree algorithm to print the reconstructed tree.

  • You need to give it the location where to find your head Particle.
Changed:
<
<
  • You need to tell the DebugTool what variables to print. For instance
<!-- SyntaxHighlightingPlugin -->
PrintFoundBs.DebugTool.Information = "Name E M P Px Py Pz Pt phi Vz" ;
<!-- end SyntaxHighlightingPlugin -->
>
>
  • You need to tell the PrintDecayTreeTool what variables to print. For instance
    <!-- SyntaxHighlightingPlugin -->
PrintFoundBs.PrintDecayTreeTool.Information = "Name M P Px Py Pz Pt chi2" ;
<!-- end SyntaxHighlightingPlugin -->
  • Also tell it to associate to the truth:
    <!-- SyntaxHighlightingPlugin -->
PrintFoundBs. = "Name M P Px Py Pz Pt phi Vz" ;
<!-- end SyntaxHighlightingPlugin -->
 

Use the PrintMCTree algorithm to print the MC true tree.

Changed:
<
<
  • In this case you have to tell the algorithms for which particles it has to print the tree.
<!-- SyntaxHighlightingPlugin -->
PrintTrueBs.ParticleNames = { "B_s0", "B_s~0" } ;
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
<!-- SyntaxHighlightingPlugin -->
PrintTrueBs.Depth = 2 ; // down to the K and mu 
<!-- end SyntaxHighlightingPlugin -->
>
>
It uses the PrintMCDecayTreeTool internally, which has the same syntax as the PrintDecayTreeTool.
  • In this case you have to tell the algorithms for which particles it has to print the tree.
    <!-- SyntaxHighlightingPlugin -->
PrintTrueBs.ParticleNames = { "B_s0", "B_s~0" } ;
<!-- end SyntaxHighlightingPlugin -->
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
    <!-- SyntaxHighlightingPlugin -->
PrintTrueBs.Depth = 2 ; // down to the K and mu 
<!-- end SyntaxHighlightingPlugin -->
 
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.

Filter you input kaons and muons according to the truth

  • Add two FilterDesktop algorithms that run on the standard muons and kaons are keep only the ones associated to the true particles of your Bs.

Revision 32007-11-19 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.

Added:
>
>

Slides

This tutorial corresponds to the slides last shown here. But they might be a little out of date. Also have a look here.
 

Use the PrintTree algorithm to print the reconstructed tree.

  • You need to give it the location where to find your head Particle.
  • You need to tell the DebugTool what variables to print. For instance

Revision 22007-10-02 - unknown

Line: 1 to 1
 
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.
Line: 8 to 8
 

Use the PrintTree algorithm to print the reconstructed tree.

  • You need to give it the location where to find your head Particle.
  • You need to tell the DebugTool what variables to print. For instance
Changed:
<
<
PrintFoundBs.DebugTool.Information = "Name E M P Px Py Pz Pt phi Vz" ;
>
>
<!-- SyntaxHighlightingPlugin -->
PrintFoundBs.DebugTool.Information = "Name E M P Px Py Pz Pt phi Vz" ;
<!-- end SyntaxHighlightingPlugin -->
 

Use the PrintMCTree algorithm to print the MC true tree.

  • In this case you have to tell the algorithms for which particles it has to print the tree.
Changed:
<
<
PrintTrueBs.ParticleNames = { "B_s0", "B_s~0" } ;
>
>
<!-- SyntaxHighlightingPlugin -->
PrintTrueBs.ParticleNames = { "B_s0", "B_s~0" } ;
<!-- end SyntaxHighlightingPlugin -->
 
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
Changed:
<
<
PrintTrueBs.Depth = 2 ; // down to the K and mu 
>
>
<!-- SyntaxHighlightingPlugin -->
PrintTrueBs.Depth = 2 ; // down to the K and mu 
<!-- end SyntaxHighlightingPlugin -->
 
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.

Filter you input kaons and muons according to the truth

  • Add two FilterDesktop algorithms that run on the standard muons and kaons are keep only the ones associated to the true particles of your Bs.

Revision 12007-10-01 - unknown

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="DaVinciTutorial"

DaVinci Tutorial 5

We have the sequence to select Bs candidates but no idea if we do it right. We will start with adding some debugging tools.

Use the PrintTree algorithm to print the reconstructed tree.

  • You need to give it the location where to find your head Particle.
  • You need to tell the DebugTool what variables to print. For instance
PrintFoundBs.DebugTool.Information = "Name E M P Px Py Pz Pt phi Vz" ;

Use the PrintMCTree algorithm to print the MC true tree.

  • In this case you have to tell the algorithms for which particles it has to print the tree.
PrintTrueBs.ParticleNames = { "B_s0", "B_s~0" } ;
  • It is recommended to give the depth of the tree in order to avoid having all particles from interaction with matter.
PrintTrueBs.Depth = 2 ; // down to the K and mu 
  • Increase the Depth value to see all the particles created in the detector. Most of them are created in the calorimeters between 11 and 15m.

Filter you input kaons and muons according to the truth

  • Add two FilterDesktop algorithms that run on the standard muons and kaons are keep only the ones associated to the true particles of your Bs.

The solution to this part is to be found in solutions/DaVinci5/

-- PatrickKoppenburg - 01 Oct 2007

 
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