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
Copy file name to clipboardExpand all lines: README.md
+17
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,20 @@ scram b -j 8
35
35
<li> <strong>test/</strong>: which contains cfg files to run the sequences defined in the python/ folder.</li>
36
36
</ul>
37
37
38
+
### EDAnalyzer plugin
39
+
40
+
(to be completed)
41
+
42
+
### Configuration cfi files and parameters
43
+
44
+
Parameters are values that are defined "per sequence" and serve to configure how the code should run. For example, if we want to run the same EDAnalyzer for both data and Monte Carlo we may need to know if the generation variables can be accesed or not as if we try to access them in data we may likely get an error. This could be done via parameters.
45
+
46
+
Each parameter as a variable that is declared in the EDAnalyzer constructor as a private variable that can be used when the code is running. For example, to indicate if we are running on data samples we have can define a bool variable ```isData```:
47
+
48
+
49
+
50
+
### Configuration cfg files
51
+
38
52
## How to run
39
53
40
54
This example runs with a file of the 2023 NoBPTX dataset that may need to be accessed throught xrootd. Make sure that you have a valid proxy before running and do at least once:
@@ -54,6 +68,9 @@ cmsRun test/runNtuplizer_cfg.py
54
68
55
69
In this section (to be completed) there are several examples of how modify the existing analyzer.
56
70
71
+
### How to add a parameter
72
+
73
+
57
74
### How to add new variables of an existing collection
58
75
59
76
1) We first need to declare a new variable that will act as a container for the value we want to store e.g. the number of displacedGlobalMuon tracks ```ndgl```. It is defined in the constructor of the EDAnalyzer as a private variable (although it could be also a global variable):
0 commit comments