#include <MdcSegData.h>
Definition at line 26 of file MdcSegData.h.
◆ MdcHitDict
◆ MdcSegData()
MdcSegData::MdcSegData |
( |
bool | skipUsedHit | ) |
|
Definition at line 16 of file MdcSegData.cxx.
18{
19 eventNumber=0;
20 _segUsage = 0;
21 _hitMap = 0;
22 _bunchTime = 0;
23 _skipUsed = skip;
24
25 _theHits = 0;
26}
◆ ~MdcSegData()
MdcSegData::~MdcSegData |
( |
void | | ) |
|
|
virtual |
Definition at line 29 of file MdcSegData.cxx.
29 {
30
31 delete [] _segUsage;
32}
◆ bunchTime()
double MdcSegData::bunchTime |
( |
void | | ) |
const |
|
inline |
◆ hit()
const MdcHit * MdcSegData::hit |
( |
int | hitno | ) |
const |
Definition at line 73 of file MdcSegData.cxx.
73 {
74
75return (*_theHits)[hitno];
76}
◆ hitMap()
const MdcHitMap * MdcSegData::hitMap |
( |
| ) |
const |
|
inline |
◆ loadevent()
Definition at line 43 of file MdcSegData.cxx.
43 {
44
45 _bunchTime = tb;
46 _theHits = hitcol;
47 _hitMap = hitmap;
48 assert (_hitMap != 0);
49
50 _segUsageDict.
clear();
51 delete [] _segUsage;
52 _segUsage = 0;
53 eventNumber++;
54
56
58 MdcHitCol::iterator
iter = _theHits->begin();
59 int index = 0;
60 for (;
iter != _theHits->end();
iter++) {
62 _segUsageDict.
put(aHit, &(_segUsage[index]));
64
66 }
67 index++;
68 }
69}
void put(const K &, const V &)
bool skippingUsed() const
◆ nevent()
int MdcSegData::nevent |
( |
| ) |
const |
|
inline |
◆ nhits()
int MdcSegData::nhits |
( |
| ) |
const |
◆ poisonHits()
void MdcSegData::poisonHits |
( |
const MdcDetector * | gm, |
|
|
int | debug = 0 ) |
Definition at line 81 of file MdcSegData.cxx.
81 {
82
83
84
85
86 for (
int ilayer = 0; ilayer < gm->
nLayer(); ilayer++) {
88 for (int iwire=0; iwire < nwire;++iwire) {
90 if ( 0 ==
hitMap()->hitWire(ilayer, wireNext) ) {
91
92
93
94
95
96 iwire+=2; continue;
97 }
98
100 if (theHit == 0) {
101
102
103
104 ++iwire; continue;
105 }
106
108 if ( 0 !=
hitMap()->hitWire(ilayer, wirePrev)) {
110 if(debug>1){
111 theHit->
print(std::cout);
112 std::cout<< " killed " << std::endl;
113 }
114 }else{
115 if(debug>1){
116 theHit->
print(std::cout);
117 std::cout<< " ok " << std::endl;
118 }
119 }
120 }
121 }
122
123 return;
124}
const MdcLayer * Layer(unsigned id) const
MdcHit * hitWire(int lay, int wire) const
void print(std::ostream &o) const
bool get(const K &theKey, V &theAnswer) const
const MdcHitDict & segUsage() const
const MdcHitMap * hitMap() const
int mdcWrapWire(int wireIn, int nCell)
◆ runNumber()
int MdcSegData::runNumber |
( |
| ) |
const |
|
inline |
◆ segUsage()
◆ skippingUsed()
bool MdcSegData::skippingUsed |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: