Skip to content

Commit c7352fe

Browse files
authored
Added description of variables
1 parent df5fb3c commit c7352fe

File tree

1 file changed

+74
-56
lines changed

1 file changed

+74
-56
lines changed

README.md

Lines changed: 74 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -55,92 +55,110 @@ With `cms-opendata-2011-jets/AnalysisFW/python/` as the current folder, run the
5555
## Run the program:
5656
To create tuples from data run the following command:
5757
58+
```
5859
cmsRun OpenDataTreeProducer_dataPAT_2011_cfg.py
60+
```
5961
6062
This command creates tuples from Monte Carlo simulations:
6163
64+
```
6265
cmsRun OpenDataTreeProducer_mcPAT_2011_cfg.py
66+
```
6367
6468
After running the code, you can browse the tuples by opening the produced files in ROOT:
6569
70+
```
6671
root OpenDataTree_*
72+
```
6773
6874
Finally, run this command in the ROOT command prompt:
6975
76+
```
7077
TBrowser t
78+
```
7179
7280
7381
7482
## Tuple variables
7583
7684
* Properties of the event:
7785
78-
UInt_t run; // Run number
79-
UInt_t lumi; // Luminosity section
80-
ULong64_t event; // Event number
81-
UInt_t ntrg; // Number of triggers
82-
Bool_t triggers[ntrg]; // Trigger bits
86+
```cpp
87+
int run; // Run number
88+
float lumi; // Luminosity section
89+
long long event; // Event number
90+
float ntrg; // Number of triggers
91+
bool triggers[ntrg]; // Trigger bits
8392
vector<string> *triggernames; // Trigger names
84-
UInt_t prescales[ntrg]; // Trigger prescales
85-
Float_t met; // Missing transverse energy
86-
Float_t sumet; // Sum of transverse energy
87-
Float_t rho; // Energy density
93+
float prescales[ntrg]; // Trigger prescales
94+
float met; // Missing transverse energy
95+
float sumet; // Sum of transverse energy
96+
float rho; // Energy density
97+
```
8898

8999

90-
* Jets reconstructed using the anti-kT algorithm with a parameter R = 0.5 (short. AK5). Number of jets and corrected four-momentum in cylindrical coordinates.
100+
* Jets reconstructed using the anti-kT algorithm with a parameter R = 0.5 (short. AK5).
91101

92-
UInt_t njet; // Number of AK5 jets
93-
Float_t jet_pt[njet]; // Corrected transverse momentum
94-
Float_t jet_eta[njet]; // Pseudorapidity
95-
Float_t jet_phi[njet]; // Azimuthal angle
96-
Float_t jet_E[njet]; // Energy
102+
```cpp
103+
int njet; // Number of AK5 jets
104+
float jet_pt[njet]; // Corrected transverse momentum
105+
float jet_eta[njet]; // Pseudorapidity
106+
float jet_phi[njet]; // Azimuthal angle
107+
float jet_E[njet]; // Energy
108+
```
97109

98110
* Other AK5 jet information
99111

100-
Bool_t jet_tightID[njet]; // Tight selection pass/fail
101-
Float_t jet_area[njet]; // Jet area in eta-phi plane
102-
Float_t jet_jes[njet]; // Jet energy correction
103-
Int_t jet_igen[njet]; // Index of the matching generated jet
104-
112+
```cpp
113+
bool jet_tightID[njet]; // Tight selection pass/fail
114+
float jet_area[njet]; // Jet area in eta-phi plane
115+
float jet_jes[njet]; // Jet energy correction
116+
int jet_igen[njet]; // Index of the matching generated jet
117+
```
105118

106119
* Composition values of the AK5 jets
107120

