- Timestamp:
- Jan 13, 2017, 4:53:15 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- b1fd38d
- Parents:
- 7066f9c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/DelphesBranchElement.cc
r7066f9c r273735d 87 87 } 88 88 } else if(TString(GetType())=="MissingET") { 89 TIter itMet(branch_);89 // MissingET as invisible track (like a photon) 90 90 MissingET *MET; 91 TEveArrow *eveMet; 92 // Missing Et 93 while((MET = (MissingET*) itMet.Next())) { 94 eveMet = new TEveArrow((tkRadius_ * MET->MET/maxPt_)*cos(MET->Phi), (tkRadius_ * MET->MET/maxPt_)*sin(MET->Phi), 0., 0., 0., 0.); 95 eveMet->SetMainColor(GetColor()); 96 eveMet->SetTubeR(0.04); 97 eveMet->SetConeR(0.08); 98 eveMet->SetConeL(0.10); 99 eveMet->SetPickable(kTRUE); 91 TEveTrack *eveMet; 92 TEveTrackPropagator *trkProp = new TEveTrackPropagator(); 93 trkProp->SetMagField(0., 0., -tk_Bz_); 94 trkProp->SetMaxR(tkRadius_); 95 trkProp->SetMaxZ(tkHalfLength_); 96 if(branch_->GetEntriesFast() > 0) { 97 MET = (MissingET*) branch_->At(0); 98 TParticle pb(13, 1, 0, 0, 0, 0, 99 (tkRadius_ * MET->MET/maxPt_)*cos(MET->Phi), 100 (tkRadius_ * MET->MET/maxPt_)*sin(MET->Phi), 101 0., MET->MET, 0.0, 0.0, 0.0, 0.0); 102 eveMet = new TEveTrack(&pb, 0, trkProp); 100 103 eveMet->SetName("Missing Et"); 101 eveMet->SetTitle(Form("Missing Et (%.1f GeV)",MET->MET)); 104 eveMet->SetStdTitle(); 105 eveMet->SetRnrPoints(0); 106 eveMet->SetMarkerColor(kMagenta); 107 eveMet->SetMarkerStyle(4); 108 eveMet->SetMarkerSize(2.); 109 eveMet->SetLineWidth(2.); 110 eveMet->SetLineStyle(7); 102 111 data_->AddElement(eveMet); 112 eveMet->SetLineColor(GetColor()); 113 eveMet->MakeTrack(); 103 114 } 104 115 }
Note:
See TracChangeset
for help on using the changeset viewer.