1 |
|
#ifndef TTbarGen_H |
2 |
|
#define TTbarGen_H |
3 |
|
|
4 |
– |
// ROOT include(s): |
5 |
– |
#include <TObject.h> |
6 |
– |
#include <TString.h> |
7 |
– |
#include <iostream> |
8 |
– |
|
4 |
|
// Local include(s): |
5 |
|
#include "include/ObjectHandler.h" |
6 |
|
|
7 |
|
/** |
8 |
< |
* Example class for booking and filling histograms |
14 |
< |
* |
15 |
< |
* This class books and fills a collection of histograms. |
16 |
< |
* It should have a unique name, such that the histograms |
17 |
< |
* of multiple instances of this class are ordered in the |
18 |
< |
* output file. |
19 |
< |
* Always sort your histograms and used methods topically. |
20 |
< |
* This example collection can be used for data and reconstructed |
21 |
< |
* MC events. |
22 |
< |
* |
23 |
< |
* @version $Revision$ |
8 |
> |
* Class for ttbar generator truth information |
9 |
|
*/ |
10 |
|
|
11 |
|
class TTbarGen |
12 |
|
{ |
13 |
|
|
14 |
|
public: |
15 |
< |
/// Named constructor |
15 |
> |
/// Default constructor, loops over generator particle list and fills the relevant particles |
16 |
|
TTbarGen(); |
17 |
|
|
18 |
|
/// Default destructor |
19 |
|
~TTbarGen(); |
20 |
|
|
21 |
+ |
enum E_DecayChannel{ |
22 |
+ |
e_had, |
23 |
+ |
e_ehad, |
24 |
+ |
e_muhad, |
25 |
+ |
e_tauhad, |
26 |
+ |
e_ee, |
27 |
+ |
e_mumu, |
28 |
+ |
e_tautau, |
29 |
+ |
e_emu, |
30 |
+ |
e_etau, |
31 |
+ |
e_mutau, |
32 |
+ |
e_notfound |
33 |
+ |
}; |
34 |
+ |
|
35 |
|
GenParticle Top(); |
36 |
|
GenParticle Antitop(); |
37 |
|
GenParticle WTop(); |
38 |
|
GenParticle WAntitop(); |
39 |
|
GenParticle bTop(); |
40 |
|
GenParticle bAntitop(); |
41 |
+ |
GenParticle Wdecay1(); |
42 |
+ |
GenParticle Wdecay2(); |
43 |
+ |
GenParticle WMinusdecay1(); |
44 |
+ |
GenParticle WMinusdecay2(); |
45 |
+ |
E_DecayChannel DecayChannel(); |
46 |
+ |
|
47 |
+ |
bool IsTopHadronicDecay(); |
48 |
+ |
bool IsAntiTopHadronicDecay(); |
49 |
+ |
|
50 |
+ |
//only for l+jets decays |
51 |
+ |
GenParticle TopLep(); |
52 |
+ |
GenParticle TopHad(); |
53 |
+ |
GenParticle BLep(); |
54 |
+ |
GenParticle BHad(); |
55 |
+ |
GenParticle WLep(); |
56 |
+ |
GenParticle WHad(); |
57 |
+ |
GenParticle ChargedLepton(); |
58 |
+ |
GenParticle Neutrino(); |
59 |
+ |
GenParticle Q1(); |
60 |
+ |
GenParticle Q2(); |
61 |
+ |
|
62 |
|
|
63 |
|
private: |
64 |
|
|
68 |
|
GenParticle m_WAntitop; |
69 |
|
GenParticle m_bTop; |
70 |
|
GenParticle m_bAntitop; |
71 |
< |
|
71 |
> |
GenParticle m_Wdecay1; |
72 |
> |
GenParticle m_Wdecay2; |
73 |
> |
GenParticle m_WMinusdecay1; |
74 |
> |
GenParticle m_WMinusdecay2; |
75 |
> |
int m_pdgId1; |
76 |
> |
int m_pdgId2; |
77 |
> |
int m_indexW; |
78 |
> |
int m_indexb; |
79 |
> |
int m_index1; |
80 |
> |
int m_index2; |
81 |
> |
|
82 |
> |
E_DecayChannel m_type; |
83 |
> |
|
84 |
> |
|
85 |
|
}; // class TTbarGen |
86 |
|
|
87 |
|
|