Changeset f53a4d2 in git for display/Delphes3DGeometry.cc
- Timestamp:
- Jun 26, 2015, 11:17:38 AM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 28027d5, d38348d
- Parents:
- c9803f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/Delphes3DGeometry.cc
rc9803f7 rf53a4d2 17 17 */ 18 18 19 #include "display/Delphes3DGeometry.h"20 19 #include <set> 21 20 #include <map> 22 #include <string>23 21 #include <utility> 24 22 #include <vector> … … 26 24 #include <sstream> 27 25 #include <cassert> 26 27 #include "TAxis.h" 28 28 #include "TGeoManager.h" 29 29 #include "TGeoVolume.h" … … 35 35 #include "TGeoCone.h" 36 36 #include "TGeoArb8.h" 37 #include "external/ExRootAnalysis/ExRootConfReader.h"38 #include "classes/DelphesClasses.h"39 37 #include "TF2.h" 40 38 #include "TFormula.h" 41 39 #include "TH1F.h" 42 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" 43 47 44 48 using namespace std; … … 93 97 tk_Bz_ = confReader->GetDouble("ParticlePropagator::Bz", 0.0); // tk_Bz 94 98 95 string buffer;99 TString buffer; 96 100 const char *it; 97 101 … … 103 107 tkEffFormula.ReplaceAll("phi","0."); 104 108 109 buffer.Clear(); 105 110 for(it = tkEffFormula.Data(); *it; ++it) 106 111 { 107 112 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);113 buffer.Append(*it); 114 } 115 116 TF2* tkEffFunction = new TF2("tkEff",buffer,0,1000,-10,10); 112 117 TH1F etaHisto("eta","eta",100,5.,-5.); 113 118 Double_t pt,eta; … … 132 137 muonEffFormula.ReplaceAll("phi","0."); 133 138 134 buffer. clear();139 buffer.Clear(); 135 140 for(it = muonEffFormula.Data(); *it; ++it) 136 141 { 137 142 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);143 buffer.Append(*it); 144 } 145 146 TF2* muEffFunction = new TF2("muEff",buffer,0,1000,-10,10); 142 147 TH1F etaHisto("eta2","eta2",100,5.,-5.); 143 148 Double_t pt,eta;
Note:
See TracChangeset
for help on using the changeset viewer.