Skip to content

Commit e51e621

Browse files
authored
02-eicrecon.md: set correct languages for code blocks, fix some indents
1 parent 3f95dcd commit e51e621

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

_episodes/02-eicrecon.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Each reconstruction step involves 3 components:
2323

2424
### __Digitization__
2525
All simualted detector hits are digitized to reflect certain detector specs e.g. spatial and time resolution, and energy threshold. For example, the `VertexBarrelHits` from simulation are digitized through the `SiliconTrackerDigi` factory in `EICrecon/src/detectors/BVTX/BVTX.cc`:
26-
```console
26+
```c++
2727
// Digitization
2828
app->Add(new JOmniFactoryGeneratorT<SiliconTrackerDigi_factory>(
2929
"SiBarrelVertexRawHits", // factory name
@@ -44,7 +44,7 @@ Each reconstruction step involves 3 components:
4444
4545
The actual algorithm locates at `EICrecon/src/algorithms/digi/SiliconTrackerDigi.cc`, with its input and output specified in `SiliconTrackerDigi_factory.h`:
4646
47-
```console
47+
```c++
4848
class SiliconTrackerDigi_factory : public JOmniFactory<SiliconTrackerDigi_factory, SiliconTrackerDigiConfig> {
4949
5050
public:
@@ -63,8 +63,8 @@ Each reconstruction step involves 3 components:
6363
```
6464

6565
By comparing the two blocks of code above, we can see that the digitized hits, `SiBarrelVertexRawHits`, are stored in the data type `RawTrackerHit` that is defined in the [edm4eic data model](https://github.com/eic/EDM4eic/blob/main/edm4eic.yaml):
66-
```console
67-
edm4eic::RawTrackerHit:
66+
```yaml
67+
edm4eic::RawTrackerHit:
6868
Description: "Raw (digitized) tracker hit"
6969
Author: "W. Armstrong, S. Joosten"
7070
Members:
@@ -74,8 +74,8 @@ By comparing the two blocks of code above, we can see that the digitized hits, `
7474
```
7575
7676
In addition, the one-to-one relation between the sim hit and its digitized hit is stored as an `MCRecoTrackerHitAssociation` object:
77-
```console
78-
edm4eic::MCRecoTrackerHitAssociation:
77+
```yaml
78+
edm4eic::MCRecoTrackerHitAssociation:
7979
Description: "Association between a RawTrackerHit and a SimTrackerHit"
8080
Author: "C. Dilks, W. Deconinck"
8181
Members:
@@ -86,7 +86,7 @@ In addition, the one-to-one relation between the sim hit and its digitized hit i
8686
```
8787

8888
which is filled in `SiliconTrackerDigi.cc`:
89-
```console
89+
```c++
9090
auto hitassoc = associations->create();
9191
hitassoc.setWeight(1.0);
9292
hitassoc.setRawHit(item.second);
@@ -115,8 +115,8 @@ By default, we use the Combinatorial Kalman Filter from the ACTS library to hand
115115
> Exercise 2.3:
116116
> The __vector member__ or __relation__ of a given data collection is saved in a separate branch starts with "_".
117117
> - Please use
118-
> ```console
119-
tree.keys(filter_name="_CentralCKFTrajectories*",recursive=False)
118+
> ```python
119+
tree.keys(filter_name="_CentralCKFTrajectories*", recursive=False)
120120
```
121121
to list those members in `CentralCKFTrajectories`
122122
> - for a given event, the vector member `_CentralCKFTrajectories_measurementChi2` provides a list of chi2 for each meaurement hit respectively. If multiple trajectories are found for one event, you can use `CentralCKFTrajectories.measurementChi2_begin` to locate the start index of a given trajectory (subentry).

0 commit comments

Comments
 (0)