Jpp  18.2.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Public Attributes | Protected Attributes | Friends | List of all members
PhysicsEvent Class Reference

Physics event. More...

#include <PhysicsEvent.hh>

Inheritance diagram for PhysicsEvent:
EventPreamble TObject

Classes

class  const_iterator
 Template vector<T>::iterator. More...
 

Public Member Functions

 PhysicsEvent ()
 Default constructor. More...
 
virtual ~PhysicsEvent ()
 Virtual destructor. More...
 
const unsigned short FrameTarget () const
 Identifier of processor that created this event. More...
 
const unsigned int FrameTime1 () const
 most significant word of frametime More...
 
const unsigned int FrameTime2 () const
 least significant word of frametime More...
 
const unsigned int FrameIndex () const
 frame index More...
 
const unsigned int RunNumber () const
 Run number. More...
 
const unsigned int EventType () const
 Type of PhysicsEvent. More...
 
const unsigned int TriggerCounter () const
 Trigger nr. More...
 
const double MinT () const
 time of first hit in event More...
 
const double MaxT () const
 time of last hit in event More...
 
const float MaxA () const
 amplitude of largest hit in event More...
 
const float TotA () const
 sum of all amplitudes More...
 
const std::vector
< TriggeredSPE_Hit > & 
TriggeredSPEHits () const
 Triggered hits. More...
 
const std::vector< SPE_Hit > & SPE_Hits () const
 SPE hits. More...
 
const std::vector< AWF_Hit > & AWF_Hits () const
 Waveform hits. More...
 
const std::vector< DWF_Hit > & DWF_Hits () const
 Dynode hits. More...
 
template<class T >
size_t size () const
 template size method for nested vector More...
 
template<class T >
std::vector< T >::const_iterator begin () const
 template begin const_iterator for nested vector More...
 
template<class T >
std::vector< T >::const_iterator end () const
 template end const_iterator for nested vector More...
 
 ClassDef (PhysicsEvent, 2)
 
template<>
size_t size () const
 specialisation for TriggeredSPE_Hit size More...
 
template<>
size_t size () const
 specialisation for SPE_Hit size More...
 
template<>
size_t size () const
 specialisation for AWF_Hit size More...
 
template<>
size_t size () const
 specialisation for DWF_Hit size More...
 
template<>
std::vector< TriggeredSPE_Hit >
::const_iterator 
begin () const
 specialisation for TriggeredSPE_Hit iterator begin More...
 
template<>
std::vector< TriggeredSPE_Hit >
::const_iterator 
end () const
 specialisation for TriggeredSPE_Hit iterator end More...
 
template<>
std::vector< SPE_Hit >
::const_iterator 
begin () const
 specialisation for SPE_Hit iterator begin More...
 
template<>
std::vector< SPE_Hit >
::const_iterator 
end () const
 specialisation for SPE_Hit iterator end More...
 
template<>
std::vector< AWF_Hit >
::const_iterator 
begin () const
 specialisation for AWF_Hit iterator begin More...
 
template<>
std::vector< AWF_Hit >
::const_iterator 
end () const
 specialisation for AWF_Hit iterator end More...
 
template<>
std::vector< DWF_Hit >
::const_iterator 
begin () const
 specialisation for DWF_Hit iterator begin More...
 
template<>
std::vector< DWF_Hit >
::const_iterator 
end () const
 specialisation for DWF_Hit iterator end More...
 
 ClassDef (EventPreamble, 2)
 

Public Attributes

unsigned short frameTarget
 Unique code representing the shore station for this frame. More...
 
unsigned int frameTime1
 Frame 'time stamp' in units of 50ns (MSW) More...
 
unsigned int frameTime2
 Frame 'time stamp' in units of 50ns (LSW) More...
 
unsigned int frameIndex
 Number of frames since start of the run. More...
 
unsigned int runNumber
 Run-number as given by the RunControl. More...
 

Protected Attributes

unsigned int EventType_
 
unsigned int TriggerCounter_
 
double MinT_
 
double MaxT_
 
float MaxA_
 
float TotA_
 
std::vector< TriggeredSPE_HitTriggeredSPEHits_
 
std::vector< SPE_HitSPEHits_
 
