BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
LTagSetAlg Class Reference

#include <LTagSetAlg.h>

+ Inheritance diagram for LTagSetAlg:

Public Member Functions

 LTagSetAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
unsigned int IntToTag1 (int val1, int val2, int val3, int val4)
 
unsigned int IntToTag2 (int val1, int val2, int val3, int val4, int val5, int val6)
 
 LTagSetAlg (const std::string &name, ISvcLocator *pSvcLocator)
 
StatusCode initialize ()
 
StatusCode execute ()
 
StatusCode finalize ()
 
unsigned int IntToTag1 (int val1, int val2, int val3, int val4)
 
unsigned int IntToTag2 (int val1, int val2, int val3, int val4, int val5, int val6)
 

Detailed Description

Constructor & Destructor Documentation

◆ LTagSetAlg() [1/2]

LTagSetAlg::LTagSetAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 45 of file LTagSetAlg.cxx.

45 :
46 Algorithm(name, pSvcLocator) {
47 }

◆ LTagSetAlg() [2/2]

LTagSetAlg::LTagSetAlg ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Member Function Documentation

◆ execute() [1/2]

StatusCode LTagSetAlg::execute ( )

Definition at line 171 of file LTagSetAlg.cxx.

171 {
172
173 int nGoodCharged = 0; //1
174 int nGoodChargedp = 0; //2
175 int nGoodChargedm = 0; //3
176 int nCharged = 0; //4
177 int nNeutrk = 0; //5
178 int nTottrk = 0; //6
179 int totCharged = 0; //7
180 int npionp = 0; //8
181 int npionm = 0; //9
182 int nprotonp = 0; //10
183 int nprotonm = 0; //11
184 int nkaonp = 0; //12
185 int nkaonm = 0; //13
186 int nlambda = 0; //14
187 int nalambda= 0; //15
188 int nks = 0; //16
189 int ngamma = 0; //17
190 int neta = 0; //18
191 int npi0 = 0; //19
192 int nmuonp = 0; //20
193 int nmuonm = 0; //21
194 int nelectronp = 0; //22
195 int nelectronm = 0; //23
196
197 Hep3Vector xorigin(0,0,0);
198 if(m_vtxsvc->isVertexValid()){
199 double* dbv = m_vtxsvc->PrimaryVertex();
200 xorigin.setX(dbv[0]);
201 xorigin.setY(dbv[1]);
202 xorigin.setZ(dbv[2]);
203 }
204
205 SmartDataPtr<EvtRecEvent> evtRecEvent(eventSvc(), EventModel::EvtRec::EvtRecEvent);
206 SmartDataPtr<EvtRecTrackCol> evtRecTrkCol(eventSvc(), EventModel::EvtRec::EvtRecTrackCol);
207
208 nCharged = evtRecEvent->totalCharged();
209 nNeutrk = evtRecEvent->totalNeutral();
210 nTottrk = evtRecEvent->totalTracks();
211
212 // Good charged track selection
213 vector<int> iGood;
214 iGood.clear();
215 for ( Int_t iCharge = 0; iCharge < evtRecEvent->totalCharged(); ++iCharge ) {
216 EvtRecTrackIterator itTrk=evtRecTrkCol->begin() + iCharge;
217 if(!(*itTrk)->isMdcTrackValid()) continue;
218 RecMdcTrack *mdcTrk = (*itTrk)->mdcTrack();
219 HepVector a = mdcTrk->helix();
220 HepSymMatrix Ea = mdcTrk->err();
221 HepPoint3D point0(0.,0.,0.); // the initial point for MDC reconstruction
222 HepPoint3D IP(xorigin[0],xorigin[1],xorigin[2]);
223 VFHelix helixip(point0,a,Ea);
224 helixip.pivot(IP);
225 HepVector vecipa = helixip.a();
226 double Rvxy0=fabs(vecipa[0]); //the nearest distance to IP in xy plane
227 double Rvz0=vecipa[3]; //the nearest distance to IP in z direction
228 double Rvphi0=vecipa[1];
229 if(fabs(Rvxy0) >= 1.0) continue;
230 if(fabs(Rvz0) >= 10.0) continue;
231 if(mdcTrk->charge() > 0) nGoodChargedp++;
232 if(mdcTrk->charge() < 0) nGoodChargedm++;
233 ++nGoodCharged;
234 totCharged +=mdcTrk->charge();
235 iGood.push_back(iCharge);
236 }
237 // std::cout <<"iEvt: "<<iEvt <<" nGoodCharged: "<<nGoodCharged<<std::endl;
238
239 // get photons
240 for(int i = evtRecEvent->totalCharged(); i< evtRecEvent->totalTracks(); i++) {
241 EvtRecTrackIterator iTrk=evtRecTrkCol->begin() + i;
242 if((*iTrk)->isEmcShowerValid()){
243 RecEmcShower* emcShower = (*iTrk)->emcShower();
244 if ( (emcShower->energy()>0.025) && (emcShower->time()>0) && (emcShower->time()<14) && ( ( (abs(cos(emcShower->theta()))<0.80) && (emcShower->energy()>0.025) ) || ( (abs(cos(emcShower->theta()))<0.92) && (abs(cos(emcShower->theta()))>0.86) && (emcShower->energy()>0.050) ) ) ){
245 ngamma++;
246 }
247 }
248 }
249
250 // get tracks
251 for (int i=0;i<iGood.size();i++){
252 EvtRecTrackIterator iTrk = evtRecTrkCol->begin() + iGood[i];
253 RecMdcKalTrack* mdcKalTrack = (*iTrk)->mdcKalTrack();
254
255 // set up pid (but only make very rough pid cuts)
257 pid->init();
258 pid->setMethod(pid->methodProbability());
259 pid->setRecTrack(*iTrk);
260 pid->usePidSys(pid->useDedx() | pid->useTof1() | pid->useTof2());
261 pid->identify(pid->onlyPion() | pid->onlyKaon() | pid->onlyProton() | pid->onlyElectron() | pid->onlyMuon());
262 pid->calculate();
263 if(!(pid->IsPidInfoValid())) continue;
264
265 if ((pid->probPion() > pid->probKaon()) && (pid->probPion() > pid->probProton())){
266 if (mdcKalTrack->charge() > 0) npionp++;
267 if (mdcKalTrack->charge() < 0) npionm++;
268 }
269
270 if ((pid->probKaon() > pid->probPion()) && (pid->probKaon() > pid->probProton())){
271 if (mdcKalTrack->charge() > 0) nkaonp++;
272 if (mdcKalTrack->charge() < 0) nkaonm++;
273 }
274
275 if ((pid->probProton() > pid->probPion()) && (pid->probProton() > pid->probKaon())){
276 if (mdcKalTrack->charge() > 0) nprotonp++;
277 if (mdcKalTrack->charge() < 0) nprotonm++;
278 }
279
280 if (pid->probElectron() > 1.0e-5){
281 if (mdcKalTrack->charge() > 0) nelectronp++;
282 if (mdcKalTrack->charge() < 0) nelectronm++;
283 }
284
285 if (pid->probMuon() > 1.0e-5){
286 if (mdcKalTrack->charge() > 0) nmuonp++;
287 if (mdcKalTrack->charge() < 0) nmuonm++;
288 }
289 }
290
291 // get etas, eta --> gamma gamma
292 SmartDataPtr<EvtRecEtaToGGCol> evtRecEtaToGGCol(eventSvc(), EventModel::EvtRec::EvtRecEtaToGGCol);
293 for (EvtRecEtaToGGCol::iterator iEta = evtRecEtaToGGCol->begin(); iEta != evtRecEtaToGGCol->end(); iEta++){
294 if ((((*iEta)->chisq() < 2500) && ((*iEta)->unconMass() > 0.40) && ((*iEta)->unconMass() < 0.70))){
295 EvtRecTrack* lo = const_cast<EvtRecTrack*>((*iEta)->loEnGamma());
296 RecEmcShower* loShower = lo->emcShower();
297 if ( (loShower->energy() > 0.025) && (loShower->time() > 0) && (loShower->time() < 14) && ( ( (abs(cos(loShower->theta())) < 0.80) && (loShower->energy() > 0.025) ) || ( (abs(cos(loShower->theta())) < 0.92) && (abs(cos(loShower->theta())) > 0.86) && (loShower->energy() > 0.050) ) ) ){
298 EvtRecTrack* hi = const_cast<EvtRecTrack*>((*iEta)->hiEnGamma());
299 RecEmcShower* hiShower = hi->emcShower();
300 if ( (hiShower->energy() > 0.025) && (hiShower->time() > 0) && (hiShower->time() < 14) && ( ( (abs(cos(hiShower->theta())) < 0.80) && (hiShower->energy() > 0.025) ) || ( (abs(cos(hiShower->theta())) < 0.92) && (abs(cos(hiShower->theta())) > 0.86) && (hiShower->energy() > 0.050) ) ) ){
301 neta++;
302 }
303 }
304 }
305 }
306
307 // get pi0s, pi0 --> gamma gamma
308 SmartDataPtr<EvtRecPi0Col> evtRecPi0Col(eventSvc(), EventModel::EvtRec::EvtRecPi0Col);
309 for (EvtRecPi0Col::iterator iPi0 = evtRecPi0Col->begin(); iPi0 != evtRecPi0Col->end(); iPi0++){
310 if ((((*iPi0)->chisq() < 2500) && ((*iPi0)->unconMass() > 0.107) && ((*iPi0)->unconMass() < 0.163))){
311 EvtRecTrack* lo = const_cast<EvtRecTrack*>((*iPi0)->loEnGamma());
312 RecEmcShower* loShower = lo->emcShower();
313 if ( (loShower->energy() > 0.025) && (loShower->time() > 0) && (loShower->time() < 14) && ( (( abs(cos(loShower->theta())) < 0.80) && (loShower->energy() > 0.025) ) || ( (abs(cos(loShower->theta())) < 0.92) && (abs(cos(loShower->theta())) > 0.86) && (loShower->energy() > 0.050) ) ) ){
314 EvtRecTrack* hi = const_cast<EvtRecTrack*>((*iPi0)->hiEnGamma());
315 RecEmcShower* hiShower = hi->emcShower();
316 if ( (hiShower->energy() > 0.025) && (hiShower->time() > 0) && (hiShower->time() < 14) && ( ( (abs(cos(hiShower->theta())) < 0.80) && (hiShower->energy() > 0.025) ) || ( (abs(cos(hiShower->theta())) < 0.92) && (abs(cos(hiShower->theta())) > 0.86) && (hiShower->energy() > 0.050) ) ) ){
317 npi0++;
318 }
319 }
320 }
321 }
322
323 // get kshorts
324 // [[ vertexId is the pdgID ]]
325 // Ks --> pi+ pi- and Lambda --> p+ pi- and ALambda --> p- pi+
326 SmartDataPtr<EvtRecVeeVertexCol> evtRecVeeVertexCol(eventSvc(), EventModel::EvtRec::EvtRecVeeVertexCol);
327 for (EvtRecVeeVertexCol::iterator iKs = evtRecVeeVertexCol->begin(); iKs != evtRecVeeVertexCol->end(); iKs++){
328 if ((*iKs)->vertexId() == 310){
329 if ( ((*iKs)->mass() > 0.471) && ((*iKs)->mass() < 0.524) && ((*iKs)->chi2() < 100) ){
330 nks++;
331 }
332 }
333 }
334
335 for (EvtRecVeeVertexCol::iterator iL = evtRecVeeVertexCol->begin(); iL != evtRecVeeVertexCol->end(); iL++){
336 if ((*iL)->vertexId() == 3122){
337 if ( ((*iL)->mass() > 1.100) && ((*iL)->mass() < 1.130) && ((*iL)->chi2() < 100) ){
338 nlambda++;
339 }
340 }
341 if ((*iL)->vertexId() == -3122){
342 if ( ((*iL)->mass() > 1.100) && ((*iL)->mass() < 1.130) && ((*iL)->chi2() < 100) ){
343 nalambda++;
344 }
345 }
346 }
347
348 unsigned int tagdata1 = nGoodCharged;
349 unsigned int tagdata2 = IntToTag1(nNeutrk, nTottrk, ngamma, npi0);
350 unsigned int tagdata3 = IntToTag2(npionp, npionm, nkaonp, nkaonm, nprotonp, nprotonm);
351 unsigned int tagdata4 = IntToTag2(nlambda, nalambda, nelectronp, nelectronm, nmuonp, nmuonm);
352 unsigned int tagdata5 = IntToTag2(nks, neta, nCharged, nGoodChargedp, nGoodChargedm, totCharged);
353
354 m_tagFilterSvc->setTagData1(tagdata1);
355 m_tagFilterSvc->setTagData2(tagdata2);
356 m_tagFilterSvc->setTagData3(tagdata3);
357 m_tagFilterSvc->setTagData4(tagdata4);
358 m_tagFilterSvc->setTagData5(tagdata5);
359
360 SmartDataPtr<EvtRecDTagCol> evtRecDTagCol(eventSvc(), EventModel::EvtRec::EvtRecDTagCol);
361
362 std::set<UInt_t> Lcmode0, Lcmode1, Dsmode0, Dsmode1, D0mode0, D0mode1, Dmode0, Dmode1;
363 Lcmode0.clear(); Lcmode1.clear(); Dsmode0.clear(); Dsmode1.clear(); D0mode0.clear(); D0mode1.clear(), Dmode0.clear(); Dmode1.clear();
364 if ( evtRecDTagCol ) {
365 EvtRecDTagCol::iterator iter_begin = evtRecDTagCol->begin();
366 EvtRecDTagCol::iterator iter_end = evtRecDTagCol->end();
367 //cout << "Mode = ";
368 for (EvtRecDTagCol::iterator iter = iter_begin; iter != iter_end; iter++) {
369 Int_t type = (*iter)->type();
370 Int_t mode = (*iter)->decayMode();
371 //cout << mode << "," << type << " " ;
372 if ( mode>=1000 && mode<1066 ) {
373 if (type==1) {
374 Lcmode1.insert(mode);
375 } else {
376 Lcmode0.insert(mode);
377 }
378 }
379 else if ( mode>=400 && mode<505 ) {
380 if (type==1) {
381 Dsmode1.insert(mode);
382 } else {
383 Dsmode0.insert(mode);
384 }
385 }
386 else if ( mode>=0 && mode<200 ) {
387 if (type==1) {
388 D0mode1.insert(mode);
389 } else {
390 D0mode0.insert(mode);
391 }
392 }
393 else if ( mode>=200 && mode<400 ) {
394 if (type==1) {
395 Dmode1.insert(mode);
396 } else {
397 Dmode0.insert(mode);
398 }
399 }
400 }
401 //cout << endl;
402 }
403
404 UInt_t Lc_modemap = 0, Ds_modemap = 0, D0_modemap = 0, D_modemap = 0;
405 int data0=3;
406 std::set<UInt_t>::iterator it1, it0;
407
408 if ( Lcmode1.size()>0 ) {
409 std::cout << "Evt: " << iEvt << " Lc_1 : ";
410 Lc_modemap |= (1<<31);
411 for (it1=Lcmode1.begin(); it1!=Lcmode1.end(); ++it1) {
412 std::cout << ' ' << *it1;
413 Lc_modemap |= (1<<Lc_modeTag[*it1]);
414 }
415 std::cout << endl;
416 } else {
417 if ( Lcmode0.size()>0 ) {
418 std::cout << "Evt: " << iEvt << " Lc_0 : ";
419 for (it0=Lcmode0.begin(); it0!=Lcmode0.end(); ++it0) {
420 std::cout << ' ' << *it0;
421 Lc_modemap |= (1<<Lc_modeTag[*it0]);
422 }
423 std::cout << endl;
424 }
425 }
426
427 if ( Dsmode1.size()>0 ) {
428 std::cout << "Evt: " << iEvt << " Ds_1 : ";
429 Ds_modemap |= (1<<31);
430 for (it1=Dsmode1.begin(); it1!=Dsmode1.end(); ++it1) {
431 std::cout << ' ' << *it1;
432 Ds_modemap |= (1<<Ds_modeTag[*it1]);
433 }
434 std::cout << endl;
435 } else {
436 if ( Dsmode0.size()>0 ) {
437 std::cout << "Evt: " << iEvt << " Ds_0 : ";
438 for (it0=Dsmode0.begin(); it0!=Dsmode0.end(); ++it0) {
439 std::cout << ' ' << *it0;
440 Ds_modemap |= (1<<Ds_modeTag[*it0]);
441 }
442 std::cout << endl;
443 }
444 }
445
446 if ( D0mode1.size()>0 ) {
447 std::cout << "Evt: " << iEvt << " D0_1 : ";
448 D0_modemap |= (1<<31);
449 for (it1=D0mode1.begin(); it1!=D0mode1.end(); ++it1) {
450 std::cout << ' ' << *it1;
451 D0_modemap |= (1<<D0_modeTag[*it1]);
452 }
453 std::cout << endl;
454 } else {
455 if ( D0mode0.size()>0 ) {
456 std::cout << "Evt: " << iEvt << " D0_0 : ";
457 for (it0=D0mode0.begin(); it0!=D0mode0.end(); ++it0) {
458 std::cout << ' ' << *it0;
459 D0_modemap |= (1<<D0_modeTag[*it0]);
460 }
461 std::cout << endl;
462 }
463 }
464
465 if ( Dmode1.size()>0 ) {
466 std::cout << "Evt: " << iEvt << " D+_1 : ";
467 D_modemap |= (1<<31);
468 for (it1=Dmode1.begin(); it1!=Dmode1.end(); ++it1) {
469 std::cout << ' ' << *it1;
470 D_modemap |= (1<<D_modeTag[*it1]);
471 }
472 std::cout << endl;
473 } else {
474 if ( Dmode0.size()>0 ) {
475 std::cout << "Evt: " << iEvt << " D+_0 : ";
476 for (it0=Dmode0.begin(); it0!=Dmode0.end(); ++it0) {
477 std::cout << ' ' << *it0;
478 D_modemap |= (1<<D_modeTag[*it0]);
479 }
480 std::cout << endl;
481 }
482 }
483
484 if ( Lcmode1.size()>0 ) {
485 data0 = 0;
486 } else if ( Dsmode1.size()>0 || D0mode1.size()>0 || Dmode1.size()>0 ) {
487 data0 = 1;
488 } else if ( Lcmode0.size()>0 || Dsmode0.size()>0 || D0mode0.size()>0 || Dmode0.size()>0 ) {
489 data0 = 2;
490 }
491 /*
492 if (Lc_modemap>0) {
493 cout << "Lc_mode = " << " ";
494 for(int i = 0; i < 32; i ++) {
495 int bit = Lc_modemap&(1<<(32-i-1));
496 if(bit == 0) cout << 0;
497 else cout << 1;
498 if(i % 4 == 3)cout << ' ';
499 }
500 cout << " " << Lc_modemap << endl;
501 }
502 if (Ds_modemap>0) {
503 cout << "Ds_mode = " << " ";
504 for(int i = 0; i < 32; i ++) {
505 int bit = Ds_modemap&(1<<(32-i-1));
506 if(bit == 0) cout << 0;
507 else cout << 1;
508 if(i % 4 == 3)cout << ' ';
509 }
510 cout << " " << Ds_modemap << endl;
511 }
512 if (D0_modemap>0) {
513 cout << "D0_mode = " << " ";
514 for(int i = 0; i < 32; i ++) {
515 int bit = D0_modemap&(1<<(32-i-1));
516 if(bit == 0) cout << 0;
517 else cout << 1;
518 if(i % 4 == 3)cout << ' ';
519 }
520 cout << " " << D0_modemap << endl;
521 }
522 if (D_modemap>0) {
523 cout << "Dp_mode = " << " ";
524 for(int i = 0; i < 32; i ++) {
525 int bit = D_modemap&(1<<(32-i-1));
526 if(bit == 0) cout << 0;
527 else cout << 1;
528 if(i % 4 == 3)cout << ' ';
529 }
530 cout << " " << D_modemap << endl;
531 }
532 */
533 m_tagFilterSvc->setTagData0(data0);
534 m_tagFilterSvc->setTagData6(Lc_modemap);
535 m_tagFilterSvc->setTagData7(Ds_modemap);
536 m_tagFilterSvc->setTagData8(D0_modemap);
537 m_tagFilterSvc->setTagData9(D_modemap);
538 //cout << iEvt << " Data0= " << tagdata1 << " 1= " << tagdata2 << " 2= " << tagdata3 << " 3= " << tagdata4 << " 4= " << tagdata5 << endl;
539 //cout << "nNeutrk= " << nNeutrk << ", nTottrk= " << nTottrk << ", ngamma = "<< ngamma << ", npi0= " << npi0 << endl;
540 //cout << "npionp=" << npionp << ", npionm=" << npionm << ", nkaonp= " << nkaonp << ", nkaonm= " << nkaonm << ", nprotonp= " << nprotonp << ", nprotonm= " << nprotonm << endl;
541 //cout << "nlambda= " << nlambda << ", nalambda= " << nalambda << ", nelectronp= " << nelectronp << ", nelectronm= " << nelectronm << ", nmuonp= " << nmuonp << ", nmuonm= " << nmuonm << endl;
542 //cout << "nks= " << nks << ", neta= " << neta << ", nCharged= " << nCharged << ", nGoodChargedp= " << nGoodChargedp << ", nGoodChargedm= " << nGoodChargedm << ", totCharged= " << totCharged << endl;
543
544 iEvt++;
545}
EvtStreamInputIterator< typename Generator::result_type > iter(Generator gen, int N=0)
double cos(const BesAngle a)
const HepSymMatrix err() const
const HepVector helix() const
......
virtual void setTagData9(unsigned int t)=0
virtual void setTagData1(unsigned int t)=0
virtual void setTagData0(unsigned int t)=0
virtual void setTagData6(unsigned int t)=0
virtual void setTagData2(unsigned int t)=0
virtual void setTagData4(unsigned int t)=0
virtual void setTagData8(unsigned int t)=0
virtual void setTagData5(unsigned int t)=0
virtual void setTagData3(unsigned int t)=0
virtual void setTagData7(unsigned int t)=0
virtual bool isVertexValid()=0
virtual double * PrimaryVertex()=0
unsigned int IntToTag1(int val1, int val2, int val3, int val4)
Definition: LTagSetAlg.cxx:553
unsigned int IntToTag2(int val1, int val2, int val3, int val4, int val5, int val6)
Definition: LTagSetAlg.cxx:560
static ParticleID * instance()
Definition: ParticleID.cxx:22
bool IsPidInfoValid() const
void calculate()
Definition: ParticleID.cxx:97
void init()
Definition: ParticleID.cxx:27

