BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/EmcRecEventModel/EmcRecEventModel/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
12#include "EmcRecEventModel/RecEmcDataType.h"
13#include "EmcRecEventModel/RecEmcHit.h"
14
15using namespace std;
16
17class RecEmcFraction: public RecEmcHit
18{
19 public:
20 //Constructors and destructors
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
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 */
ostream & operator<<(ostream &os, const RecEmcFraction &aFraction)
map< RecEmcID, RecEmcFraction, less< RecEmcID > > RecEmcFractionMap
void Dump() const
RecEmcFrac Fraction(const RecEmcFrac &Fraction)
double Distance(const RecEmcID id) const
RecEmcFrac getFraction() const
RecEmcFraction(const RecEmcHit &aHit)