You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*path-to-root-installation* must be replaced with your actual location of Root install directory.
55
55
56
56
### List of CMake options:
57
57
To apply the flag use -D{Name}={value}, for example, if you want to compile using c++11:
58
-
58
+
```bash
59
59
cmake -DCMAKE_CXX_STANDARD=11 ../
60
-
60
+
```
61
61
| Name | Default value | Possible values |
62
62
| ------------- | ------------- | ---------- |
63
63
| CMAKE_BUILD_TYPE | RELEASE | RELEASE/DEBUG |
@@ -70,16 +70,16 @@ To apply the flag use -D{Name}={value}, for example, if you want to compile usin
70
70
### Setting AnalysisTree environment
71
71
Whatever you are going to do with AnalysisTree - read the file, perform analysis based on information stored in it or create your own file, first of all you need to set up environment variables.
// drawing a distribution of derived quantites calculated by formula
153
-
152
+
// drawing a distribution of derived quantities calculated by formula
153
+
```
154
154
Moreover, for default fields which are explicitly present in Container (i.e. px is OK, but not pt, which is not stored but calculated on fly) there is a possibility to draw them using TTree::Draw syntax:
Also you can open a ROOT interactive session and create an AnalysisTree::Chain:
161
-
161
+
```c++
162
162
AnalysisTree::Chain t("1.analysistree.root", "rTree") // Chain constructor with a single file
163
163
// or
164
164
AnalysisTree::Chain t({"filelist.txt"}, {"rTree"}) // Chain constructor with a file list
165
-
165
+
```
166
166
and then build any fields including user-defined and implicitly present fields (such as phi or pt):
167
-
167
+
```c++
168
168
t.Draw("SimParticles.px")
169
169
t.Draw("SimParticles.pid")
170
170
t.Draw("VtxTracks.chi2")
171
171
// 2D histograms, cuts, drawing options and math formulas mentioned above are also available
172
-
172
+
```
173
173
### Reading file with a macro
174
174
175
175
Building of distributions in interactive mode is a good approach only if the commands are simple, and the number of events to be analized is not so big.
0 commit comments