◆ execute() [2/2]

StatusCode LTagSetAlg::execute ( )

◆ finalize() [1/2]

StatusCode LTagSetAlg::finalize ( )

Definition at line 547 of file LTagSetAlg.cxx.

547 {
548 MsgStream log(msgSvc(), name());
549 log << MSG::INFO << "In LTagSetAlg finalize()" << iEvt << "Events processed" << endmsg;
550 return StatusCode::SUCCESS;
551}

◆ finalize() [2/2]

StatusCode LTagSetAlg::finalize ( )

◆ initialize() [1/2]

StatusCode LTagSetAlg::initialize ( )

Definition at line 49 of file LTagSetAlg.cxx.

49 {
50 MsgStream log(msgSvc(), name());
51
52 log << MSG::INFO << "in initialize()" << endmsg;
53 iEvt=0;
54
55 Gaudi::svcLocator()->service("VertexDbSvc", m_vtxsvc);
56 Gaudi::svcLocator()->service("TagFilterSvc", m_tagFilterSvc);
57
58 Lc_modeTag[1000] = 0;
59 Lc_modeTag[1001] = 1;
60 Lc_modeTag[1002] = 2;
61 Lc_modeTag[1003] = 3;
62 Lc_modeTag[1004] = 4;
63 Lc_modeTag[1005] = 5;
64 Lc_modeTag[1030] = 6;
65 Lc_modeTag[1031] = 7;
66 Lc_modeTag[1032] = 8;
67 Lc_modeTag[1033] = 9;
68 Lc_modeTag[1034] = 10;
69 Lc_modeTag[1060] = 11;
70 Lc_modeTag[1061] = 12;
71 Lc_modeTag[1062] = 13;
72 Lc_modeTag[1063] = 14;
73 Lc_modeTag[1064] = 15;
74 Lc_modeTag[1065] = 16;
75
76 Ds_modeTag[400] = 1;
77 Ds_modeTag[401] = 0;
78 Ds_modeTag[402] = 2;
79 Ds_modeTag[403] = 13;
80 Ds_modeTag[404] = 3;
81 Ds_modeTag[405] = 4;
82 Ds_modeTag[406] = 5;
83 Ds_modeTag[407] = 14;
84 Ds_modeTag[420] = 28;
85 Ds_modeTag[421] = 6;
86 Ds_modeTag[422] = 24;
87 Ds_modeTag[423] = 25;
88 Ds_modeTag[424] = 26;
89 Ds_modeTag[425] = 27;
90 Ds_modeTag[440] = 7;
91 Ds_modeTag[441] = 8;
92 Ds_modeTag[442] = 20;
93 Ds_modeTag[450] = 21;
94 Ds_modeTag[451] = 22;
95 Ds_modeTag[452] = 23;
96 Ds_modeTag[460] = 9;
97 Ds_modeTag[461] = 15;
98 Ds_modeTag[470] = 16;
99 Ds_modeTag[471] = 17;
100 Ds_modeTag[480] = 10;
101 Ds_modeTag[481] = 11;
102 Ds_modeTag[500] = 29;
103 Ds_modeTag[501] = 18;
104 Ds_modeTag[502] = 12;
105 Ds_modeTag[503] = 19;
106 Ds_modeTag[504] = 30;
107
108 D0_modeTag[0] = 0;
109 D0_modeTag[1] = 1;
110 D0_modeTag[2] = 2;
111 D0_modeTag[3] = 3;
112 D0_modeTag[4] = 4;
113 D0_modeTag[5] = 5;
114 D0_modeTag[50] = 6;
115 D0_modeTag[51] = 7;
116 D0_modeTag[100] = 8;
117 D0_modeTag[101] = 9;
118 D0_modeTag[102] = 10;
119 D0_modeTag[103] = 11;
120 D0_modeTag[104] = 12;
121 D0_modeTag[105] = 13;
122 D0_modeTag[106] = 14;
123 D0_modeTag[107] = 15;
124 D0_modeTag[108] = 16;
125 D0_modeTag[109] = 17;
126 D0_modeTag[110] = 18;
127 D0_modeTag[111] = 19;
128 D0_modeTag[112] = 20;
129 D0_modeTag[113] = 21;
130 D0_modeTag[114] = 22;
131 D0_modeTag[115] = 23;
132 D0_modeTag[116] = 24;
133 D0_modeTag[117] = 25;
134 D0_modeTag[118] = 26;
135 D0_modeTag[119] = 27;
136 D0_modeTag[120] = 28;
137 D0_modeTag[121] = 29;
138 D0_modeTag[122] = 30;
139 D0_modeTag[123] = 30;
140 D0_modeTag[124] = 30;
141 D0_modeTag[125] = 30;
142 D0_modeTag[126] = 30;
143
144 D_modeTag[200] = 0;
145 D_modeTag[201] = 1;
146 D_modeTag[202] = 2;
147 D_modeTag[203] = 3;
148 D_modeTag[204] = 4;
149 D_modeTag[205] = 5;
150 D_modeTag[206] = 6;
151 D_modeTag[207] = 7;
152 D_modeTag[208] = 8;
153 D_modeTag[209] = 9;
154 D_modeTag[210] = 10;
155 D_modeTag[211] = 11;
156 D_modeTag[212] = 12;
157 D_modeTag[213] = 13;
158 D_modeTag[214] = 14;
159 D_modeTag[215] = 15;
160 D_modeTag[216] = 16;
161 D_modeTag[217] = 17;
162 D_modeTag[218] = 18;
163 D_modeTag[219] = 19;
164 D_modeTag[220] = 20;
165 D_modeTag[221] = 21;
166 D_modeTag[222] = 22;
167
168 return StatusCode::SUCCESS;
169}

