Changes in / [dd514ae:6ec8d18] in git
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rdd514ae r6ec8d18 29 29 OPT_LIBS += -L$(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH))) 30 30 endif 31 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormats Common -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils -lDataFormatsCommon31 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils -lDataFormatsCommon 32 32 endif 33 33 -
cards/delphes_card_FCC_basic.tcl
rdd514ae r6ec8d18 226 226 set EFlowTowerOutputArray eflowPhotons 227 227 228 set IsEcal true229 230 228 set EnergyMin 0.5 231 229 set EnergySignificanceMin 1.0 … … 292 290 set EFlowTowerOutputArray eflowNeutralHadrons 293 291 294 set IsEcal false295 296 292 set EnergyMin 1.0 297 293 set EnergySignificanceMin 1.0 … … 435 431 436 432 module FastJetFinder FastJetFinder { 437 # set InputArray TowerMerger/towers433 # set InputArray Calorimeter/towers 438 434 set InputArray EFlowMerger/eflow 439 435 -
cards/delphes_card_LHCb.tcl
rdd514ae r6ec8d18 223 223 set TowerOutputArray ecalTowers 224 224 set EFlowTowerOutputArray eflowPhotons 225 226 set IsEcal true227 225 228 226 set EnergyMin 0.0 … … 305 303 set TowerOutputArray hcalTowers 306 304 set EFlowTowerOutputArray eflowNeutralHadrons 307 308 set IsEcal false309 305 310 306 set EnergyMin 0.0 -
classes/DelphesClasses.cc
rdd514ae r6ec8d18 45 45 //------------------------------------------------------------------------------ 46 46 47 TLorentzVector GenParticle::P4() const47 TLorentzVector GenParticle::P4() 48 48 { 49 49 TLorentzVector vec; … … 54 54 //------------------------------------------------------------------------------ 55 55 56 TLorentzVector MissingET::P4() const56 TLorentzVector MissingET::P4() 57 57 { 58 58 TLorentzVector vec; … … 63 63 //------------------------------------------------------------------------------ 64 64 65 TLorentzVector Photon::P4() const65 TLorentzVector Photon::P4() 66 66 { 67 67 TLorentzVector vec; … … 72 72 //------------------------------------------------------------------------------ 73 73 74 TLorentzVector Electron::P4() const74 TLorentzVector Electron::P4() 75 75 { 76 76 TLorentzVector vec; … … 81 81 //------------------------------------------------------------------------------ 82 82 83 TLorentzVector Muon::P4() const83 TLorentzVector Muon::P4() 84 84 { 85 85 TLorentzVector vec; … … 90 90 //------------------------------------------------------------------------------ 91 91 92 TLorentzVector Jet::P4() const92 TLorentzVector Jet::P4() 93 93 { 94 94 TLorentzVector vec; … … 99 99 //------------------------------------------------------------------------------ 100 100 101 TLorentzVector Track::P4() const101 TLorentzVector Track::P4() 102 102 { 103 103 TLorentzVector vec; … … 108 108 //------------------------------------------------------------------------------ 109 109 110 TLorentzVector Tower::P4() const110 TLorentzVector Tower::P4() 111 111 { 112 112 TLorentzVector vec; -
classes/DelphesClasses.h
rdd514ae r6ec8d18 161 161 const CompBase *GetCompare() const { return fgCompare; } 162 162 163 TLorentzVector P4() const;163 TLorentzVector P4(); 164 164 165 165 ClassDef(GenParticle, 1) … … 188 188 Float_t Phi; // mising energy azimuthal angle 189 189 190 TLorentzVector P4() const;190 TLorentzVector P4(); 191 191 192 192 ClassDef(MissingET, 1) … … 254 254 const CompBase *GetCompare() const { return fgCompare; } 255 255 256 TLorentzVector P4() const;256 TLorentzVector P4(); 257 257 258 258 ClassDef(Photon, 2) … … 289 289 const CompBase *GetCompare() const { return fgCompare; } 290 290 291 TLorentzVector P4() const;291 TLorentzVector P4(); 292 292 293 293 ClassDef(Electron, 2) … … 322 322 const CompBase *GetCompare() const { return fgCompare; } 323 323 324 TLorentzVector P4() const;324 TLorentzVector P4(); 325 325 326 326 ClassDef(Muon, 2) … … 419 419 const CompBase *GetCompare() const { return fgCompare; } 420 420 421 TLorentzVector P4() const;421 TLorentzVector P4(); 422 422 423 423 ClassDef(Track, 2) … … 448 448 const CompBase *GetCompare() const { return fgCompare; } 449 449 450 TLorentzVector P4() const;450 TLorentzVector P4(); 451 451 452 452 ClassDef(Tower, 1) -
display/Delphes3DGeometry.cc
rdd514ae r6ec8d18 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; -
display/DelphesBranchElement.cc
rdd514ae r6ec8d18 155 155 trkProp->SetMaxR(tkRadius_); 156 156 trkProp->SetMaxZ(tkHalfLength_); 157 GenParticle *particle;158 157 if(type=="Track") { // CASE 1: TRACKS 159 158 Track *track; … … 162 161 track->P4().Px(), track->P4().Py(), 163 162 track->P4().Pz(), track->P4().E(), 164 track->X /10.0, track->Y/10.0, track->Z/10.0, track->T/10.0);163 track->X, track->Y, track->Z, 0.0); 165 164 eveTrack = new TEveTrack(&pb, counter, trkProp); 166 165 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 174 173 Electron *electron; 175 174 while((electron = (Electron *) itTrack.Next())) { 176 particle = (GenParticle*) electron->Particle.GetObject();177 175 TParticle pb(electron->Charge<0?11:-11, 1, 0, 0, 0, 0, 178 176 electron->P4().Px(), electron->P4().Py(), 179 177 electron->P4().Pz(), electron->P4().E(), 180 particle->X/10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);178 0., 0., 0., 0.); 181 179 eveTrack = new TEveTrack(&pb, counter, trkProp); 182 180 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 190 188 Muon *muon; 191 189 while((muon = (Muon *) itTrack.Next())) { 192 particle = (GenParticle*) muon->Particle.GetObject();193 190 TParticle pb(muon->Charge<0?13:-13, 1, 0, 0, 0, 0, 194 191 muon->P4().Px(), muon->P4().Py(), 195 192 muon->P4().Pz(), muon->P4().E(), 196 particle->X/10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);193 0., 0., 0., 0.); 197 194 eveTrack = new TEveTrack(&pb, counter, trkProp); 198 195 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 209 206 photon->P4().Px(), photon->P4().Py(), 210 207 photon->P4().Pz(), photon->P4().E(), 211 0. 0, 0.0, 0.0, 0.0);208 0., 0., 0., 0.); 212 209 eveTrack = new TEveTrack(&pb, counter, trkProp); 213 210 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); … … 226 223 particle->P4().Px(), particle->P4().Py(), 227 224 particle->P4().Pz(), particle->P4().E(), 228 particle->X /10.0, particle->Y/10.0, particle->Z/10.0, particle->T/10.0);225 particle->X, particle->Y, particle->Z, particle->T); 229 226 eveTrack = new TEveTrack(&pb, counter, trkProp); 230 227 eveTrack->SetName(Form("%s [%d]", pb.GetName(), counter++)); -
doc/genMakefile.tcl
rdd514ae r6ec8d18 219 219 OPT_LIBS += -L$(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH))) 220 220 endif 221 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormats Common -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils -lDataFormatsCommon221 OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils -lDataFormatsCommon 222 222 endif 223 223 -
modules/AngularSmearing.cc
rdd514ae r6ec8d18 100 100 { 101 101 Candidate *candidate, *mother; 102 Double_t pt, eta, phi , e;102 Double_t pt, eta, phi; 103 103 104 104 fItInputArray->Reset(); … … 110 110 phi = candidatePosition.Phi(); 111 111 pt = candidateMomentum.Pt(); 112 e = candidateMomentum.E();113 112 114 113 // apply smearing formula for eta,phi 115 114 116 eta = gRandom->Gaus(eta, fFormulaEta->Eval(pt, eta , phi, e));117 phi = gRandom->Gaus(phi, fFormulaPhi->Eval(pt, eta , phi, e));115 eta = gRandom->Gaus(eta, fFormulaEta->Eval(pt, eta)); 116 phi = gRandom->Gaus(phi, fFormulaPhi->Eval(pt, eta)); 118 117 119 118 if(pt <= 0.0) continue; -
modules/BTagging.cc
rdd514ae r6ec8d18 171 171 { 172 172 Candidate *jet, *parton; 173 Double_t pt, eta, phi , e;173 Double_t pt, eta, phi; 174 174 TObjArray *partonArray; 175 175 map< Int_t, DelphesFormula * >::iterator itEfficiencyMap; … … 194 194 phi = jetMomentum.Phi(); 195 195 pt = jetMomentum.Pt(); 196 e = jetMomentum.E(); 197 196 198 197 // loop over all input partons 199 198 itPartonArray.Reset(); … … 219 218 220 219 // apply an efficency formula 221 jet->BTag |= (gRandom->Uniform() <= formula->Eval(pt, eta , phi, e)) << fBitNumber;222 } 223 } 224 225 //------------------------------------------------------------------------------ 220 jet->BTag |= (gRandom->Uniform() <= formula->Eval(pt, eta)) << fBitNumber; 221 } 222 } 223 224 //------------------------------------------------------------------------------ -
modules/Efficiency.cc
rdd514ae r6ec8d18 96 96 { 97 97 Candidate *candidate; 98 Double_t pt, eta, phi , e;98 Double_t pt, eta, phi; 99 99 100 100 fItInputArray->Reset(); … … 106 106 phi = candidatePosition.Phi(); 107 107 pt = candidateMomentum.Pt(); 108 e = candidateMomentum.E();109 108 110 109 // apply an efficency formula 111 if(gRandom->Uniform() > fFormula->Eval(pt, eta , phi, e)) continue;110 if(gRandom->Uniform() > fFormula->Eval(pt, eta)) continue; 112 111 113 112 fOutputArray->Add(candidate); -
modules/EnergyScale.cc
rdd514ae r6ec8d18 104 104 momentum = candidate->Momentum; 105 105 106 scale = fFormula->Eval(momentum.Pt(), momentum.Eta() , momentum.Phi(), momentum.E());106 scale = fFormula->Eval(momentum.Pt(), momentum.Eta()); 107 107 108 108 if(scale > 0.0) momentum *= scale; -
modules/EnergySmearing.cc
rdd514ae r6ec8d18 96 96 { 97 97 Candidate *candidate, *mother; 98 Double_t pt,energy, eta, phi;98 Double_t energy, eta, phi; 99 99 100 100 fItInputArray->Reset(); … … 103 103 const TLorentzVector &candidatePosition = candidate->Position; 104 104 const TLorentzVector &candidateMomentum = candidate->Momentum; 105 106 pt = candidatePosition.Pt();107 105 eta = candidatePosition.Eta(); 108 106 phi = candidatePosition.Phi(); … … 110 108 111 109 // apply smearing formula 112 energy = gRandom->Gaus(energy, fFormula->Eval( pt, eta, phi, energy));110 energy = gRandom->Gaus(energy, fFormula->Eval(0.0, eta, 0.0, energy)); 113 111 114 112 if(energy <= 0.0) continue; -
modules/IdentificationMap.cc
rdd514ae r6ec8d18 127 127 { 128 128 Candidate *candidate; 129 Double_t pt, eta, phi , e;129 Double_t pt, eta, phi; 130 130 TMisIDMap::iterator itEfficiencyMap; 131 131 pair <TMisIDMap::iterator, TMisIDMap::iterator> range; … … 143 143 phi = candidatePosition.Phi(); 144 144 pt = candidateMomentum.Pt(); 145 e = candidateMomentum.E();146 147 145 pdgCodeIn = candidate->PID; 148 146 charge = candidate->Charge; … … 166 164 pdgCodeOut = (it->second).first; 167 165 168 p = formula->Eval(pt, eta , phi, e);166 p = formula->Eval(pt, eta); 169 167 170 168 if(total <= r && r < total + p) -
modules/ImpactParameterSmearing.cc
rdd514ae r6ec8d18 97 97 Candidate *candidate, *particle, *mother; 98 98 Double_t xd, yd, zd, dxy, sx, sy, sz, ddxy; 99 Double_t pt, eta, px, py , phi, e;99 Double_t pt, eta, px, py; 100 100 101 101 fItInputArray->Reset(); … … 110 110 eta = candidateMomentum.Eta(); 111 111 pt = candidateMomentum.Pt(); 112 phi = candidateMomentum.Phi();113 e = candidateMomentum.E();114 115 112 px = candidateMomentum.Px(); 116 113 py = candidateMomentum.Py(); … … 122 119 123 120 // calculate smeared values 124 sx = gRandom->Gaus(0.0, fFormula->Eval(pt, eta , phi, e));125 sy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta , phi, e));126 sz = gRandom->Gaus(0.0, fFormula->Eval(pt, eta , phi, e));121 sx = gRandom->Gaus(0.0, fFormula->Eval(pt, eta)); 122 sy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta)); 123 sz = gRandom->Gaus(0.0, fFormula->Eval(pt, eta)); 127 124 128 125 xd += sx; … … 133 130 dxy = (xd*py - yd*px)/pt; 134 131 135 ddxy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta , phi, e));132 ddxy = gRandom->Gaus(0.0, fFormula->Eval(pt, eta)); 136 133 137 134 // fill smeared values in candidate -
modules/MomentumSmearing.cc
rdd514ae r6ec8d18 96 96 { 97 97 Candidate *candidate, *mother; 98 Double_t pt, eta, phi , e;98 Double_t pt, eta, phi; 99 99 100 100 fItInputArray->Reset(); … … 106 106 phi = candidatePosition.Phi(); 107 107 pt = candidateMomentum.Pt(); 108 e = candidateMomentum.E();109 108 110 109 // apply smearing formula 111 pt = gRandom->Gaus(pt, fFormula->Eval(pt, eta , phi, e) * pt);110 pt = gRandom->Gaus(pt, fFormula->Eval(pt, eta) * pt); 112 111 113 112 if(pt <= 0.0) continue; -
modules/SimpleCalorimeter.cc
rdd514ae r6ec8d18 149 149 150 150 fEnergySignificanceMin = GetDouble("EnergySignificanceMin", 0.0); 151 152 // flag that says if current calo is Ecal of Hcal (will then fill correct values of Eem and Ehad)153 fIsEcal = GetBool("IsEcal", false);154 151 155 152 // switch on or off the dithering of the center of calorimeter towers … … 428 425 fTower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); 429 426 430 fTower->Eem = (!fIsEcal) ? 0 : energy;431 fTower->Ehad = (fIsEcal) ? 0 : energy;432 433 427 fTower->Edges[0] = fTowerEdges[0]; 434 428 fTower->Edges[1] = fTowerEdges[1]; … … 453 447 pt = energy / TMath::CosH(eta); 454 448 455 tower->Eem = (!fIsEcal) ? 0 : energy;456 tower->Ehad = (fIsEcal) ? 0 : energy;457 458 449 tower->Momentum.SetPtEtaPhiE(pt, eta, phi, energy); 459 450 fEFlowTowerOutputArray->Add(tower); -
modules/SimpleCalorimeter.h
rdd514ae r6ec8d18 1 2 1 /* 3 2 * Delphes: a framework for fast simulation of a generic collider experiment … … 75 74 Bool_t fSmearTowerCenter; 76 75 77 Bool_t fIsEcal; //!78 79 76 TFractionMap fFractionMap; //! 80 77 TBinMap fBinMap; //! -
modules/TaggingParticlesSkimmer.cc
rdd514ae r6ec8d18 162 162 163 163 eta = TMath::Abs(candidate->Momentum.Eta()); 164 if(eta >fEtaMax) continue;164 if(eta < fEtaMax) continue; 165 165 166 166 fOutputArray->Add(candidate); -
modules/TauTagging.cc
rdd514ae r6ec8d18 73 73 74 74 if(tau->D1 < 0) return -1; 75 76 if(tau->D2 < tau->D1) return -1;77 75 78 76 if(tau->D1 >= fParticleInputArray->GetEntriesFast() || … … 203 201 tauArray = fFilter->GetSubArray(fClassifier, 0); 204 202 203 if(tauArray == 0) return; 204 205 TIter itTauArray(tauArray); 206 205 207 // loop over all input jets 206 208 fItJetInputArray->Reset(); … … 215 217 216 218 // loop over all input taus 217 if(tauArray){ 218 TIter itTauArray(tauArray); 219 while((tau = static_cast<Candidate *>(itTauArray.Next()))) 219 itTauArray.Reset(); 220 while((tau = static_cast<Candidate *>(itTauArray.Next()))) 221 { 222 if(tau->D1 < 0) continue; 223 224 if(tau->D1 >= fParticleInputArray->GetEntriesFast() || 225 tau->D2 >= fParticleInputArray->GetEntriesFast()) 220 226 { 221 if(tau->D1 < 0) continue; 222 223 if(tau->D1 >= fParticleInputArray->GetEntriesFast() || 224 tau->D2 >= fParticleInputArray->GetEntriesFast()) 225 { 226 throw runtime_error("tau's daughter index is greater than the ParticleInputArray size"); 227 } 228 229 tauMomentum.SetPxPyPzE(0.0, 0.0, 0.0, 0.0); 230 231 for(i = tau->D1; i <= tau->D2; ++i) 232 { 233 daughter = static_cast<Candidate *>(fParticleInputArray->At(i)); 234 if(TMath::Abs(daughter->PID) == 16) continue; 235 tauMomentum += daughter->Momentum; 236 } 237 238 if(jetMomentum.DeltaR(tauMomentum) <= fDeltaR) 239 { 240 pdgCode = 15; 241 charge = tau->Charge; 242 } 227 throw runtime_error("tau's daughter index is greater than the ParticleInputArray size"); 228 } 229 230 tauMomentum.SetPxPyPzE(0.0, 0.0, 0.0, 0.0); 231 232 for(i = tau->D1; i <= tau->D2; ++i) 233 { 234 daughter = static_cast<Candidate *>(fParticleInputArray->At(i)); 235 if(TMath::Abs(daughter->PID) == 16) continue; 236 tauMomentum += daughter->Momentum; 237 } 238 239 if(jetMomentum.DeltaR(tauMomentum) <= fDeltaR) 240 { 241 pdgCode = 15; 242 charge = tau->Charge; 243 243 } 244 244 } -
readers/DelphesCMSFWLite.cpp
rdd514ae r6ec8d18 56 56 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h" 57 57 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h" 58 #include "SimDataFormats/GeneratorProducts/interface/LHEEventProduct.h"59 #include "SimDataFormats/GeneratorProducts/interface/WeightsInfo.h"60 58 61 59 using namespace std; … … 64 62 65 63 void ConvertInput(fwlite::Event &event, Long64_t eventCounter, 66 ExRootTreeBranch *branchEvent, ExRootTreeBranch *branchRwgt,67 DelphesFactory *factory, TObjArray *allParticleOutputArray,68 TObjArray * stableParticleOutputArray, TObjArray *partonOutputArray)64 ExRootTreeBranch *branchEvent, DelphesFactory *factory, 65 TObjArray *allParticleOutputArray, TObjArray *stableParticleOutputArray, 66 TObjArray *partonOutputArray) 69 67 { 70 68 fwlite::Handle< GenEventInfoProduct > handleGenEventInfo; 71 69 72 fwlite::Handle< LHEEventProduct > handleLHEEvent;73 74 70 fwlite::Handle< vector< reco::GenParticle > > handleParticle; 75 71 vector< reco::GenParticle >::const_iterator itParticle; … … 79 75 80 76 handleGenEventInfo.getByLabel(event, "generator"); 81 handleLHEEvent.getByLabel(event, "source");82 77 handleParticle.getByLabel(event, "genParticles"); 83 78 84 79 HepMCEvent *element; 85 Weight *weight;86 80 Candidate *candidate; 87 81 TDatabasePDG *pdg; … … 92 86 Double_t px, py, pz, e, mass; 93 87 Double_t x, y, z; 94 95 const vector< gen::WeightsInfo > &vectorWeightsInfo = handleLHEEvent->weights();96 vector< gen::WeightsInfo >::const_iterator itWeightsInfo;97 88 98 89 element = static_cast<HepMCEvent *>(branchEvent->NewEntry()); … … 117 108 element->ReadTime = 0.0; 118 109 element->ProcTime = 0.0; 119 120 for(itWeightsInfo = vectorWeightsInfo.begin(); itWeightsInfo != vectorWeightsInfo.end(); ++itWeightsInfo)121 {122 weight = static_cast<Weight *>(branchRwgt->NewEntry());123 weight->Weight = itWeightsInfo->wgt;124 }125 110 126 111 pdg = TDatabasePDG::Instance(); … … 201 186 TStopwatch eventStopWatch; 202 187 ExRootTreeWriter *treeWriter = 0; 203 ExRootTreeBranch *branchEvent = 0 , *branchRwgt = 0;188 ExRootTreeBranch *branchEvent = 0; 204 189 ExRootConfReader *confReader = 0; 205 190 Delphes *modularDelphes = 0; … … 241 226 242 227 branchEvent = treeWriter->NewBranch("Event", HepMCEvent::Class()); 243 branchRwgt = treeWriter->NewBranch("Rwgt", Weight::Class());244 228 245 229 confReader = new ExRootConfReader; … … 284 268 for(event.toBegin(); !event.atEnd() && !interrupted; ++event) 285 269 { 286 ConvertInput(event, eventCounter, branchEvent, branchRwgt,factory,270 ConvertInput(event, eventCounter, branchEvent, factory, 287 271 allParticleOutputArray, stableParticleOutputArray, partonOutputArray); 288 272 modularDelphes->ProcessTask();
Note:
See TracChangeset
for help on using the changeset viewer.