BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
Emc/EmcRecEventModel/EmcRecEventModel-01-01-18/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 "GaudiKernel/ContainedObject.h"
12#include "GaudiKernel/ObjectVector.h"
13#include "EmcRecEventModel/RecEmcDataType.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 */
const CLID & CLID_RecEmcHit
Definition: EventModel.cxx:320
ostream & operator<<(ostream &os, const RecEmcHit &aHit)
Definition: RecEmcHit.cxx:123
map< RecEmcID, RecEmcHit, less< RecEmcID > > RecEmcHitMap
const CLID & CLID_RecEmcHit
Definition: EventModel.cxx:320
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
void Dump() const
Definition: RecEmcHit.cxx:108
RecEmcTime Time(const RecEmcTime &Time)
Definition: RecEmcHit.cxx:93
HepPoint3D getCenter() const
Definition: RecEmcHit.cxx:57