BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ZddEvent/include/ZddEvent/RecZddChannel.h
Go to the documentation of this file.
1#ifndef Event_RecZddChannel_H
2#define Event_RecZddChannel_H
3
4#include "GaudiKernel/ContainedObject.h"
5#include "GaudiKernel/ObjectVector.h"
6#include <memory> //std::pair
7#include <vector>
8
9extern const CLID& CLID_RecZddChannel;
10
11class RecZddChannel : virtual public ContainedObject {
12public:
13 typedef std::pair<int, float> FragType; // time and energy
14
15 virtual const CLID& clID() const { return RecZddChannel::classID(); }
16 static const CLID& classID() { return CLID_RecZddChannel; }
17
19 virtual ~RecZddChannel();
20
23
24 int channelId() const { return m_chId; }
25 int scanCode() const { return m_scanCode; }
26 int baseLine() const { return m_baseLine; }
27 int phase() const { return m_phase; }
28 const std::vector<FragType>& fragments() const { return m_frags; }
29
30 void setChannelId( int chId ) { m_chId = chId; }
31 void setScanCode( int scanCode ) { m_scanCode = scanCode; }
32 void setBaseLine( int baseLine ) { m_baseLine = baseLine; }
33 void setPhase( int phase ) { m_phase = phase; }
34 void setFragments( const std::vector<FragType>& frags ) { m_frags = frags; }
35
36 void addFragment( int time, float energy ) {
37 m_frags.push_back( std::make_pair( time, energy ) );
38 }
39 void addFragment( const FragType& fragment ) { m_frags.push_back( fragment ); }
40
41private:
42 int m_chId;
43 int m_scanCode;
44 int m_baseLine;
45 int m_phase;
46 std::vector<FragType> m_frags;
47};
48
49typedef ObjectVector<RecZddChannel> RecZddChannelCol;
50typedef RecZddChannelCol::iterator RecZddChannelIterator;
51
52#endif
Double_t time
const CLID & CLID_RecZddChannel
ObjectVector< RecZddChannel > RecZddChannelCol
RecZddChannelCol::iterator RecZddChannelIterator
const CLID & CLID_RecZddChannel
************Class m_ypar INTEGER m_KeyWgt INTEGER m_KeyIHVP INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
Definition KK2f.h:50
void addFragment(const FragType &fragment)
void setFragments(const std::vector< FragType > &frags)
RecZddChannel & operator=(const RecZddChannel &)
void addFragment(int time, float energy)
const std::vector< FragType > & fragments() const
virtual ~RecZddChannel()