Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimTrackerHit: Add quality bitfield #21

Merged
merged 8 commits into from
Apr 7, 2017
Merged

Conversation

andresailer
Copy link
Contributor

@andresailer andresailer commented Mar 31, 2017

I tried to add the quality field for #11 .
Am I missing something?

I couldn't figure out how to run AID to generate the headers so I modified them directly

Where can/should I added some pre-defined bits
e.g.
kIsHitFromSecondary when the hit was not actually created by the MCParticle it is assigned to?

BEGINRELEASENOTES

  • SimTrackerHit: Add Quality bitfield

ENDRELEASENOTES

  • Still need to implement the status bits

@andresailer andresailer requested a review from gaede March 31, 2017 14:37
@gaede
Copy link
Contributor

gaede commented Mar 31, 2017

  • set LCIO_GENERATE_HEADERS=ON to generate the header files from aid
    and then rebuild
  • you also need to implement the corresponding changes in Java
  • the tests did not succeed ;-(

@gaede
Copy link
Contributor

gaede commented Mar 31, 2017

@andresailer
Copy link
Contributor Author

andresailer commented Mar 31, 2017

What about the fortran parts? I mean the f77api

@gaede
Copy link
Contributor

gaede commented Mar 31, 2017

I don't think this is used anymore - or kept up to data.

@andresailer
Copy link
Contributor Author

Tests are now passing, but the tests for java were already broken before and are not running in travis.

@andresailer
Copy link
Contributor Author

Still need to implement the status bits

@gaede
Copy link
Contributor

gaede commented Apr 1, 2017

Yes, it seems that the java build and tests are broken already on the HEAD. Could get the build to work with some extra commands but the tests are still broken...
Can you inform norman and jeremy about your changes and ask them to check the java build, test and you changes ?

@gaede
Copy link
Contributor

gaede commented Apr 3, 2017

@andresailer after having implemented the status bits, can you also add corresponding printout code the ostream operators, defined here:
https://github.com/iLCSoft/LCIO/blob/master/src/cpp/src/UTIL/Operators.cc#L1799-L1961

@andresailer
Copy link
Contributor Author

Implemented two quality bits and printout

--------------- print out of SimTrackerHit collection ---------------

  flag:  0x20000000
 parameter CellIDEncoding [string]: subdet:5,side:-2,layer:9,module:8,sensor:8,readoutUnit:8,daqChannel:16,,
     LCIO::THBIT_BARREL : 0
     LCIO::THBIT_MOMENTUM : 0
    quality bits: [os......]  o: hit from overlay s: hit from secondary not from the MCParticle associated to it


 [   id   ] |cellId0 |cellId1 |  position (x,y,z)               |   EDep   |   time   |PDG of MCParticle|   (px,  py, pz)   | pathLength  | Quality
------------|--------|--------|---------------------------------|----------|----------|-----------------|-------------------|-------------|---------
 [00000004] |00065635|00000000|(+0.00e+00, +0.00e+00, +0.00e+00)| 0.00e+00 | 0.00e+00 | 00000000000000  |   unknown         |     n/a     |[os     ]
        id-fields: (subdet:3,side:-1,layer:0,module:1,sensor:0,readoutUnit:0,daqChannel:0)

 [00000005] |16842979|00002048|(+0.00e+00, +1.00e+00, +0.00e+00)| 0.00e+00 | 0.00e+00 | 00000000000000  |   unknown         |     n/a     |[   0   ]
        id-fields: (subdet:3,side:-1,layer:1,module:1,sensor:1,readoutUnit:0,daqChannel:8)

(added n/a for pathlength if not stored as well

any more possible flags come to mind?

Copy link
Contributor

@gaede gaede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good !

@gaede gaede merged commit c930822 into iLCSoft:master Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants