Changes in / [e024347:4f34105] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/Delphes3DGeometry.cc
re024347 r4f34105 20 20 #include <set> 21 21 #include <map> 22 #include <string>23 22 #include <utility> 24 23 #include <vector> … … 38 37 #include "classes/DelphesClasses.h" 39 38 #include "TF2.h" 40 #include "TFormula.h"41 39 #include "TH1F.h" 42 40 #include "TMath.h" … … 92 90 tk_length_ = confReader->GetDouble(Form("%s::HalfLength",ParticlePropagator), 3.0)*100.; // tk_length 93 91 tk_Bz_ = confReader->GetDouble("ParticlePropagator::Bz", 0.0); // tk_Bz 94 95 string buffer; 96 const char *it; 97 98 92 99 93 { 100 94 TString tkEffFormula = confReader->GetString(Form("%s::EfficiencyFormula",TrackingEfficiency),"abs(eta)<3.0"); … … 102 96 tkEffFormula.ReplaceAll("eta","y"); 103 97 tkEffFormula.ReplaceAll("phi","0."); 104 105 for(it = tkEffFormula.Data(); *it; ++it) 106 { 107 if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\' ) continue; 108 buffer.push_back(*it); 109 } 110 111 TF2* tkEffFunction = new TF2("tkEff",buffer.c_str(),0,1000,-10,10); 98 TF2* tkEffFunction = new TF2("tkEff",tkEffFormula,0,1000,-10,10); 112 99 TH1F etaHisto("eta","eta",100,5.,-5.); 113 100 Double_t pt,eta; … … 131 118 muonEffFormula.ReplaceAll("eta","y"); 132 119 muonEffFormula.ReplaceAll("phi","0."); 133 134 buffer.clear(); 135 for(it = muonEffFormula.Data(); *it; ++it) 136 { 137 if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\' ) continue; 138 buffer.push_back(*it); 139 } 140 141 TF2* muEffFunction = new TF2("muEff",buffer.c_str(),0,1000,-10,10); 120 TF2* muEffFunction = new TF2("muEff",muonEffFormula,0,1000,-10,10); 142 121 TH1F etaHisto("eta2","eta2",100,5.,-5.); 143 122 Double_t pt,eta;
Note:
See TracChangeset
for help on using the changeset viewer.