1 |
bendavid |
1.7 |
// $Id: Muon.cc,v 1.6 2010/05/06 17:30:39 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 |
|
|
fNTraversedChambers(0), fIsGlobalMuon(kFALSE),
|
18 |
bendavid |
1.3 |
fIsTrackerMuon(kFALSE), fIsStandaloneMuon(kFALSE), fIsCaloMuon(kFALSE)
|
19 |
loizides |
1.2 |
{
|
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 |
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 |
|
|
}
|