BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcRecEventModel/include/EmcRecEventModel/RecEmcHit.h
Go to the documentation of this file.
1//
2// Bes EMC Rec Hit
3//
4// Created by Zhe Wang 2003, 10, 1
5//
6#ifndef REC_EMC_HIT_H
7#define REC_EMC_HIT_H
8
9#include <map>
10
11#include "EmcRecEventModel/RecEmcDataType.h"
12#include "GaudiKernel/ContainedObject.h"
13#include "GaudiKernel/ObjectVector.h"
14
15using namespace std;
16
17extern const CLID& CLID_RecEmcHit;
18
19class RecEmcHit : virtual public ContainedObject {
20public:
21 virtual const CLID& clID() const { return RecEmcHit::classID(); }
22 static const CLID& classID() { return CLID_RecEmcHit; }
23
24 // Constructors and destructors
25 RecEmcHit();
26 RecEmcHit( const RecEmcID& CellId, const RecEmcEnergy& Energy, const RecEmcTime& Time );
27 ~RecEmcHit();
28
29 // Copy and assignment
30 // RecEmcHit(const RecEmcHit& aHit);
31 // RecEmcHit& operator=(const RecEmcHit& aHit);
32
33 bool operator<( const RecEmcHit& aHit ) const { return fEnergy < aHit.fEnergy; }
34
35 bool operator>( const RecEmcHit& aHit ) const { return fEnergy > aHit.fEnergy; }
36
37 // Other methods
38 // Read
39 RecEmcID getCellId() const { return fCellId; }
40 RecEmcEnergy getEnergy() const { return fEnergy; }
41 RecEmcTime getTime() const { return fTime; }
42 HepPoint3D getCenter() const;
44
45 // Write
49
50 // Detector input
51 void Assign( const RecEmcID& CellId, const RecEmcEnergy& Energy, const RecEmcTime& Time );
52
53 // Dump out
54 void Dump() const;
55
56protected:
57 // Data members
61};
62
63ostream& operator<<( ostream& os, const RecEmcHit& aHit );
64
65typedef map<RecEmcID, RecEmcHit, less<RecEmcID>> RecEmcHitMap;
66typedef ObjectVector<RecEmcHit> RecEmcHitCol;
67
68ostream& operator<<( ostream& os, const RecEmcHitMap& aHitMap );
69
70#endif /* REC_EMC_HIT_H */
HepGeom::Point3D< double > HepPoint3D
const CLID & CLID_RecEmcHit
ostream & operator<<(ostream &os, const RecEmcHit &aHit)
ObjectVector< RecEmcHit > RecEmcHitCol
map< RecEmcID, RecEmcHit, less< RecEmcID > > RecEmcHitMap
const CLID & CLID_RecEmcHit
bool operator>(const RecEmcHit &aHit) const
void Assign(const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
Definition RecEmcHit.cxx:86
RecEmcEnergy Energy(const RecEmcEnergy &Energy)
Definition RecEmcHit.cxx:76
HepPoint3D getFrontCenter() const
Definition RecEmcHit.cxx:62
RecEmcID CellId(const RecEmcID &CellId)
Definition RecEmcHit.cxx:71
void Dump() const
Definition RecEmcHit.cxx:93
RecEmcTime Time(const RecEmcTime &Time)
Definition RecEmcHit.cxx:81
bool operator<(const RecEmcHit &aHit) const
HepPoint3D getCenter() const
Definition RecEmcHit.cxx:53