ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/GeneratorTools.h
Revision: 1.1
Committed: Sat Mar 27 13:38:44 2010 UTC (15 years, 1 month ago) by sixie
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_029c, Mit_029b, Mit_029a, Mit_028a, Mit_028, Mit_027, Mit_027a, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, HEAD
Log Message:
Add Generator Tools

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: GeneratorTools.h,v 1.3 2009/02/17 06:49:01 phedex Exp $
3 //
4 // GeneratorTools
5 //
6 // Various Generator level tools
7 //
8 // Authors: S.Xie
9 //--------------------------------------------------------------------------------------------------
10
11 #ifndef MITPHYSICS_UTILS_GENERATORTOOLS_H
12 #define MITPHYSICS_UTILS_GENERATORTOOLS_H
13
14 #include "TString.h"
15 #include <TMath.h>
16 #include "MitAna/DataTree/interface/MCParticle.h"
17 #include "MitAna/DataTree/interface/Electron.h"
18
19 namespace mithep
20 {
21 class GeneratorTools {
22 public:
23
24 static void PrintHepMCTable(const mithep::Collection<mithep::MCParticle> *particles,
25 Bool_t showDaughters, int suppressEntriesAfterThisIndex);
26
27 static void PrintNearbyParticles(const mithep::Collection<mithep::MCParticle> *particles,
28 Double_t eta, Double_t phi, Double_t deltaR);
29
30 static TString ConvertPdgIdToName(Int_t pdgId);
31
32 static const mithep::MCParticle* MatchElectronToSimParticle(
33 const mithep::Collection<mithep::MCParticle> *particles,
34 const mithep::Track *eleTrack, Bool_t isGsfTrack,
35 Int_t printDebugLevel, Bool_t printHepMCTable);
36
37 static const mithep::MCParticle* FindElectronFakeAncestor(
38 const mithep::MCParticle *matchedSimChargedParticle);
39
40 static Int_t CategorizeFakeElectron(const mithep::MCParticle *ele);
41
42 static const mithep::MCParticle* MatchMuonToSimParticle(
43 const mithep::Collection<mithep::MCParticle> *particles,const mithep::Track *muonTrack,
44 Bool_t isTrackerTrack, Int_t printDebugLevel, Bool_t printHepMCTable);
45
46 static Int_t CategorizeFakeMuon(const mithep::MCParticle *mu);
47
48 };
49 }
50 #endif