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.1 by loizides, Wed Jun 4 09:08:36 2008 UTC vs.
Revision 1.8 by bendavid, Sat May 29 11:56:48 2010 UTC

# Line 3 | Line 3
3   #include "MitAna/DataTree/interface/Muon.h"
4  
5   ClassImp(mithep::Muon)
6 +
7 + using namespace mithep;
8 +
9 + //--------------------------------------------------------------------------------------------------
10 + Muon::Muon() :
11 +  fCharge(-99), fIsoR03SumPt(0), fIsoR03EmEt(0), fIsoR03HadEt(0), fIsoR03HoEt(0),
12 +  fIsoR03NTracks(0), fIsoR03NJets(0), fIsoR05SumPt(0), fIsoR05EmEt(0),
13 +  fIsoR05HadEt(0), fIsoR05HoEt(0), fIsoR05NTracks(0), fIsoR05NJets(0),
14 +  fEmEnergy(0), fHadEnergy(0), fHoEnergy(0), fEmS9Energy(0),
15 +  fHadS9Energy(0), fHoS9Energy(0), fD0PV(0), fD0PVErr(0), fIp3dPV(0), fIp3dPVErr(0),
16 +  fD0PVBS(0), fD0PVBSErr(0), fIp3dPVBS(0), fIp3dPVBSErr(0), fPVCompatibility(0), fPVBSCompatibility(0),
17 +  fNValidHits(0), fNTraversedChambers(0), fIsGlobalMuon(kFALSE),
18 +  fIsTrackerMuon(kFALSE), fIsStandaloneMuon(kFALSE), fIsCaloMuon(kFALSE)
19 + {
20 +  // Constructor.
21 +
22 +  memset(fDX,0,sizeof(Double32_t)*8);
23 +  memset(fDY,0,sizeof(Double32_t)*8);
24 +  memset(fPullX,0,sizeof(Double32_t)*8);
25 +  memset(fPullY,0,sizeof(Double32_t)*8);
26 +  memset(fTrackDist,0,sizeof(Double32_t)*8);
27 +  memset(fTrackDistErr,0,sizeof(Double32_t)*8);
28 +  memset(fNSegments,0,sizeof(Int_t)*8);
29 + }
30 +
31 + //--------------------------------------------------------------------------------------------------
32 + void Muon::Print(Option_t */*opt*/) const
33 + {
34 +  // Print particle kinematics.
35 +
36 +  TString type("GlM");
37 +  if (IsTrackerMuon())
38 +    type = "TrM";
39 +  else if (IsStandaloneMuon())
40 +    type = "SaM";
41 +  else if (IsCaloMuon())
42 +    type = "CaM";
43 +
44 +  printf("%s: pt=%.3f eta=%.3f phi=%.3f\n", type.Data(), Pt(), Eta(), Phi());
45 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines