#include <MdcSegData.h>
◆ MdcHitDict [1/3]
◆ MdcHitDict [2/3]
◆ MdcHitDict [3/3]
◆ MdcSegData() [1/3]
| 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}
Referenced by poisonHits().
◆ ~MdcSegData() [1/3]
| MdcSegData::~MdcSegData |
( |
void | | ) |
|
|
virtual |
Definition at line 29 of file MdcSegData.cxx.
29 {
30
31 delete[] _segUsage;
32}
◆ MdcSegData() [2/3]
| MdcSegData::MdcSegData |
( |
bool | skipUsedHit | ) |
|
◆ ~MdcSegData() [2/3]
| virtual MdcSegData::~MdcSegData |
( |
| ) |
|
|
virtual |
◆ MdcSegData() [3/3]
| MdcSegData::MdcSegData |
( |
bool | skipUsedHit | ) |
|
◆ ~MdcSegData() [3/3]
| virtual MdcSegData::~MdcSegData |
( |
| ) |
|
|
virtual |
◆ bunchTime() [1/3]
| double MdcSegData::bunchTime |
( |
void | | ) |
const |
|
inline |
◆ bunchTime() [2/3]
| double MdcSegData::bunchTime |
( |
void | | ) |
const |
|
inline |
◆ bunchTime() [3/3]
| double MdcSegData::bunchTime |
( |
void | | ) |
const |
|
inline |
◆ hit() [1/3]
| const MdcHit * MdcSegData::hit |
( |
int | hitno | ) |
const |
Definition at line 72 of file MdcSegData.cxx.
72 {
73
74 return ( *_theHits )[hitno];
75}
◆ hit() [2/3]
| const MdcHit * MdcSegData::hit |
( |
int | hitno | ) |
const |
◆ hit() [3/3]
| const MdcHit * MdcSegData::hit |
( |
int | hitno | ) |
const |
◆ hitMap() [1/3]
| const MdcHitMap * MdcSegData::hitMap |
( |
| ) |
const |
|
inline |
◆ hitMap() [2/3]
| const MdcHitMap * MdcSegData::hitMap |
( |
| ) |
const |
|
inline |
◆ hitMap() [3/3]
| const MdcHitMap * MdcSegData::hitMap |
( |
| ) |
const |
|
inline |
◆ loadevent() [1/3]
Definition at line 41 of file MdcSegData.cxx.
41 {
42
43 _bunchTime = tb;
44 _theHits = hitcol;
45 _hitMap = hitmap;
46 assert( _hitMap != 0 );
47
48 _segUsageDict.clear();
49 delete[] _segUsage;
50 _segUsage = 0;
51 eventNumber++;
52
53 _segUsage =
new MdcSegUsage[
nhits()];
54
55 MdcHit* aHit = 0;
56 MdcHitCol::iterator
iter = _theHits->begin();
57 int index = 0;
58 for ( ;
iter != _theHits->end();
iter++ )
59 {
61 _segUsageDict.put( aHit, &( _segUsage[index] ) );
63 {
64
65 _segUsage[index].killHit();
66 }
67 index++;
68 }
69}
bool skippingUsed() const
◆ loadevent() [2/3]
◆ loadevent() [3/3]
◆ nevent() [1/3]
| int MdcSegData::nevent |
( |
| ) |
const |
|
inline |
◆ nevent() [2/3]
| int MdcSegData::nevent |
( |
| ) |
const |
|
inline |
◆ nevent() [3/3]
| int MdcSegData::nevent |
( |
| ) |
const |
|
inline |
◆ nhits() [1/3]
| int MdcSegData::nhits |
( |
| ) |
const |
◆ nhits() [2/3]
| int MdcSegData::nhits |
( |
| ) |
const |
◆ nhits() [3/3]
| int MdcSegData::nhits |
( |
| ) |
const |
◆ poisonHits() [1/3]
| void MdcSegData::poisonHits |
( |
const MdcDetector * | gm, |
|
|
int | debug = 0 ) |
Definition at line 78 of file MdcSegData.cxx.
78 {
79
80
81
82
83 for (
int ilayer = 0; ilayer < gm->
nLayer(); ilayer++ )
84 {
86 for ( int iwire = 0; iwire < nwire; ++iwire )
87 {
89 if ( 0 ==
hitMap()->hitWire( ilayer, wireNext ) )
90 {
91
92
93
94
95
96 iwire += 2;
97 continue;
98 }
99
101 if ( theHit == 0 )
102 {
103
104
105
106 ++iwire;
107 continue;
108 }
109
111 if ( 0 !=
hitMap()->hitWire( ilayer, wirePrev ) )
112 {
114 if ( debug > 1 )
115 {
116 theHit->
print( std::cout );
117 std::cout << " killed " << std::endl;
118 }
119 }
120 else
121 {
122 if ( debug > 1 )
123 {
124 theHit->
print( std::cout );
125 std::cout << " ok " << std::endl;
126 }
127 }
128 }
129 }
130
131 return;
132}
int mdcWrapWire(int wireIn, int nCell)
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
◆ poisonHits() [2/3]
| void MdcSegData::poisonHits |
( |
const MdcDetector * | gm, |
|
|
int | debug = 0 ) |
◆ poisonHits() [3/3]
| void MdcSegData::poisonHits |
( |
const MdcDetector * | gm, |
|
|
int | debug = 0 ) |
◆ runNumber() [1/3]
| int MdcSegData::runNumber |
( |
| ) |
const |
|
inline |
◆ runNumber() [2/3]
| int MdcSegData::runNumber |
( |
| ) |
const |
|
inline |
◆ runNumber() [3/3]
| int MdcSegData::runNumber |
( |
| ) |
const |
|
inline |
◆ segUsage() [1/3]
◆ segUsage() [2/3]
◆ segUsage() [3/3]
◆ skippingUsed() [1/3]
| bool MdcSegData::skippingUsed |
( |
| ) |
const |
|
inline |
◆ skippingUsed() [2/3]
| bool MdcSegData::skippingUsed |
( |
| ) |
const |
|
inline |
◆ skippingUsed() [3/3]
| bool MdcSegData::skippingUsed |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: