CalibTreeRecord.cxx
Go to the documentation of this file.
1 //includes
2 #include "CalibTreeRecord.h"
3 namespace CalibTreeRecord {
4 
5  //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6  void CalibTreeRecord::Clear()
7  {
8  eves.clear();
9  hits.clear();
10  ophits.clear();
11  run=0;
12  subrun=0;
13  event=0;
14  }
15 
16  void CalibTreeRecord::stdout_dump()
17  {
18  std::cout<<"N eves is "<<eves.size()<<"\n";
19  for(auto eve : eves){
20  std::cout<<"N Particles is : "<<eve.particles.size()<<"\n";
21  std::cout<<"Eve position is X:"<<eve.x_pos<<" Y:"<<eve.y_pos<<" Z:"<<eve.z_pos<<" T:"<<eve.t_pos<<"\n";
22  for(auto particle: eve.particles){
23  std::cout<<"Particle position is X:"<<particle.x_pos<<" Y:"<<particle.y_pos<<" Z:"<<particle.z_pos<<" t:"<<particle.t_pos<<"\n";
24  for(auto hit : particle.partial_hits){
25  std::cout<<"Partial Hit. Charge:"<<hit.charge<<" ne:"<<hit.num_electrons<<" en:"<<hit.energy<<" t:"<<hit.width<<"\n";
26  }
27  for(auto hit :particle.partial_ophits){
28  std::cout<<"ParticlOphit. pes: "<<hit.pes<<" np:"<<hit.num_photons<<" t:"<<hit.time<<"\n";
29  }
30  }
31  }
32  }
33 }
34 
Detector simulation of raw signals on wires.