Diana Software
QCoincidenceData.cc
Go to the documentation of this file.
1 #include "QCoincidenceData.hh"
2 #include "QCoincidentChannel.hh"
3 
4 using std::vector;
5 
7 
9 {
10  Clear();
11 }
13 {
14  fMultiplicity = -1;
15  fOrderInMultiple = -1;
18  fCoincidentChannels.clear();
19 }
20 
21 void QCoincidenceData::Dump(std::ostream& o) const
22 {
23  o << "Multiplicity: " << fMultiplicity << std::endl;
24  o << "OrderInMultiple: " << fOrderInMultiple << std::endl;
25  o << "NearestCoincidentIndex: " << fNearestCoincidentIndex << std::endl;
26  o << "FarthestCoincidentIndex : "<< fFarthestCoincidentIndex << std::endl;
27  for (unsigned int i = 0; i < fCoincidentChannels.size(); i++) {
28  const QCoincidentChannel& chan = fCoincidentChannels[i];
29  o << i << ": chan: " << chan.fChannelId << " event No: " << chan.fEventNumber << " deltaT: " << chan.fDeltaT << " Energy: " << chan.fEnergy;
30  for(size_t p = 0; p < chan.fPSAVariables.size(); p++) {
31  std::cout<<" PSAVar["<<p<<"]: " << chan.fPSAVariables[p];
32  }
33  std::cout<< std::endl;
34  }
35 }
QObjectImp(QCoincidenceData)
coincidence data
void Dump(std::ostream &o) const
std::vector< QCoincidentChannel > fCoincidentChannels
data of coincident channel
std::vector< double > fPSAVariables