43 m_status = source.
status();
44 m_raw = ((m_status & Raw_Mask) >> Raw_Index ) ?
true :
false;
45 m_readout = ((m_status & Readout_Mask) >> Readout_Index ) ?
true :
false;
46 m_counter = ((m_status & Counter_Mask) >> Counter_Index ) ?
true :
false;
47 m_cluster = ((m_status & Cluster_Mask) >> Cluster_Index ) ?
true :
false;
48 m_barrel = ((m_status & Barrel_Mask) >> Barrel_Index ) ?
true :
false;
49 m_east = ((m_status & East_Mask) >> East_Index ) ?
true :
false;
50 m_layer = (m_status & Layer_Mask) >> Layer_Index;
51 m_overflow = ((m_status & Overflow_Mask) >> Overflow_Index ) ?
true :
false;
52 m_multihit = ((m_status & Multihit_Mask) >> Multihit_Index ) ?
true :
false;
53 m_ncounter = (m_status >> Ncounter_Index ) & N_Mask;
54 m_neast = (m_status >> Neast_Index ) & N_Mask;
55 m_nwest = (m_status >> Nwest_Index ) & N_Mask;
56 m_mrpc = ((m_status & MRPC_Mask) >> MRPC_Index ) ?
true :
false;
64 m_status = source.m_status;
70 return ((status & Raw_Mask) >> Raw_Index ) ?
true :
false;
75 return ((status & Readout_Mask) >> Readout_Index ) ?
true :
false;
80 return ((status & Counter_Mask) >> Counter_Index ) ?
true :
false;
85 return ((status & Cluster_Mask) >> Cluster_Index ) ?
true :
false;
90 return ((status & Barrel_Mask) >> Barrel_Index ) ?
true :
false;
95 return ((status & East_Mask) >> East_Index ) ?
true :
false;
100 return (status & Layer_Mask) >> Layer_Index;
105 return ((status & Overflow_Mask) >> Overflow_Index ) ?
true :
false;
110 return ((status & Multihit_Mask) >> Multihit_Index ) ?
true :
false;
115 return (status >> Ncounter_Index ) & N_Mask;
120 return (status >> Neast_Index ) & N_Mask;
125 return (status >> Nwest_Index ) & N_Mask;
130 return ((status & MRPC_Mask) >> MRPC_Index ) ?
true :
false;
136 m_raw = ((m_status & Raw_Mask) >> Raw_Index ) ?
true :
false;
137 m_readout = ((m_status & Readout_Mask) >> Readout_Index ) ?
true :
false;
138 m_counter = ((m_status & Counter_Mask) >> Counter_Index ) ?
true :
false;
139 m_cluster = ((m_status & Cluster_Mask) >> Cluster_Index ) ?
true :
false;
140 m_barrel = ((m_status & Barrel_Mask) >> Barrel_Index ) ?
true :
false;
141 m_east = ((m_status & East_Mask) >> East_Index ) ?
true :
false;
142 m_layer = (m_status & Layer_Mask) >> Layer_Index;
143 m_overflow = ((m_status & Overflow_Mask) >> Overflow_Index ) ?
true :
false;
144 m_multihit = ((m_status & Multihit_Mask) >> Multihit_Index ) ?
true :
false;
145 m_ncounter = (m_status >> Ncounter_Index ) & N_Mask;
146 m_neast = (m_status >> Neast_Index ) & N_Mask;
147 m_nwest = (m_status >> Nwest_Index ) & N_Mask;
148 m_mrpc = ((m_status & MRPC_Mask) >> MRPC_Index ) ?
true :
false;
154 if( raw ) { m_status |= Raw_Mask; }
155 else { m_status &= (~Raw_Mask); }
161 if( readout ) { m_status |= Readout_Mask; }
162 else { m_status &= (~Readout_Mask); }
168 if( counter ) { m_status |= Counter_Mask; }
169 else { m_status &= (~Counter_Mask); }
175 if( cluster ) { m_status |= Cluster_Mask; }
176 else { m_status &= (~Cluster_Mask); }
182 if( barrel ) { m_status |= Barrel_Mask; }
183 else { m_status &= (~Barrel_Mask); }
189 if( east ) { m_status |= East_Mask; }
190 else { m_status &= (~East_Mask); }
197 m_status |= (
layer << Layer_Index);
202 m_overflow = overflow;
203 if( overflow ) { m_status |= Overflow_Mask; }
204 else { m_status &= (~Overflow_Mask); }
209 m_multihit = multihit;
210 if( multihit ) { m_status |= Multihit_Mask; }
211 else { m_status &= (~Multihit_Mask); }
216 if( m_barrel ) assert(
ncounter<=176);
219 m_status |= (
ncounter << Ncounter_Index);
224 if( m_barrel ) assert(
neast<=176);
225 else assert(
neast<=96);
227 m_status |= (
neast << Neast_Index);
232 if( m_barrel ) assert(
nwest<=176);
233 else assert(
nwest<=96);
235 m_status |= (
nwest << Nwest_Index);
241 if( mrpc ) { m_status |= MRPC_Mask; }
242 else { m_status &= (~MRPC_Mask); }
275 if(
layer%10 == 1 ) {
285 if(
static_cast<int>(
layer/10) == 1 ) {
293 cout <<
"TofRec TofHitStatus::setBarrelCounter layer = " <<
layer << endl;
322 if(
layer%10 == 1 ) {
332 if(
static_cast<int>(
layer/10) == 1 ) {
unsigned int status() const
void setMRPCReadout(bool east)
unsigned int ncounter() const
unsigned int layer() const
void setMRPCCluster(bool cluster, bool east)
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)