BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/ZddEvent/ZddEvent/RecZddChannel.h
Go to the documentation of this file.
1#ifndef Event_RecZddChannel_H
2#define Event_RecZddChannel_H
3
4#include "GaudiKernel/ObjectVector.h"
5#include "GaudiKernel/ContainedObject.h"
6#include <vector>
7#include <memory> //std::pair
8
9extern const CLID & CLID_RecZddChannel;
10
11class RecZddChannel : virtual public ContainedObject
12{
13 public :
14
15 typedef std::pair<int, float> FragType; //time and energy
16
17 virtual const CLID& clID() const { return RecZddChannel::classID(); }
18 static const CLID& classID() { return CLID_RecZddChannel; }
19
21 virtual ~RecZddChannel();
22
25
26 int channelId() const { return m_chId; }
27 int scanCode() const { return m_scanCode; }
28 int baseLine() const { return m_baseLine; }
29 int phase() const { return m_phase; }
30 const std::vector<FragType>& fragments() const { return m_frags; }
31
32 void setChannelId(int chId) { m_chId = chId; }
33 void setScanCode(int scanCode) { m_scanCode = scanCode; }
34 void setBaseLine(int baseLine) { m_baseLine = baseLine; }
35 void setPhase(int phase) { m_phase = phase; }
36 void setFragments(const std::vector<FragType>& frags) { m_frags = frags; }
37
38 void addFragment(int time, float energy) { m_frags.push_back(std::make_pair(time, energy)); }
39 void addFragment(const FragType& fragment) { m_frags.push_back(fragment); }
40
41 private :
42
43 int m_chId;
44 int m_scanCode;
45 int m_baseLine;
46 int m_phase;
47 std::vector<FragType> m_frags;
48};
49
50typedef ObjectVector<RecZddChannel> RecZddChannelCol;
51typedef RecZddChannelCol::iterator RecZddChannelIterator;
52
53#endif
Double_t time
const CLID & CLID_RecZddChannel
Definition: EventModel.cxx:366
ObjectVector< RecZddChannel > RecZddChannelCol
RecZddChannelCol::iterator RecZddChannelIterator
************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
RecZddChannel(const RecZddChannel &)
void setFragments(const std::vector< FragType > &frags)
RecZddChannel & operator=(const RecZddChannel &)
virtual ~RecZddChannel()
const std::vector< FragType > & fragments() const