Changeset 268 in svn for trunk/Utilities/ExRootAnalysis/src
- Timestamp:
- Feb 13, 2009, 10:18:55 PM (16 years ago)
- Location:
- trunk/Utilities/ExRootAnalysis/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc
r267 r268 1 /** \class BlockClasses 2 * 3 * Initialization of static fgCompare functions. At the moment a number of 4 * functions TCompare*** are implemented (see BlockCompare.h). 5 * Function TCompareXX sorts objects 6 * by the variable "XX" that MUST be present in the data members of the 7 * Block TRoot class. 8 * By default most objects are sorted by PT or ET. 9 * Only calorimeter cells and basic cluster are sorted by E 10 * TRootGenParticle particle is not sorted by default 11 * to preserve mother-dautherlinks between particles. 12 * 13 * $Date: 2009-02-13 19:38:03 $ 14 * $Revision: 1.9 $ 15 * 16 * 17 * \author S. Ovyn - UCL, Louvain-la-Neuve 18 * 19 */ 1 /*********************************************************************** 2 ** ** 3 ** /----------------------------------------------\ ** 4 ** | Delphes, a framework for the fast simulation | ** 5 ** | of a generic collider experiment | ** 6 ** \----------------------------------------------/ ** 7 ** ** 8 ** ** 9 ** This package uses: ** 10 ** ------------------ ** 11 ** FastJet algorithm: Phys. Lett. B641 (2006) [hep-ph/0512210] ** 12 ** Hector: JINST 2:P09005 (2007) [physics.acc-ph:0707.1198v2] ** 13 ** FROG: [hep-ex/0901.2718v1] ** 14 ** ** 15 ** ------------------------------------------------------------------ ** 16 ** ** 17 ** Main authors: ** 18 ** ------------- ** 19 ** ** 20 ** Severine Ovyn Xavier Rouby ** 21 ** severine.ovyn@uclouvain.be xavier.rouby@cern ** 22 ** ** 23 ** Center for Particle Physics and Phenomenology (CP3) ** 24 ** Universite catholique de Louvain (UCL) ** 25 ** Louvain-la-Neuve, Belgium ** 26 ** ** 27 ** Copyright (C) 2008-2009, ** 28 ** All rights reserved. ** 29 ** ** 30 ***********************************************************************/ 20 31 21 32 #include "BlockClasses.h" … … 30 41 TCompare *TRootTauJet::fgCompare = TComparePT<TRootTauJet>::Instance(); 31 42 TCompare *TRootJet::fgCompare = TComparePT<TRootJet>::Instance(); 32 TCompare *TRootTracks::fgCompare = TComparePT<TRootTracks>::Instance();43 TCompare *TRootTracks::fgCompare = 0; 33 44 TCompare *TRootETmis::fgCompare = 0; 34 45 TCompare *TRootCalo::fgCompare = 0; … … 39 50 TCompare *TRootRomanPotHits::fgCompare =0; 40 51 TCompare *TRootTrigger::fgCompare =0; 41 //TCompare *D_CaloTower::fgCompare=0;42 TCompare *D_Track::fgCompare=0;43 52 44 53 void TRootParticle::Set(const TLorentzVector& momentum) { … … 107 116 float PT, E, Px, Py, Pz; 108 117 109 D_Track::D_Track() :118 TRootTracks::TRootTracks() : 110 119 Eta(UNDEFINED), Phi(UNDEFINED), EtaOuter(UNDEFINED), PhiOuter(UNDEFINED), 111 120 PT(UNDEFINED), E(UNDEFINED), Px(UNDEFINED), Py(UNDEFINED), Pz(UNDEFINED) {} 112 121 113 D_Track::D_Track(const float inEta, const float inPhi, const float outEta, const float outPhi, const float pt) :122 TRootTracks::TRootTracks(const float inEta, const float inPhi, const float outEta, const float outPhi, const float pt) : 114 123 Eta(inEta), Phi(inPhi), EtaOuter(outEta), PhiOuter(outPhi), 115 124 PT(pt) { … … 117 126 Px = p.Px(); Py = p.Py(); Pz = p.Pz(); E=p.E(); 118 127 } 119 120 D_Track::D_Track(const D_Track& track) : 128 TRootTracks::TRootTracks(const TRootTracks& track) : 121 129 Eta(track.Eta), Phi(track.Phi), 122 130 EtaOuter(track.EtaOuter), PhiOuter(track.PhiOuter), 123 131 PT(track.PT), E(track.E), Px(track.Px), Py(track.Py), Pz(track.Pz) {} 124 132 125 D_Track& D_Track::operator=(const D_Track& track) {133 TRootTracks& TRootTracks::operator=(const TRootTracks& track) { 126 134 if(this == &track) return *this; 127 135 Eta = track.Eta; Phi = track.Phi; … … 131 139 } 132 140 133 void D_Track::Set(const float inEta, const float inPhi, const float outEta, const float outPhi, const float pt) {141 void TRootTracks::Set(const float inEta, const float inPhi, const float outEta, const float outPhi, const float pt) { 134 142 Eta= inEta; Phi=inPhi; EtaOuter=outEta; PhiOuter=outPhi; PT=pt; 135 143 TLorentzVector p; p.SetPtEtaPhiE(PT,Eta,Phi,PT*cosh(Eta)); … … 137 145 } 138 146 139 const TLorentzVector D_Track::GetFourVector() const {147 const TLorentzVector TRootTracks::GetFourVector() const { 140 148 TLorentzVector v; 141 149 v.SetPtEtaPhiE(PT,Eta,Phi,PT*cosh(Eta)); … … 162 170 E_em=cal.getEem(); E_had=cal.getEhad(); 163 171 E =cal.getE(); ET =cal.getET(); 164 //EtaCalo = cal.getEta();165 //PhiCalo = cal.getPhi();166 172 } 167 168 169 TRootTracks::TRootTracks(const D_Track& track) :170 E(track.getE()), Px(track.getPx()), Py(track.getPy()), Pz(track.getPz()),171 Eta(track.getEta()), Phi(track.getPhi()),172 /*Etaout(track.getEtaOuter()),*/ EtaCalo(track.getEtaOuter()), /*Phiout(track.getPhiOuter()),*/ PhiCalo(track.getPhiOuter()) {}173 -
trunk/Utilities/ExRootAnalysis/src/BlockClassesLinkDef.h
r267 r268 1 2 /** \class BlockClassesLinkDef 3 * 4 * Lists classes to be included in cint dicitonary 5 * 6 * $Date: 2009-02-13 19:38:03 $ 7 * $Revision: 1.4 $ 8 * 9 * 10 * \author S. Ovyn - UCL, Louvain-la-Neuve 11 * 12 */ 1 /*********************************************************************** 2 ** ** 3 ** /----------------------------------------------\ ** 4 ** | Delphes, a framework for the fast simulation | ** 5 ** | of a generic collider experiment | ** 6 ** \----------------------------------------------/ ** 7 ** ** 8 ** ** 9 ** This package uses: ** 10 ** ------------------ ** 11 ** FastJet algorithm: Phys. Lett. B641 (2006) [hep-ph/0512210] ** 12 ** Hector: JINST 2:P09005 (2007) [physics.acc-ph:0707.1198v2] ** 13 ** FROG: [hep-ex/0901.2718v1] ** 14 ** ** 15 ** ------------------------------------------------------------------ ** 16 ** ** 17 ** Main authors: ** 18 ** ------------- ** 19 ** ** 20 ** Severine Ovyn Xavier Rouby ** 21 ** severine.ovyn@uclouvain.be xavier.rouby@cern ** 22 ** ** 23 ** Center for Particle Physics and Phenomenology (CP3) ** 24 ** Universite catholique de Louvain (UCL) ** 25 ** Louvain-la-Neuve, Belgium ** 26 ** ** 27 ** Copyright (C) 2008-2009, ** 28 ** All rights reserved. ** 29 ** ** 30 ***********************************************************************/ 13 31 14 32 #include "Utilities/ExRootAnalysis/interface/BlockClasses.h" … … 40 58 #pragma link C++ class TRootLHEFEvent+; 41 59 #pragma link C++ class TRootLHEFParticle+; 42 #pragma link C++ class D_Track+;43 //#pragma link C++ class D_CaloTower+;44 45 60 46 61 #endif
Note:
See TracChangeset
for help on using the changeset viewer.