Fork me on GitHub

source: svn/trunk/Utilities/ExRootAnalysis/src/BlockClasses.cc@ 13

Last change on this file since 13 was 3, checked in by Xavier Rouby, 16 years ago

first commit

File size: 1.7 KB
Line 
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: 2008-11-04 10:32:26 $
14 * $Revision: 1.1 $
15 *
16 *
17 * \author S. Ovyn - UCL, Louvain-la-Neuve
18 *
19 */
20
21#include "Utilities/ExRootAnalysis/interface/BlockClasses.h"
22#include "Utilities/ExRootAnalysis/interface/BlockCompare.h"
23
24TCompare *TRootGenParticle::fgCompare = 0;
25TCompare *TRootJet::fgCompare = TComparePT<TRootJet>::Instance();
26TCompare *TRootElectron::fgCompare = TComparePT<TRootElectron>::Instance();
27TCompare *TRootMuon::fgCompare = TComparePT<TRootMuon>::Instance();
28TCompare *TRootPhoton::fgCompare = TComparePT<TRootPhoton>::Instance();
29TCompare *TRootTauJet::fgCompare = TComparePT<TRootTauJet>::Instance();
30TCompare *TRootTracks::fgCompare = TComparePT<TRootTracks>::Instance();
31TCompare *TRootETmis::fgCompare = 0;
32TCompare *TRootCalo::fgCompare = 0;
33TCompare *TRootZdcHits::fgCompare = 0;
34TCompare *TRootGenEvent:: fgCompare = 0;
35TCompare *TRootParticle::fgCompare=0;
36TCompare *TRootLHEFParticle::fgCompare = 0;
37TCompare *TRootRomanPotHits::fgCompare =0;
38
39void TRootParticle::Set(const TLorentzVector& momentum) {
40 E = momentum.E();
41 Px = momentum.Px();
42 Py = momentum.Py();
43 Pz = momentum.Pz();
44 PT = momentum.Pt();
45 Eta = momentum.Eta();
46 Phi = momentum.Phi();
47}
48
Note: See TracBrowser for help on using the repository browser.