std::vector< AWF_HitAWFHits_
 
std::vector< DWF_HitDWFHits_
 

Friends

std::ostream & operator<< (std::ostream &out, const PhysicsEvent &object)
 Print ASCII. More...
 

Detailed Description

Physics event.

Definition at line 130 of file PhysicsEvent.hh.

Constructor & Destructor Documentation

PhysicsEvent::PhysicsEvent ( )
inline

Default constructor.

Definition at line 150 of file PhysicsEvent.hh.

150  :
151  EventPreamble(),
152  EventType_(0),
153  TriggerCounter_(0),
154  MinT_(+std::numeric_limits<double>::max()),
155  MaxT_(-std::numeric_limits<double>::max()),
156  MaxA_(0),
157  TotA_(0)
158  {}
unsigned int EventType_
EventPreamble()
Default constructor.
unsigned int TriggerCounter_
virtual PhysicsEvent::~PhysicsEvent ( )
inlinevirtual

Virtual destructor.

Definition at line 163 of file PhysicsEvent.hh.

164  {}

Member Function Documentation

const unsigned short PhysicsEvent::FrameTarget ( ) const
inline

Identifier of processor that created this event.

Definition at line 167 of file PhysicsEvent.hh.

167 { return frameTarget; }
unsigned short frameTarget
Unique code representing the shore station for this frame.
const unsigned int PhysicsEvent::FrameTime1 ( ) const
inline

most significant word of frametime

Definition at line 169 of file PhysicsEvent.hh.

169 { return frameTime1; }
unsigned int frameTime1
Frame &#39;time stamp&#39; in units of 50ns (MSW)
const unsigned int PhysicsEvent::FrameTime2 ( ) const
inline

least significant word of frametime

Definition at line 171 of file PhysicsEvent.hh.

171 { return frameTime2; }
unsigned int frameTime2
Frame &#39;time stamp&#39; in units of 50ns (LSW)
const unsigned int PhysicsEvent::FrameIndex ( ) const
inline

frame index

Definition at line 173 of file PhysicsEvent.hh.

173 { return frameIndex; }
unsigned int frameIndex
Number of frames since start of the run.
const unsigned int PhysicsEvent::RunNumber ( ) const
inline

Run number.

Definition at line 175 of file PhysicsEvent.hh.

175 { return runNumber; }
unsigned int runNumber
Run-number as given by the RunControl.
const unsigned int PhysicsEvent::EventType ( ) const
inline

Type of PhysicsEvent.

Definition at line 178 of file PhysicsEvent.hh.

178 { return EventType_; }
unsigned int EventType_
const unsigned int PhysicsEvent::TriggerCounter ( ) const
inline

Trigger nr.

since start of run

Definition at line 180 of file PhysicsEvent.hh.

180 { return TriggerCounter_; }
unsigned int TriggerCounter_
const double PhysicsEvent::MinT ( ) const
inline

time of first hit in event

Definition at line 182 of file PhysicsEvent.hh.

182 { return MinT_; }
const double PhysicsEvent::MaxT ( ) const
inline

time of last hit in event

Definition at line 184 of file PhysicsEvent.hh.

184 { return MaxT_; }
const float PhysicsEvent::MaxA ( ) const
inline

amplitude of largest hit in event

Definition at line 186 of file PhysicsEvent.hh.

186 { return MaxA_; }
const float PhysicsEvent::TotA ( ) const
inline

sum of all amplitudes

Definition at line 188 of file PhysicsEvent.hh.

188 { return TotA_; }
const std::vector<TriggeredSPE_Hit>& PhysicsEvent::TriggeredSPEHits ( ) const
inline

Triggered hits.

Definition at line 191 of file PhysicsEvent.hh.

191 { return TriggeredSPEHits_; }
std::vector< TriggeredSPE_Hit > TriggeredSPEHits_
const std::vector<SPE_Hit>& PhysicsEvent::SPE_Hits ( ) const
inline

SPE hits.

Definition at line 193 of file PhysicsEvent.hh.

193 { return SPEHits_; }
std::vector< SPE_Hit > SPEHits_
const std::vector<AWF_Hit>& PhysicsEvent::AWF_Hits ( ) const
inline

Waveform hits.

