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