1
2
3
4
5
6
7
8
9
10 package org.lcsim.recon.tracking.digitization;
11
12 import java.util.ArrayList;
13 import java.util.List;
14 import org.lcsim.event.MCParticle;
15 import org.lcsim.event.SimTrackerHit;
16
17
18
19
20
21
22 public class SiliconRawHitMC extends SiliconRawHit
23 {
24 private List<MCParticle> _mcParticles = new ArrayList<MCParticle>();
25 private List<SimTrackerHit> _mcHits = new ArrayList<SimTrackerHit>();
26
27
28 public SiliconRawHitMC(int cellID0, int cellID1, int timeStamp, int adcCounts, MCParticle mcParticle)
29 {
30 super(cellID0, cellID1, timeStamp, adcCounts);
31 _mcParticles.add(mcParticle);
32 }
33
34 public List<MCParticle> mcParticles()
35 {
36 return _mcParticles;
37 }
38
39 public void addHit(int timeStamp, int adcCounts, SimTrackerHit hit)
40 {
41 addHit(timeStamp, adcCounts);
42 _mcParticles.add(hit.getMCParticle());
43 _mcHits.add(hit);
44 }
45
46 public void addHit(SiliconRawHitMC hit)
47 {
48 addHit( hit.getTimeStamp(), hit.getADCCounts());
49 _mcParticles.addAll(hit.mcParticles());
50 _mcHits.addAll(hit.simTrackerHits());
51 }
52
53 public List<SimTrackerHit> simTrackerHits()
54 {
55 return _mcHits;
56 }
57 }