FairRoot/PandaRoot
PndDiscDigitizedHit.cxx
Go to the documentation of this file.
1 //-------------------------------------------------------------------------
2 // Author: Oliver Merle (Oliver.Merle@exp2.physik.uni-giessen.de)
3 // Changes: Mustafa Schmidt (Mustafa.A.Schmidt@physik.uni-giessen.de)
4 // Date: 30.11.2015
5 // Description: Digitizing hits from Monte Carlo simulations
6 //-------------------------------------------------------------------------
7 
8 #include "PndDiscDigitizedHit.h"
9 
10 
12 
13 
15 detector_id(0),
16 readout_id(0),
17 sensor_id(0),
18 pixel_number(0),
19 dead_time_entity(0),
20 pixel_pos(0.),
21 tdc_time(0.),
22 digit_classifier(0)
23 {
24 }
25 
26 
27 PndDiscDigitizedHit::PndDiscDigitizedHit(FairLink const & fairln_mc_point,
28  const Int_t & detector_id_, const Int_t & readout_id_,
29  const Int_t & sensor_id_, const Int_t & dead_time_entity_,
30  const Int_t & pixel_number_, const Double_t & pixel_pos_,
31  const Double_t & tdc_time_, const Double_t & panda_timestamp,
32  const Int_t classifier_)
33  : FairTimeStamp(panda_timestamp),
34  detector_id(detector_id_), readout_id(readout_id_),
35  sensor_id(sensor_id_), pixel_number(pixel_number_),
36  dead_time_entity(dead_time_entity_),pixel_pos(pixel_pos_),
37  tdc_time(tdc_time_), digit_classifier(classifier_)
38 {
39  AddLink(fairln_mc_point);
40 }
41 
42 
44  out << "PndDiscDigitizedHit in\n"
45  << " detector " << detector_id << std::endl
46  << " ROE " << readout_id << std::endl
47  << " sensor " << sensor_id << std::endl
48  << " dead_time_entity " << dead_time_entity << std::endl
49  << " pixel " << pixel_number << std::endl
50  << " with tdc time " << tdc_time << std::endl
51  << " at fairtime " << fTimeStamp << std::endl
52  << " classified as " << digit_classifier << std::endl
53  ;
54 
55 }
virtual void Print(std::ostream &out=std::cout)
Double_t
TFile * out
Definition: reco_muo.C:20
ClassImp(PndAnaContFact)