Definition at line 195 of file PhysicsEvent.hh.

195 { return AWFHits_; }
std::vector< AWF_Hit > AWFHits_
const std::vector<DWF_Hit>& PhysicsEvent::DWF_Hits ( ) const
inline

Dynode hits.

Definition at line 197 of file PhysicsEvent.hh.

197 { return DWFHits_; }
std::vector< DWF_Hit > DWFHits_
template<class T >
size_t PhysicsEvent::size ( ) const

template size method for nested vector

template<class T >
std::vector<T>::const_iterator PhysicsEvent::begin ( ) const

template begin const_iterator for nested vector

template<class T >
std::vector<T>::const_iterator PhysicsEvent::end ( ) const

template end const_iterator for nested vector

PhysicsEvent::ClassDef ( PhysicsEvent  ,
 
)
template<>
size_t PhysicsEvent::size ( ) const
inline

specialisation for TriggeredSPE_Hit size

Definition at line 272 of file PhysicsEvent.hh.

273 {
274  return TriggeredSPEHits_.size();
275 }
std::vector< TriggeredSPE_Hit > TriggeredSPEHits_
template<>
size_t PhysicsEvent::size ( ) const
inline

specialisation for SPE_Hit size

Definition at line 279 of file PhysicsEvent.hh.

280 {
281  return SPEHits_.size();
282 }
std::vector< SPE_Hit > SPEHits_
template<>
size_t PhysicsEvent::size ( ) const
inline

specialisation for AWF_Hit size

Definition at line 286 of file PhysicsEvent.hh.

287 {
288  return AWFHits_.size();
289 }
std::vector< AWF_Hit > AWFHits_
template<>
size_t PhysicsEvent::size ( ) const
inline

specialisation for DWF_Hit size

Definition at line 293 of file PhysicsEvent.hh.

294 {
295  return DWFHits_.size();
296 }
std::vector< DWF_Hit > DWFHits_
template<>
std::vector<TriggeredSPE_Hit>::const_iterator PhysicsEvent::begin ( ) const
inline

specialisation for TriggeredSPE_Hit iterator begin

Definition at line 300 of file PhysicsEvent.hh.

301 {
302  return TriggeredSPEHits_.begin();
303 }
std::vector< TriggeredSPE_Hit > TriggeredSPEHits_
template<>
std::vector<TriggeredSPE_Hit>::const_iterator PhysicsEvent::end ( ) const
inline

specialisation for TriggeredSPE_Hit iterator end

Definition at line 307 of file PhysicsEvent.hh.

308 {
309  return TriggeredSPEHits_.end();
310 }
std::vector< TriggeredSPE_Hit > TriggeredSPEHits_
template<>
std::vector<SPE_Hit>::const_iterator PhysicsEvent::begin ( ) const
inline

specialisation for SPE_Hit iterator begin

Definition at line 314 of file PhysicsEvent.hh.

315 {
316  return SPEHits_.begin();
317 }
std::vector< SPE_Hit > SPEHits_
template<>
std::vector<SPE_Hit>::const_iterator PhysicsEvent::end ( ) const
inline

specialisation for SPE_Hit iterator end

Definition at line 321 of file PhysicsEvent.hh.

322 {
323  return SPEHits_.end();
324 }
std::vector< SPE_Hit > SPEHits_
template<>
std::vector<AWF_Hit>::const_iterator PhysicsEvent::begin ( ) const
inline

specialisation for AWF_Hit iterator begin

Definition at line 328 of file PhysicsEvent.hh.

329 {
330  return AWFHits_.begin();
331 }
std::vector< AWF_Hit > AWFHits_
template<>
std::vector<AWF_Hit>::const_iterator PhysicsEvent::end ( ) const
inline

specialisation for AWF_Hit iterator end

Definition at line 335 of file PhysicsEvent.hh.

336 {
337  return AWFHits_.end();
338 }
std::vector< AWF_Hit > AWFHits_
template<>
std::vector<DWF_Hit>::const_iterator PhysicsEvent::begin ( ) const
inline

specialisation for DWF_Hit iterator begin

Definition at line 342 of file PhysicsEvent.hh.

