Fork me on GitHub

Changeset 306 in svn for trunk/Delphes.cpp


Ignore:
Timestamp:
Mar 9, 2009, 12:38:39 PM (16 years ago)
Author:
severine ovyn
Message:

OK flags very forward

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Delphes.cpp

    r305 r306  
    296296  ExRootTreeBranch *branchMuon = treeWriter->NewBranch("Muon", TRootMuon::Class());
    297297  ExRootTreeBranch *branchPhoton = treeWriter->NewBranch("Photon", TRootPhoton::Class());
    298   //ExRootTreeBranch *branchTracks = treeWriter->NewBranch("Tracks", TRootTracks::Class());
    299298  ExRootTreeBranch *branchTrack = treeWriter->NewBranch("Tracks", TRootTracks::Class());
    300299  ExRootTreeBranch *branchETmis = treeWriter->NewBranch("ETmis", TRootETmis::Class());
     
    318317  vector<fastjet::PseudoJet> input_particles;//for FastJet algorithm
    319318  vector<fastjet::PseudoJet> sorted_jets;
    320   //vector<TLorentzVector> TrackCentral; 
    321319  vector<TRootTracks> TrackCentral; 
    322320  vector<PhysicsTower> towers;
    323   //vector<ParticleUtil> electron;
    324321  vector<D_Particle> electron;
    325   //vector<ParticleUtil> muon;
    326322  vector<D_Particle> muon;
    327   //vector<ParticleUtil> gamma;
    328323  vector<D_Particle> gamma;
    329324
     
    509504            }
    510505            // 2.1a.2.5 : very forward detectors
    511             else if (DET->FLAG_vfd==1) {
    512                 // for the moment, only protons are transported
    513                 // BUT !!! could be a beam of other particles! (heavy ions?)
    514                 // BUT ALSO !!! if very forward muons, or others!
    515               VFD->RomanPots(treeWriter,branchRP220,branchFP420,particle);
    516               VFD->ZDC(treeWriter,branchZDC,particle);
    517             }
    518             // 2.1a.2.6: Zero degree calorimeter
    519             //else if(DET->FLAG_zdc==1) {
    520               //VFD->ZDC(treeWriter,branchZDC,particle);
    521             //}
     506            else
     507              {
     508                if (DET->FLAG_RP==1) {
     509                   // for the moment, only protons are transported
     510                   // BUT !!! could be a beam of other particles! (heavy ions?)
     511                   // BUT ALSO !!! if very forward muons, or others!
     512                   VFD->RomanPots(treeWriter,branchRP220,branchFP420,particle);
     513                }
     514                // 2.1a.2.6: Zero degree calorimeter
     515                if(DET->FLAG_vfd==1) {
     516                   VFD->ZDC(treeWriter,branchZDC,particle);
     517                }
     518              }
    522519
    523520          } // 2.1a.2 : if visible particle
     
    579576        elementElec->PhiCalo = electron[i].PhiCalo();
    580577        elementElec->Charge = sign(electron[i].PID());
    581         //elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,2.0,0.5);//isolation based on tracks
    582578        elementElec->IsolFlag = DET->Isolation(electron[i].Phi(),electron[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone);//isolation based on tracks
    583579      }                                                                                 /////////////// HARDCODING
     
    589585        elementMu->EtaCalo = muon[i].EtaCalo();
    590586        elementMu->PhiCalo = muon[i].PhiCalo();
    591         //elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,2.0,0.5); /////////////// HARDCODING
    592587        elementMu->IsolFlag = DET->Isolation(muon[i].Phi(),muon[i].Eta(),TrackCentral,DET->ISOL_PT,DET->ISOL_Cone); /////////////// HARDCODING
    593588      }
Note: See TracChangeset for help on using the changeset viewer.