◆ initialize() [2/2]

StatusCode LTagSetAlg::initialize ( )

◆ IntToTag1() [1/2]

unsigned int LTagSetAlg::IntToTag1 ( int  val1,
int  val2,
int  val3,
int  val4 
)

Definition at line 553 of file LTagSetAlg.cxx.

554{
555 unsigned int res=0;
556 res = (val4 +(val3<<8) +(val2<<16) +(val1<<24));
557 return res;
558}

Referenced by execute().

◆ IntToTag1() [2/2]

unsigned int LTagSetAlg::IntToTag1 ( int  val1,
int  val2,
int  val3,
int  val4 
)

◆ IntToTag2() [1/2]

unsigned int LTagSetAlg::IntToTag2 ( int  val1,
int  val2,
int  val3,
int  val4,
int  val5,
int  val6 
)

Definition at line 560 of file LTagSetAlg.cxx.

561{
562 unsigned int res=0;
563 res = (val6 +(val5<<5) +(val4<<10) +(val3<<15) +(val2<<20) +(val1<<26));
564 return res;
565}

Referenced by execute().

◆ IntToTag2() [2/2]

unsigned int LTagSetAlg::IntToTag2 ( int  val1,
int  val2,
int  val3,
int  val4,
int  val5,
int  val6 
)

The documentation for this class was generated from the following files: