Problems with cuts

From: Michelle Mesquita Medeiros <michelle_mmed_at_yahoo.com.br>
Date: Wed, 30 Mar 2011 07:25:16 -0700


Hello ROOTers,

I need to do 3 differents cuts for some variables in a code (which is attached). I tried to do the following:

     if ((((shower->Phi-0.087266462)**2+(shower->Theta-0.3490659)**2) <= 0.004363**2) && ((Energy[part] >= 700.0)&&(Energy[part] <= 10000.0)) && ((particle->ParticleID == 5)||(particle->ParticleID == 6))) {phi[part] = atan(particle->Py/particle->Px);}

I used TTree::Scan to check the cuts but only one worked: the cut for shower.Phi and Theta. I also tried to do these cuts before filling the tree:

     if ((((shower->Phi-0.087266462)**2+(shower->Theta-0.3490659)**2) <= 0.004363**2)&&((Energy[part] >= 700.0)&&(Energy[part] <= 10000.0)) && ((particle->ParticleID == 5)||(particle->ParticleID == 6)))      {newtree->Fill();}

But this doesn't work too. Am I doing something wrong? I'm using ROOT 5.28.

Thanks in advance,



Michelle Mesquita de Medeiros
Instituto de Física - UFG
e-mail: medeiros_at_fnal.gov
medeiros_at_posgrad.ufg.br

michelle_mmed_at_yahoo.com.br


Received on Wed Mar 30 2011 - 16:25:24 CEST

This archive was generated by hypermail 2.2.0 : Thu Mar 31 2011 - 05:50:01 CEST