Changes in display/DelphesBranchElement.cc [486c4c3:1fa50c2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/DelphesBranchElement.cc
r486c4c3 r1fa50c2 155 155 trkProp->SetMaxR(tkRadius_); 156 156 trkProp->SetMaxZ(tkHalfLength_); 157 GenParticle *particle;158 157 if(type=="Track") { // CASE 1: TRACKS 159 158 Track *track; … … 162 161 track->P4().Px(), track->P4().Py(), 163 162 track->P4().Pz(), track->P4().E(), 164 track->X /10.0, track->Y/10.0, track->Z/10.0, track->T/10.0);163 track->X, track->Y, track->Z, 0.0); 165 164 eveTrack = new TEveTrack(&pb, counter, trkProp); 166 165 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 174 173 Electron *electron; 175 174 while((electron = (Electron *) itTrack.Next())) { 176 particle = (GenParticle*) electron->Particle.GetObject();177 175 TParticle pb(electron->Charge<0?11:-11, 1, 0, 0, 0, 0, 178 176 electron->P4().Px(), electron->P4().Py(), 179 177 electron->P4().Pz(), electron->P4().E(), 180 particle->X/10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);178 0., 0., 0., 0.); 181 179 eveTrack = new TEveTrack(&pb, counter, trkProp); 182 180 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 190 188 Muon *muon; 191 189 while((muon = (Muon *) itTrack.Next())) { 192 particle = (GenParticle*) muon->Particle.GetObject();193 190 TParticle pb(muon->Charge<0?13:-13, 1, 0, 0, 0, 0, 194 191 muon->P4().Px(), muon->P4().Py(), 195 192 muon->P4().Pz(), muon->P4().E(), 196 particle->X/10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);193 0., 0., 0., 0.); 197 194 eveTrack = new TEveTrack(&pb, counter, trkProp); 198 195 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 209 206 photon->P4().Px(), photon->P4().Py(), 210 207 photon->P4().Pz(), photon->P4().E(), 211 0. 0, 0.0, 0.0, 0.0);208 0., 0., 0., 0.); 212 209 eveTrack = new TEveTrack(&pb, counter, trkProp); 213 210 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 226 223 particle->P4().Px(), particle->P4().Py(), 227 224 particle->P4().Pz(), particle->P4().E(), 228 particle->X /10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);225 particle->X, particle->Y, particle->Z, particle->T); 229 226 eveTrack = new TEveTrack(&pb, counter, trkProp); 230 227 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++));
Note:
See TracChangeset
for help on using the changeset viewer.