343 {
344  return DWFHits_.begin();
345 }
std::vector< DWF_Hit > DWFHits_
template<>
std::vector<DWF_Hit>::const_iterator PhysicsEvent::end ( ) const
inline

specialisation for DWF_Hit iterator end

Definition at line 349 of file PhysicsEvent.hh.

350 {
351  return DWFHits_.end();
352 }
std::vector< DWF_Hit > DWFHits_
EventPreamble::ClassDef ( EventPreamble  ,
 
)
inherited

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const PhysicsEvent object 
)
friend

Print ASCII.

Parameters
outoutput stream
objectphysics event
Returns
output stream

Definition at line 235 of file PhysicsEvent.hh.

236  {
237  using namespace std;
238 
239  out << " +-------------------------------------+ " << endl;
240  out << " | EventType_ " << object.EventType_ << endl;
241  out << " | RunNumber_ " << object.RunNumber() << endl;
242  out << " | TriggerCounter_ " << object.TriggerCounter_ << endl;
243  out << " | FrameTarget_ " << object.FrameTarget() << endl;
244  out << " | FrameTime1_ " << object.FrameTime1() << endl;
245  out << " | FrameTime2_ " << object.FrameTime2() << endl;
246  out << " | FrameIndex_ " << object.FrameIndex() << endl;
247  out << setprecision(11) << setw(14)
248  << " | MinT_ " << object.MinT_ << endl;
249  out << setprecision(11) << setw(14)
250  << " | MaxT_ " << object.MaxT_ << endl;
251  out << setprecision( 6) << setw(10)
252  << " | MaxA_ " << object.MaxA_ << endl;
253  out << setprecision( 6) << setw(10)
254  << " | TotA_ " << object.TotA_ << endl;
255  out << " +-------------------------------------+ " << endl;
256  out << " | Triggered hits " << object.TriggeredSPEHits_.size() << endl;
257  out << " | SPE hits " << object.SPEHits_.size() << endl;
258  out << " | AWF hits " << object.AWFHits_.size() << endl;
259  out << " | DWF hits " << object.DWFHits_.size() << endl;
260  out << " +-------------------------------------+ " << endl;
261  out << endl;
262 
263  return out;
264  }

Member Data Documentation

unsigned int PhysicsEvent::EventType_
protected

Definition at line 134 of file PhysicsEvent.hh.

unsigned int PhysicsEvent::TriggerCounter_
protected

Definition at line 135 of file PhysicsEvent.hh.

double PhysicsEvent::MinT_
protected

Definition at line 136 of file PhysicsEvent.hh.

double PhysicsEvent::MaxT_
protected

Definition at line 137 of file PhysicsEvent.hh.

float PhysicsEvent::MaxA_
protected

Definition at line 138 of file PhysicsEvent.hh.

float PhysicsEvent::TotA_
protected

Definition at line 139 of file PhysicsEvent.hh.

std::vector<TriggeredSPE_Hit> PhysicsEvent::TriggeredSPEHits_
protected

Definition at line 141 of file PhysicsEvent.hh.

std::vector<SPE_Hit> PhysicsEvent::SPEHits_
protected

Definition at line 142 of file PhysicsEvent.hh.

std::vector<AWF_Hit> PhysicsEvent::AWFHits_
protected

Definition at line 143 of file PhysicsEvent.hh.

std::vector<DWF_Hit> PhysicsEvent::DWFHits_
protected

Definition at line 144 of file PhysicsEvent.hh.

unsigned short EventPreamble::frameTarget
inherited

Unique code representing the shore station for this frame.

Definition at line 26 of file EventPreamble.hh.

unsigned int EventPreamble::frameTime1
inherited

Frame 'time stamp' in units of 50ns (MSW)

Definition at line 29 of file EventPreamble.hh.

unsigned int EventPreamble::frameTime2
inherited

Frame 'time stamp' in units of 50ns (LSW)

Definition at line 31 of file EventPreamble.hh.

unsigned int EventPreamble::frameIndex
inherited

Number of frames since start of the run.

Definition at line 34 of file EventPreamble.hh.

unsigned int EventPreamble::runNumber
inherited

Run-number as given by the RunControl.

Definition at line 37 of file EventPreamble.hh.


The documentation for this class was generated from the following file: