ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/Muon.cc
(Generate patch)

Comparing UserCode/MitAna/DataTree/src/Muon.cc (file contents):
Revision 1.3 by bendavid, Tue Mar 3 18:02:17 2009 UTC vs.
Revision 1.4 by loizides, Mon May 18 06:28:24 2009 UTC

# Line 25 | Line 25 | Muon::Muon() :
25    memset(fTrackDistErr,0,sizeof(Double32_t)*8);
26    memset(fNSegments,0,sizeof(Int_t)*8);
27   }
28 +
29 + //--------------------------------------------------------------------------------------------------
30 + void Muon::Print(Option_t */*opt*/) const
31 + {
32 +  // Print particle kinematics.
33 +
34 +  TString type("GlM");
35 +  if (IsTrackerMuon())
36 +    type = "TrM";
37 +  else if (IsStandaloneMuon())
38 +    type = "SaM";
39 +  else if (IsCaloMuon())
40 +    type = "CaM";
41 +
42 +  printf("%s: pt=%.3f eta=%.3f phi=%.3f\n", type.Data(), Pt(), Eta(), Phi());
43 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines