]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGJE/EMCALJetTasks/AliJetEmbeddingTask.cxx
fix the previous coverity fix on the existence of the particle and the good calorimet...
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / AliJetEmbeddingTask.cxx
index 59dc7054eabe1a180ab325bb7d81d67845436292..199581085820a09b09dde8ae02d51d492459ee0b 100644 (file)
@@ -10,7 +10,8 @@ ClassImp(AliJetEmbeddingTask)
 
 //________________________________________________________________________
 AliJetEmbeddingTask::AliJetEmbeddingTask() : 
-  AliJetModelBaseTask("AliJetEmbeddingTask")
+  AliJetModelBaseTask("AliJetEmbeddingTask"),
+  fMassless(kFALSE)
 {
   // Default constructor.
   SetSuffix("Embedded");
@@ -18,7 +19,8 @@ AliJetEmbeddingTask::AliJetEmbeddingTask() :
 
 //________________________________________________________________________
 AliJetEmbeddingTask::AliJetEmbeddingTask(const char *name) : 
-  AliJetModelBaseTask(name)
+  AliJetModelBaseTask(name),
+  fMassless(kFALSE)
 {
   // Standard constructor.
   SetSuffix("Embedded");
@@ -47,7 +49,9 @@ void AliJetEmbeddingTask::Run()
     if (fCopyArray) 
       CopyTracks();
     for (Int_t i = 0; i < fNTracks; ++i) {
-      AddTrack();
+      Double_t mass = 0.1396;
+      if(fMassless) mass = 0.;
+      AddTrack(-1,-999,-1,0,0,0,0,kFALSE,0,1,mass);
     }
   }
 }