Changeset 3c46e17 in git
- Timestamp:
- Jun 4, 2016, 8:08:56 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- a9c67b3a
- Parents:
- 3f8df25
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
classes/DelphesClasses.cc
r3f8df25 r3c46e17 41 41 CompBase *Tower::fgCompare = CompE<Tower>::Instance(); 42 42 CompBase *HectorHit::fgCompare = CompE<HectorHit>::Instance(); 43 CompBase *Vertex::fgCompare = CompSumPT2<Vertex>::Instance(); 43 44 CompBase *Candidate::fgCompare = CompMomentumPt<Candidate>::Instance(); 44 45 -
classes/DelphesClasses.h
r3f8df25 r3c46e17 191 191 Double_t GenSumPT2; 192 192 193 ClassDef(Vertex, 2) 193 static CompBase *fgCompare; //! 194 const CompBase *GetCompare() const { return fgCompare; } 195 196 ClassDef(Vertex, 3) 194 197 }; 195 198 … … 651 654 void SetFactory(DelphesFactory *factory) { fFactory = factory; } 652 655 653 ClassDef(Candidate, 4)656 ClassDef(Candidate, 5) 654 657 }; 655 658 -
classes/SortableObject.h
r3f8df25 r3c46e17 156 156 return -1; 157 157 else if(t1->ET < t2->ET) 158 return 1; 159 else 160 return 0; 161 } 162 }; 163 164 //--------------------------------------------------------------------------- 165 166 template <typename T> 167 class CompSumPT2: public CompBase 168 { 169 CompSumPT2() {} 170 public: 171 static CompSumPT2 *Instance() 172 { 173 static CompSumPT2 single; 174 return &single; 175 } 176 177 Int_t Compare(const TObject *obj1, const TObject *obj2) const 178 { 179 const T *t1 = static_cast<const T*>(obj1); 180 const T *t2 = static_cast<const T*>(obj2); 181 if(t1->SumPT2 > t2->SumPT2) 182 return -1; 183 else if(t1->SumPT2 < t2->SumPT2) 158 184 return 1; 159 185 else -
modules/TreeWriter.cc
r3f8df25 r3c46e17 247 247 Double_t x, y, z, t, xError, yError, zError, sigma, sumPT2, btvSumPT2, genDeltaZ, genSumPT2; 248 248 UInt_t index, ndf; 249 250 array->Sort(); 249 251 250 252 // loop over all vertices
Note:
See TracChangeset
for help on using the changeset viewer.