CGEM BOSS 6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
RecEmcFraction.h
Go to the documentation of this file.
1//
2// Bes EMC Rec Shower Fraction
3// (a fraction of a hit)
4//
5// Created by Wang.Zhe 2003, 10, 1
6//
7#ifndef REC_EMC_FRACTION_H
8#define REC_EMC_FRACTION_H
9
10#include <map>
11
14
15using namespace std;
16
18{
19 public:
20 //Constructors and destructors
22 RecEmcFraction(const RecEmcHit& aHit);
24
25 //Copy and assignment
26 //RecEmcFraction(const RecEmcFraction& aFraction);
27 //RecEmcFraction& operator=(const RecEmcFraction& aFraction);
28
29 bool operator < (const RecEmcFraction& aFraction) const {
30 return fEnergy*fFraction < aFraction.fEnergy*aFraction.fFraction;
31 }
32
33 bool operator > (const RecEmcFraction& aFraction) const {
34 return fEnergy*fFraction > aFraction.fEnergy*aFraction.fFraction;
35 }
36
37 //Other methods
38 //Read
39 RecEmcFrac getFraction() const;
40
41 //Write
43
44 //Distance to another frac
45 double Distance(const RecEmcID id) const;
46
47 //others
48 void Dump() const;
49
50 protected:
52};
53
54ostream& operator<<(ostream & os, const RecEmcFraction& aFraction);
55
56typedef map<RecEmcID,RecEmcFraction,less<RecEmcID> > RecEmcFractionMap;
57
58#endif /* REC_EMC_FRACTION_H */
double RecEmcFrac
ostream & operator<<(ostream &os, const RecEmcFraction &aFraction)
map< RecEmcID, RecEmcFraction, less< RecEmcID > > RecEmcFractionMap
void Dump() const
RecEmcFrac fFraction
RecEmcFrac Fraction(const RecEmcFrac &Fraction)
bool operator>(const RecEmcFraction &aFraction) const
bool operator<(const RecEmcFraction &aFraction) const
double Distance(const RecEmcID id) const
RecEmcFrac getFraction() const
RecEmcEnergy fEnergy
Definition RecEmcHit.h:69