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 the function 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_mmed_at_yahoo.com.br ****************************************Received on Mon Mar 28 2011 - 21:18:36 CEST
- text/x-c++src attachment: newer46_test.C
This archive was generated by hypermail 2.2.0 : Tue Mar 29 2011 - 11:50:01 CEST