Changeset d77b51d in git for display/Delphes3DGeometry.cc
- Timestamp:
- Sep 29, 2015, 2:08:10 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- a98c7ef
- Parents:
- d870fc5 (diff), 06ec139 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/Delphes3DGeometry.cc
rd870fc5 rd77b51d 17 17 */ 18 18 19 #include "display/Delphes3DGeometry.h"20 19 #include <set> 21 20 #include <map> … … 25 24 #include <sstream> 26 25 #include <cassert> 26 27 #include "TAxis.h" 27 28 #include "TGeoManager.h" 28 29 #include "TGeoVolume.h" … … 34 35 #include "TGeoCone.h" 35 36 #include "TGeoArb8.h" 36 #include "external/ExRootAnalysis/ExRootConfReader.h"37 #include "classes/DelphesClasses.h"38 37 #include "TF2.h" 38 #include "TFormula.h" 39 39 #include "TH1F.h" 40 40 #include "TMath.h" 41 #include "TString.h" 42 43 #include "display/Delphes3DGeometry.h" 44 45 #include "classes/DelphesClasses.h" 46 #include "external/ExRootAnalysis/ExRootConfReader.h" 41 47 42 48 using namespace std; … … 90 96 tk_length_ = confReader->GetDouble(Form("%s::HalfLength",ParticlePropagator), 3.0)*100.; // tk_length 91 97 tk_Bz_ = confReader->GetDouble("ParticlePropagator::Bz", 0.0); // tk_Bz 92 98 99 TString buffer; 100 const char *it; 101 102 93 103 { 94 104 TString tkEffFormula = confReader->GetString(Form("%s::EfficiencyFormula",TrackingEfficiency),"abs(eta)<3.0"); … … 96 106 tkEffFormula.ReplaceAll("eta","y"); 97 107 tkEffFormula.ReplaceAll("phi","0."); 98 TF2* tkEffFunction = new TF2("tkEff",tkEffFormula,0,1000,-10,10); 108 109 buffer.Clear(); 110 for(it = tkEffFormula.Data(); *it; ++it) 111 { 112 if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\' ) continue; 113 buffer.Append(*it); 114 } 115 116 TF2* tkEffFunction = new TF2("tkEff",buffer,0,1000,-10,10); 99 117 TH1F etaHisto("eta","eta",100,5.,-5.); 100 118 Double_t pt,eta; … … 118 136 muonEffFormula.ReplaceAll("eta","y"); 119 137 muonEffFormula.ReplaceAll("phi","0."); 120 TF2* muEffFunction = new TF2("muEff",muonEffFormula,0,1000,-10,10); 138 139 buffer.Clear(); 140 for(it = muonEffFormula.Data(); *it; ++it) 141 { 142 if(*it == ' ' || *it == '\t' || *it == '\r' || *it == '\n' || *it == '\\' ) continue; 143 buffer.Append(*it); 144 } 145 146 TF2* muEffFunction = new TF2("muEff",buffer,0,1000,-10,10); 121 147 TH1F etaHisto("eta2","eta2",100,5.,-5.); 122 148 Double_t pt,eta;
Note:
See TracChangeset
for help on using the changeset viewer.