GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » [CLOSED] Wrong particle in FillList
Re: Wrong particle in FillList [message #15222 is a reply to message #15221] Fri, 16 August 2013 13:21 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 2.235.190*
theAnalysis->FillList(kp, "KaonAllPlus");

if (kp.GetLength()!=0)
        {
            for (j=0;j<kp.GetLength();++j)
            {
              truth=kp[j]->GetMcTruth();
              if(!truth) continue;
              if(truth->PdgCode()==321)
                {
                    recokp.Put(kp[j]);
                }
            }
        }//end of if(kp.GetLength()!=0)

And you use your recokp TCandList, with the identified mc kaons.
It should work in this way, I suppose.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MVD Particle Identification in analyses
Next Topic: [WONTFIX] Tutorial macro - trunk
Goto Forum:
  


Current Time: Tue Apr 23 06:01:55 CEST 2019

Total time taken to generate the page: 0.02983 seconds