ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/Muon.cc
Revision: 1.9
Committed: Fri Oct 29 16:21:14 2010 UTC (14 years, 6 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_020d, TMit_020d, Mit_020c, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016
Changes since 1.8: +3 -3 lines
Log Message:
new NMatches variable

File Contents

# User Rev Content
1 ceballos 1.9 // $Id: Muon.cc,v 1.8 2010/05/29 11:56:48 bendavid Exp $
2 loizides 1.1
3     #include "MitAna/DataTree/interface/Muon.h"
4    
5     ClassImp(mithep::Muon)
6 loizides 1.2
7     using namespace mithep;
8    
9     //--------------------------------------------------------------------------------------------------
10     Muon::Muon() :
11 bendavid 1.5 fCharge(-99), fIsoR03SumPt(0), fIsoR03EmEt(0), fIsoR03HadEt(0), fIsoR03HoEt(0),
12 loizides 1.2 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 bendavid 1.6 fHadS9Energy(0), fHoS9Energy(0), fD0PV(0), fD0PVErr(0), fIp3dPV(0), fIp3dPVErr(0),
16 bendavid 1.7 fD0PVBS(0), fD0PVBSErr(0), fIp3dPVBS(0), fIp3dPVBSErr(0), fPVCompatibility(0), fPVBSCompatibility(0),
17 ceballos 1.9 fNValidHits(0), fNTraversedChambers(0), fNMatches(0), fIsGlobalMuon(kFALSE),
18 bendavid 1.3 fIsTrackerMuon(kFALSE), fIsStandaloneMuon(kFALSE), fIsCaloMuon(kFALSE)
19 ceballos 1.9 {
20 loizides 1.2 // 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 loizides 1.4
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     }