18 m_collection(
"PixelHits"),
19 m_indetBarrel(0), m_indetLongView(0),
20 m_hits_time(0), m_hits_edep(0), m_hits_log_edep(0),
21 m_hits_xy(0), m_hits_zr(0),
23 m_hits_edep_z(0), m_hits_edep_r(0),
24 m_hits_log_barcode(0),
25 m_hits_step_length(0),
26 m_hits_log_step_length(0)
28 declareProperty(
"CollectionName",
m_collection=
"PixelHits");
41 std::string
detName(
"Pixel"); std::string detpathName(
"Pixel");
44 detName =
"Pixel"; detpathName =
"Pixel";
47 detName =
"PileupPixel"; detpathName =
"Pixel";
50 detName =
"SCT"; detpathName =
"SCT";
53 detName =
"PileupSCT"; detpathName =
"SCT";
57 return StatusCode::FAILURE;
87 return StatusCode::SUCCESS;
94 for (
const SiHit& hit : *p_collection) {
104 m_hits_time->Fill(hit.meanTime(),hit.energyLoss());
110 double step_length = ( hit.localStartPosition()-hit.localEndPosition() ).
mag();
114 if (hit.getBarrelEndcap()==0) {
137 return StatusCode::SUCCESS;