108-
Float_t chf[njet]; // Charged hadron energy fraction
109-
Float_t nhf[njet]; // Neutral hadron energy fraction
110-
Float_t phf[njet]; // Photon energy fraction
111-
Float_t elf[njet]; // Electron energy fraction
112-
Float_t muf[njet]; // Muon energy fraction
113-
Float_t hf_hf[njet]; // Forward calorimeter (HF) hadron energy fraction
114-
Float_t hf_phf[njet]; // HF photon energy fraction
115-
UInt_t hf_hm[njet]; // HF hadron multiplicity
116-
UInt_t hf_phm[njet]; // HF photon multiplicity
117-
UInt_t chm[njet]; // Charged hadron multiplicity
118-
UInt_t nhm[njet]; // Neutral hadron multiplicity
119-
UInt_t phm[njet]; // Photon multiplicity
120-
UInt_t elm[njet]; // Electron multiplicity
121-
UInt_t mum[njet]; // Muon multiplicity
122-
Float_t beta[njet]; // Fraction of chf associated to the hard process
123-
Float_t bstar[njet]; // Fraction of chf associated to pile-up
124-
121+
```cpp
122+
float chf[njet]; // Charged hadron energy fraction
123+
float nhf[njet]; // Neutral hadron energy fraction
124+
float phf[njet]; // Photon energy fraction
125+
float elf[njet]; // Electron energy fraction
126+
float muf[njet]; // Muon energy fraction
127+
float hf_hf[njet]; // Forward calorimeter (HF) hadron energy fraction
128+
float hf_phf[njet]; // HF photon energy fraction
129+
int hf_hm[njet]; // HF hadron multiplicity
130+
int hf_phm[njet]; // HF photon multiplicity
131+
int chm[njet]; // Charged hadron multiplicity
132+
int nhm[njet]; // Neutral hadron multiplicity
133+
int phm[njet]; // Photon multiplicity
134+
int elm[njet]; // Electron multiplicity
135+
int mum[njet]; // Muon multiplicity
136+
float beta[njet]; // Fraction of chf associated to the hard process
137+
float bstar[njet]; // Fraction of chf associated to pile-up
138+
```
125139

126140
* Jets reconstructed using the anti-kT algorithm with a parameter R = 0.7 (short. AK7)
127141

128-
UInt_t njet_ak7; // Number of jets
129-
Float_t jet_pt_ak7[njet_ak7]; // Transverse momentum
130-
Float_t jet_eta_ak7[njet_ak7]; // Pseudorapidity
131-
Float_t jet_phi_ak7[njet_ak7]; // Azimuthal angle
132-
Float_t jet_E_ak7[njet_ak7]; // Energy
133-
Float_t jet_area_ak7[njet_ak7]; // Jet area
134-
Float_t jet_jes_ak7[njet_ak7]; // Jet energy corection factor
135-
Int_t ak7_to_ak5[njet_ak7]; // Index of the corresponding AK5 jet
136-
137-
* True quantities of the jet generated in the Monte Carlo simulation (only MC datasets)
138-
139-
UInt_t ngen; // Number of jets generated
140-
Float_t gen_pt[ngen]; // Transverse momentum
141-
Float_t gen_eta[ngen]; // Pseudorapidity
142-
Float_t gen_phi[ngen]; // Azimuthal angle
143-
Float_t gen_E[ngen]; // Energy
144-
145-
Float_t pthat; // Transverse momentum in the rest frame of the hard interaction
146-
Float_t mcweight; // Monte Carlo weight of the event
142+
```cpp
143+
int njet_ak7; // Number of jets
144+
float jet_pt_ak7[njet_ak7]; // Transverse momentum
145+
float jet_eta_ak7[njet_ak7]; // Pseudorapidity
146+
float jet_phi_ak7[njet_ak7]; // Azimuthal angle
147+
float jet_E_ak7[njet_ak7]; // Energy
148+
float jet_area_ak7[njet_ak7]; // Jet area
149+
float jet_jes_ak7[njet_ak7]; // Jet energy corection factor
150+
int ak7_to_ak5[njet_ak7]; // Index of the corresponding AK5 jet
151+
```
152+
153+
* True properties of jets generated in the Monte Carlo simulation (only MC datasets)
154+
155+
```cpp
156+
int ngen; // Number of jets generated
157+
float gen_pt[ngen]; // Transverse momentum
158+
float gen_eta[ngen]; // Pseudorapidity
159+
float gen_phi[ngen]; // Azimuthal angle
160+
float gen_E[ngen]; // Energy
161+
162+
float pthat; // Transverse momentum in the rest frame of the hard interaction
163+
float mcweight; // Monte Carlo weight of the event
164+
```

0 commit comments

Comments
 (0)