188 RhoCandList neutralCands,chargedCands, plusCands,minusCands;
192 RhoCandList xiCands,nonOvCands,dsCands,ds0Cands,ppCands;
193 std::map<Int_t,Float_t > mapp;
203 for (Int_t i1=0; i1<
fMicroArray->GetEntriesFast(); i1++){
206 TLorentzVector l=tc.P4();
210 chargedCands.
Add(&tc);
242 while (t2=iterP.Next())
246 TLorentzVector l=t2->
P4();
248 TVector3 pim = l.Vect();
268 for (
int k=0;k<
npi;k++)
289 while (t3=itP.Next())
293 TLorentzVector v4=t3->
P4();
295 TVector3 v3 = v4.Vect();
298 ppi2->Fill(v3.Mag());
309 TLorentzVector vpim=pi->
P4();
310 TVector3 pi3v = vpim.Vect();
315 hvtx2[2]->Fill(0.,pi3v.Mag());}
318 hvtx2[3]->Fill(pi3v.Mag(),0.);
325 for (ii=0;ii<dsi-1;ii++)
331 TLorentzVector vpim=pi->
P4();
332 TVector3 pi3v = vpim.Vect();
334 for (jj=ii+1;jj<dsi;jj++)
339 TLorentzVector vpp=pp->
P4();
340 TVector3 pp3v = vpp.Vect();
351 if (MotherId==-1)Motherpdg = mc->
GetPdgCode();
368 cout<<
" Motherpdg "<<Motherpdg<<
" "<<mc->
GetPdgCode()<<endl;
382 if(pi3v.Mag()>pp3v.Mag())
385 hvtx2[0]->Fill(pi3v.Mag(),pp3v.Mag());
387 if((pi3v.Mag()>0.12&&pi3v.Mag()<0.14)&&(pp3v.Mag()>0.065&&pp3v.Mag()<0.08)) {
392 hvtx2[1]->Fill(pi3v.Mag(),pp3v.Mag());
404 if(Motherpdg==1020040110||Motherpdg==1010050110){
408 if(Motherpdg==1020030090||(Motherpdg==1010040090 && MotherId!=-1)){
419 if((pi3v.Mag()>0.112&&pi3v.Mag()<0.126)&&(pp3v.Mag()>0.09&&pp3v.Mag()<0.103)){
428 if((pi3v.Mag()>0.128&&pi3v.Mag()<0.147)&&(pp3v.Mag()>0.0898&&pp3v.Mag()<0.109)){
443 if(Motherpdg==1020040100||Motherpdg==1010050100){
450 if((pi3v.Mag()>0.097&&pi3v.Mag()<0.106)&&(pp3v.Mag()>0.094&&pp3v.Mag()<0.103)) {
468 if(Motherpdg==1020040120||Motherpdg==1010050120){
476 if((pi3v.Mag()>0.128&&pi3v.Mag()<0.147)&&(pp3v.Mag()>0.110&&pp3v.Mag()<0.124)) {
492 if(Motherpdg==1020020060||Motherpdg==1010030060){
500 if((pi3v.Mag()>0.128&&pi3v.Mag()<0.147)&&(pp3v.Mag()>0.124&&pp3v.Mag()<0.143)) {
521 if(pi3v.Mag()<pp3v.Mag()) {
524 hvtx2[0]->Fill(pp3v.Mag(),pi3v.Mag());
527 if(Motherpdg==1020040110||Motherpdg==1010050110){
533 if((pp3v.Mag()>0.12&&pp3v.Mag()<0.14)&&(pi3v.Mag()>0.065&&pi3v.Mag()<0.08)) {
536 hvtx2[1]->Fill(pp3v.Mag(),pi3v.Mag());
547 if(Motherpdg==1020030090||(Motherpdg==1010040090&& MotherId!=-1)){
552 if((pp3v.Mag()>0.112&&pp3v.Mag()<0.126)&&(pi3v.Mag()>0.09&&pi3v.Mag()<0.103))
567 if((pp3v.Mag()>0.128&&pp3v.Mag()<0.147)&&(pi3v.Mag()>0.0898&&pi3v.Mag()<0.109))
569 hvtx2[9]->Fill(pp3v.Mag(),pi3v.Mag());
580 if(Motherpdg==1020040100||Motherpdg==1010050100){
586 if((pp3v.Mag()>0.097&&pp3v.Mag()<0.106)&&(pi3v.Mag()>0.094&&pi3v.Mag()<0.103)) {
599 if(Motherpdg==1020040120||Motherpdg==1010050120){
605 if((pp3v.Mag()>0.128&&pp3v.Mag()<0.147)&&(pi3v.Mag()>0.110&&pi3v.Mag()<0.124)) {
620 if(Motherpdg==1020020060||Motherpdg==1010030060){
628 if((pp3v.Mag()>0.128&&pp3v.Mag()<0.147)&&(pi3v.Mag()>0.124&&pi3v.Mag()<0.143)) {
void Add(const RhoCandidate *c)
RhoMinusParticleSelector * minusSel
PndPidCandidate * GetRecoCandidate() const
TClonesArray * fMicroArray
void Select(RhoParticleSelectorBase *pidmgr)
TLorentzVector P4() const
static RhoFactory * Instance()
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
RhoSimplePionSelector * piSel
TVector3 GetStartVertex() const
Int_t GetMotherID() const
RhoPlusParticleSelector * plusSel
RhoCandidate * Get(Int_t)