- Timestamp:
- Nov 4, 2013, 2:13:47 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/DelphesClasses.h
r1318 r1321 36 36 37 37 Float_t ReadTime; 38 Float_t ProcTime; 38 Float_t ProcTime; 39 39 40 40 ClassDef(Event, 1) … … 75 75 76 76 Int_t ProcessID; // unique signal process id | signal_process_id() 77 Int_t MPI; // number of multi parton interactions | mpi () 77 Int_t MPI; // number of multi parton interactions | mpi () 78 78 79 79 Float_t Weight; // weight for the event … … 84 84 85 85 Int_t ID1; // flavour code of first parton | pdf_info()->id1() 86 Int_t ID2; // flavour code of second parton | pdf_info()->id2() 86 Int_t ID2; // flavour code of second parton | pdf_info()->id2() 87 87 88 88 Float_t X1; // fraction of beam momentum carried by first parton ("beam side") | pdf_info()->x1() … … 106 106 Int_t Status; // particle status | hepevt.isthep[number] 107 107 Int_t IsPU; // 0 or 1 for particles from pile-up interactions 108 108 109 109 110 110 Int_t M1; // particle 1st mother | hepevt.jmohep[number][0] - 1 … … 136 136 static CompBase *fgCompare; //! 137 137 const CompBase *GetCompare() const { return fgCompare; } 138 138 139 139 TLorentzVector P4(); 140 140 … … 172 172 public: 173 173 Float_t Rho; // rho energy density 174 Float_t Edges[2]; // pseudorapidity range edges 174 175 175 176 ClassDef(Rho, 1) … … 197 198 198 199 Float_t E; // photon energy 199 200 200 201 Float_t EhadOverEem; // ratio of the hadronic versus electromagnetic energy deposited in the calorimeter 201 202 … … 291 292 //--------------------------------------------------------------------------- 292 293 293 class Track: public SortableObject 294 { 295 public: 294 class Track: public SortableObject 295 { 296 public: 296 297 Int_t PID; // HEP ID number 297 298 … … 326 327 //--------------------------------------------------------------------------- 327 328 328 class Tower: public SortableObject 329 class Tower: public SortableObject 329 330 { 330 331 public: … … 352 353 //--------------------------------------------------------------------------- 353 354 354 class Candidate: public SortableObject 355 class Candidate: public SortableObject 355 356 { 356 357 friend class DelphesFactory; … … 367 368 368 369 Float_t Mass; 369 370 370 371 Int_t IsPU; 371 372 Int_t IsConstituent; 372 373 373 374 UInt_t BTag; 374 375 UInt_t TauTag; … … 393 394 virtual void Copy(TObject &object) const; 394 395 virtual TObject *Clone(const char *newname = "") const; 395 virtual void Clear(Option_t* option = ""); 396 virtual void Clear(Option_t* option = ""); 396 397 397 398 private: 398 399 DelphesFactory *fFactory; //! 399 400 TObjArray *fArray; //! 400 401 401 402 void SetFactory(DelphesFactory *factory) { fFactory = factory; } 402 403 -
trunk/modules/TreeWriter.cc
r1123 r1321 496 496 entry = static_cast<MissingET*>(branch->NewEntry()); 497 497 498 entry->Eta = (-momentum).Eta(); 498 499 entry->Phi = (-momentum).Phi(); 499 500 entry->MET = momentum.Pt(); … … 523 524 void TreeWriter::ProcessRho(ExRootTreeBranch *branch, TObjArray *array) 524 525 { 526 TIter iterator(array); 525 527 Candidate *candidate = 0; 526 528 Rho *entry = 0; 527 529 528 // get the first entry 529 if((candidate = static_cast<Candidate*>(array->At(0)))) 530 // loop over all rho 531 iterator.Reset(); 532 while((candidate = static_cast<Candidate*>(iterator.Next()))) 530 533 { 531 534 const TLorentzVector &momentum = candidate->Momentum; … … 534 537 535 538 entry->Rho = momentum.E(); 539 entry->Edges[0] = candidate->Edges[0]; 540 entry->Edges[1] = candidate->Edges[1]; 536 541 } 537 542 }
Note:
See TracChangeset
for help on using the changeset viewer.