2 |
|
|
3 |
|
#include "MitPhysics/Mods/interface/MuonIDMod.h" |
4 |
|
#include "MitCommon/MathTools/interface/MathUtils.h" |
5 |
+ |
#include "MitAna/DataTree/interface/MuonCol.h" |
6 |
+ |
#include "MitAna/DataTree/interface/VertexCol.h" |
7 |
|
#include "MitPhysics/Init/interface/ModNames.h" |
8 |
|
|
9 |
|
using namespace mithep; |
69 |
|
if (pass) |
70 |
|
pt = mu->StandaloneTrk()->Pt(); |
71 |
|
break; |
72 |
< |
case kTrackerOnly: |
72 |
> |
case kTrackerMuon: |
73 |
> |
pass = mu->HasTrackerTrk() && mu->IsTrackerMuon(); |
74 |
> |
if (pass) |
75 |
> |
pt = mu->TrackerTrk()->Pt(); |
76 |
> |
break; |
77 |
> |
case kCaloMuon: |
78 |
> |
pass = mu->HasTrackerTrk() && mu->IsCaloMuon(); |
79 |
> |
if (pass) |
80 |
> |
pt = mu->TrackerTrk()->Pt(); |
81 |
> |
break; |
82 |
> |
case kTrackerBased: |
83 |
|
pass = mu->HasTrackerTrk(); |
84 |
|
if (pass) |
85 |
|
pt = mu->TrackerTrk()->Pt(); |
241 |
|
fMuClassType = kGlobal; |
242 |
|
else if (fMuonClassType.CompareTo("Standalone") == 0) |
243 |
|
fMuClassType = kSta; |
244 |
< |
else if (fMuonClassType.CompareTo("TrackerOnly") == 0) |
245 |
< |
fMuClassType = kTrackerOnly; |
244 |
> |
else if (fMuonClassType.CompareTo("TrackerMuon") == 0) |
245 |
> |
fMuClassType = kTrackerMuon; |
246 |
> |
else if (fMuonClassType.CompareTo("CaloMuon") == 0) |
247 |
> |
fMuClassType = kCaloMuon; |
248 |
> |
else if (fMuonClassType.CompareTo("TrackerBased") == 0) |
249 |
> |
fMuClassType = kTrackerBased; |
250 |
|
else { |
251 |
|
SendError(kAbortAnalysis, "SlaveBegin", |
252 |
|
"The specified muon class %s is not defined.", |