Pyhtia comparison extended
authormhorner <mhorner@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Mar 2004 19:59:37 +0000 (19:59 +0000)
committermhorner <mhorner@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 15 Mar 2004 19:59:37 +0000 (19:59 +0000)
EMCAL/AliEMCALJetFinderAlgoOmni.cxx
EMCAL/AliEMCALJetFinderTypes.h

index 3f25e4d..4f40e9d 100644 (file)
@@ -20,6 +20,9 @@
 /*
  
 $Log$
+Revision 1.11  2004/03/09 17:06:38  mhorner
+Made more robust
+
 Revision 1.10  2004/03/06 01:56:09  mhorner
 Pythai comp code
 
@@ -320,7 +323,13 @@ if (fDebug>0) Info("AliEMCALJetFinderAlgoOmni","Beginning Default Constructor");
                     fUnit[j].SetUnitFlag(kOutJet);
                     fUnit[j].SetUnitEta(myPart->Eta());
                     fUnit[j].SetUnitPhi(myPart->Phi());
-                    fUnit[j].SetUnitEnergy(myPart->Energy()*TMath::Sin(myPart->Theta()));
+                    if (myPart->Energy()*TMath::Sin(myPart->Theta()) > fPtCut)
+                    {
+                            fUnit[j].SetUnitEnergy(myPart->Energy()*TMath::Sin(myPart->Theta()));
+                    }else
+                    {
+                            fUnit[j].SetUnitEnergy(0.00);
+                    }
                     fUnitNoCuts[j].SetUnitID(j);
                     fUnitNoCuts[j].SetUnitFlag(kOutJet);
                     fUnitNoCuts[j].SetUnitEta(myPart->Eta());
index 1c04bf6..32f2c05 100755 (executable)
@@ -39,7 +39,7 @@
 
 #ifndef  ALIEMCALJETFINDERTRACKTYPE_T
 #define  ALIEMCALJETFINDERTRACKTYPE_T
-       typedef enum {  kAll, kEM, kCharged, kNeutral, kHadron, kChargedHadron, kNoTracks, kEMChargedPi0
+       typedef enum {  kAll, kEM, kCharged, kNeutral, kHadron, kChargedHadron, kNoTracks, kEMChargedPi0, kNoNeutronNeutrinoKlong
        } AliEMCALJetFinderTrackType_t;
 #endif