41 m_status = source.
status();
42 m_raw = ((m_status & Raw_Mask) >> Raw_Index ) ?
true :
false;
43 m_readout = ((m_status & Readout_Mask) >> Readout_Index ) ?
true :
false;
44 m_counter = ((m_status & Counter_Mask) >> Counter_Index ) ?
true :
false;
45 m_cluster = ((m_status & Cluster_Mask) >> Cluster_Index ) ?
true :
false;
46 m_barrel = ((m_status & Barrel_Mask) >> Barrel_Index ) ?
true :
false;
47 m_east = ((m_status & East_Mask) >> East_Index ) ?
true :
false;
48 m_layer = (m_status & Layer_Mask) >> Layer_Index;
49 m_overflow = ((m_status & Overflow_Mask) >> Overflow_Index ) ?
true :
false;
50 m_multihit = ((m_status & Multihit_Mask) >> Multihit_Index ) ?
true :
false;
51 m_ncounter = (m_status >> Ncounter_Index ) & N_Mask;
52 m_neast = (m_status >> Neast_Index ) & N_Mask;
53 m_nwest = (m_status >> Nwest_Index ) & N_Mask;
61 m_status = source.m_status;
67 return ((status & Raw_Mask) >> Raw_Index ) ?
true :
false;
72 return ((status & Readout_Mask) >> Readout_Index ) ?
true :
false;
77 return ((status & Counter_Mask) >> Counter_Index ) ?
true :
false;
82 return ((status & Cluster_Mask) >> Cluster_Index ) ?
true :
false;
87 return ((status & Barrel_Mask) >> Barrel_Index ) ?
true :
false;
92 return ((status & East_Mask) >> East_Index ) ?
true :
false;
97 return (status & Layer_Mask) >> Layer_Index;
102 return ((status & Overflow_Mask) >> Overflow_Index ) ?
true :
false;
107 return ((status & Multihit_Mask) >> Multihit_Index ) ?
true :
false;
112 return (status >> Ncounter_Index ) & N_Mask;
117 return (status >> Neast_Index ) & N_Mask;
122 return (status >> Nwest_Index ) & N_Mask;
128 m_raw = ((m_status & Raw_Mask) >> Raw_Index ) ?
true :
false;
129 m_readout = ((m_status & Readout_Mask) >> Readout_Index ) ?
true :
false;
130 m_counter = ((m_status & Counter_Mask) >> Counter_Index ) ?
true :
false;
131 m_cluster = ((m_status & Cluster_Mask) >> Cluster_Index ) ?
true :
false;
132 m_barrel = ((m_status & Barrel_Mask) >> Barrel_Index ) ?
true :
false;
133 m_east = ((m_status & East_Mask) >> East_Index ) ?
true :
false;
134 m_layer = (m_status & Layer_Mask) >> Layer_Index;
135 m_overflow = ((m_status & Overflow_Mask) >> Overflow_Index ) ?
true :
false;
136 m_multihit = ((m_status & Multihit_Mask) >> Multihit_Index ) ?
true :
false;
137 m_ncounter = (m_status >> Ncounter_Index ) & N_Mask;
138 m_neast = (m_status >> Neast_Index ) & N_Mask;
139 m_nwest = (m_status >> Nwest_Index ) & N_Mask;
145 if( raw ) { m_status |= Raw_Mask; }
146 else { m_status &= (~Raw_Mask); }
152 if( readout ) { m_status |= Readout_Mask; }
153 else { m_status &= (~Readout_Mask); }
159 if( counter ) { m_status |= Counter_Mask; }
160 else { m_status &= (~Counter_Mask); }
166 if( cluster ) { m_status |= Cluster_Mask; }
167 else { m_status &= (~Cluster_Mask); }
173 if( barrel ) { m_status |= Barrel_Mask; }
174 else { m_status &= (~Barrel_Mask); }
180 if(
east ) { m_status |= East_Mask; }
181 else { m_status &= (~East_Mask); }
188 m_status |= (
layer << Layer_Index);
193 m_overflow = overflow;
194 if( overflow ) { m_status |= Overflow_Mask; }
195 else { m_status &= (~Overflow_Mask); }
200 m_multihit = multihit;
201 if( multihit ) { m_status |= Multihit_Mask; }
202 else { m_status &= (~Multihit_Mask); }
207 if( m_barrel ) assert(
ncounter<=176);
210 m_status |= (
ncounter << Ncounter_Index);
215 if( m_barrel ) assert(
neast<=176);
216 else assert(
neast<=96);
218 m_status |= (
neast << Neast_Index);
223 if( m_barrel ) assert(
nwest<=176);
224 else assert(
nwest<=96);
226 m_status |= (
nwest << Nwest_Index);
259 if(
layer%10 == 1 ) {
269 if(
static_cast<int>(
layer/10) == 1 ) {
277 cout <<
"TofRec TofHitStatus::setBarrelCounter layer = " <<
layer << endl;
305 if(
layer%10 == 1 ) {
315 if(
static_cast<int>(
layer/10) == 1 ) {
unsigned int status() const
unsigned int ncounter() const
unsigned int layer() const
void setBarrelReadout(unsigned int layer, bool east)
void setStatus(unsigned int status)
void setNWest(unsigned int nwest)
void setLayer(unsigned int layer)
void setCounter(bool counter)
void setMultihit(bool multihit)
void setBarrel(bool barrel)
unsigned int nwest() const
void setBarrelRaw(unsigned int layer, bool east)
void setCluster(bool cluster)
void setOverflow(bool overflow)
unsigned int neast() const
void setNCounter(unsigned int ncounter)
void setEndcapRaw(bool east)
void setEndcapCluster(bool east)
void setNEast(unsigned int neast)
void setBarrelCounter(unsigned int layer)
TofHitStatus & operator=(const DstTofTrack &source)
void setBarrelCluster(unsigned int layer)
void setReadout(bool readout)