BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
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 "GaudiKernel/ContainedObject.h"
12#include "GaudiKernel/ObjectVector.h"
14
15using namespace std;
16
17extern const CLID& CLID_RecEmcHit;
18
19class RecEmcHit : virtual public ContainedObject
20{
21 public:
22
23 virtual const CLID& clID() const { return RecEmcHit::classID();}
24 static const CLID& classID() { return CLID_RecEmcHit; }
25
26 //Constructors and destructors
27 RecEmcHit();
29 const RecEmcEnergy& Energy,
30 const RecEmcTime& Time);
31 ~RecEmcHit();
32
33 //Copy and assignment
34 //RecEmcHit(const RecEmcHit& aHit);
35 //RecEmcHit& operator=(const RecEmcHit& aHit);
36
37 bool operator < (const RecEmcHit& aHit) const {
38 return fEnergy < aHit.fEnergy;
39 }
40
41 bool operator > (const RecEmcHit& aHit) const {
42 return fEnergy > aHit.fEnergy;
43 }
44
45 //Other methods
46 //Read
47 RecEmcID getCellId() const { return fCellId; }
48 RecEmcEnergy getEnergy() const { return fEnergy; }
49 RecEmcTime getTime() const { return fTime; }
50 HepPoint3D getCenter() const;
52
53 //Write
57
58 //Detector input
59 void Assign(const RecEmcID& CellId,
60 const RecEmcEnergy& Energy,
61 const RecEmcTime& Time);
62
63 //Dump out
64 void Dump() const;
65
66 protected:
67 //Data members
71};
72
73ostream& operator<<(ostream & os, const RecEmcHit& aHit);
74
75typedef map<RecEmcID,RecEmcHit,less<RecEmcID> > RecEmcHitMap;
76typedef ObjectVector<RecEmcHit> RecEmcHitCol;
77
78ostream& operator<<(ostream & os, const RecEmcHitMap& aHitMap);
79
80#endif /* REC_EMC_HIT_H */
double RecEmcEnergy
double RecEmcTime
const CLID & CLID_RecEmcHit
ostream & operator<<(ostream &os, const RecEmcHit &aHit)
ObjectVector< RecEmcHit > RecEmcHitCol
Definition RecEmcHit.h:76
map< RecEmcID, RecEmcHit, less< RecEmcID > > RecEmcHitMap
Definition RecEmcHit.h:75
RecEmcEnergy getEnergy() const
Definition RecEmcHit.h:48
bool operator>(const RecEmcHit &aHit) const
Definition RecEmcHit.h:41
RecEmcEnergy fEnergy
Definition RecEmcHit.h:69
void Assign(const RecEmcID &CellId, const RecEmcEnergy &Energy, const RecEmcTime &Time)
Definition RecEmcHit.cxx:99
RecEmcEnergy Energy(const RecEmcEnergy &Energy)
Definition RecEmcHit.cxx:87
HepPoint3D getFrontCenter() const
Definition RecEmcHit.cxx:69
RecEmcID CellId(const RecEmcID &CellId)
Definition RecEmcHit.cxx:81
RecEmcID getCellId() const
Definition RecEmcHit.h:47
RecEmcID fCellId
Definition RecEmcHit.h:68
void Dump() const
RecEmcTime Time(const RecEmcTime &Time)
Definition RecEmcHit.cxx:93
bool operator<(const RecEmcHit &aHit) const
Definition RecEmcHit.h:37
RecEmcTime getTime() const
Definition RecEmcHit.h:49
static const CLID & classID()
Definition RecEmcHit.h:24
RecEmcTime fTime
Definition RecEmcHit.h:70
HepPoint3D getCenter() const
Definition RecEmcHit.cxx:57
virtual const CLID & clID() const
Definition RecEmcHit.h:23