Difference: DaVinciTutorial1 (78 vs. 79)

Revision 792012-10-16 - PatrickSKoppenburg

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

DaVinci Tutorial 1

We start with a very simple algorithm that looks at muons and fills some histograms. Follow it step-by-step. Every single line you need to write is given, but be very careful about where to paste what!
Line: 109 to 109
  sc = distanceCalculator()->distance((*im), (*ipv), IP, IPchi2); if (sc){ plot(IP, "IP", "Muon IP", 0., 10.*Gaudi::Units::mm);
Changed:
<
<
plot(IP/IPchi2, "IPchi2", "Muon chi2 IP", 0., 10.);
>
>
plot(IPchi2, "IPchi2", "Muon chi2 IP", 0., 10.);
  if ( (*im)->pt()>2*Gaudi::Units::GeV) plot(IP, "IP_2", "Muon IP for PT>2GeV", 0., 10.*Gaudi::Units::mm); }
Line: 121 to 121
 
<!-- SyntaxHighlightingPlugin -->
t.application.make() 
<!-- end SyntaxHighlightingPlugin -->
Changed:
<
<
or from outside ganga, SetupProject --build-env DaVinci %DAVINCIVERS% (if not already done), move to the cmt directory of Tutorial/Analysis and type:
>
>
or from outside ganga, SetupProject --build-env DaVinci v33r7 (if not already done), move to the cmt directory of Tutorial/Analysis and type:
 
cmt make
Line: 191 to 191
 H1->SetLineColor(2) H1->SetLineWidth(3) H1->Draw()
Changed:
<
<
gPad->SaveAs("DV1_P.eps");
>
>
gPad->SaveAs("DV1_P.png");
  H2->SetLineColor(2) H2->SetLineWidth(3) H2->Draw()
Changed:
<
<
gPad->SaveAs("DV1_Pt.eps");
>
>
gPad->SaveAs("DV1_Pt.png");
  H3->SetLineColor(2) H3->SetLineWidth(3) H3->Draw()
Changed:
<
<
gPad->SaveAs("DV1_IP.eps");
>
>
gPad->SaveAs("DV1_IP.png");
  H4->SetLineColor(2) H4->SetLineWidth(3) H4->Draw()
Changed:
<
<
gPad->SaveAs("DV1_IPchi2.eps");%ENDSYNTAX%
>
>
gPad->SaveAs("DV1_IPchi2.png");%ENDSYNTAX%
  For sure one could do this shorter...
  • To quit root:
Line: 220 to 220
 -- PatrickKoppenburg - 11 Mar 2008 -- PatrickKoppenburg - 05 Jan 2009 -- JeremyDickens - 04-Jan-2011
Added:
>
>
-- PatrickSKoppenburg - 16-Oct-2012
 
META FILEATTACHMENT attachment="Screenshot-Feicim.png" attr="" comment="" date="1231421302" name="Screenshot-Feicim.png" path="Screenshot-Feicim.png" size="117386" stream="Screenshot-Feicim.png" user="Main.PatrickKoppenburg" version="1"
Changed:
<
<
META PREFERENCE name="DAVINCIVERSION" title="DAVINCIVERSION" type="Set" value="v30r2"
META PREFERENCE name="TUTORIALVERSION" title="TUTORIALVERSION" type="Set" value="v10r2p1"
META PREFERENCE name="GANGAVERSION" title="GANGAVERSION" type="Set" value="v507r9"
>
>
META PREFERENCE name="DAVINCIVERSION" title="DAVINCIVERSION" type="Set" value="v33r0"
META PREFERENCE name="TUTORIALVERSION" title="TUTORIALVERSION" type="Set" value="v10r4"
META PREFERENCE name="GANGAVERSION" title="GANGAVERSION" type="Set" value="5-8-16"
 |*META PREFERENCE*|name="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" title="SYNTAXHIGHLIGHTINGPLUGIN_FORMAT_PREPEND" type="Set" value="
"|

 
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