Linear Collider Forum

Home » Analysis and Reconstruction » Tracking & Vertexing » MarlinTPC flagwords
Re: MarlinTPC flagwords [message #2204 is a reply to message #2089] Fri, 03 February 2012 03:39 Go to previous messageGo to previous message
Messages: 41
Registered: March 2009

pushing this topic up again. This happens, when one blindly implements something and never tries it as foreseen.

I noticed, that the implementation I supplied was not able to be included into different compilation units, if they are to be linked together. The reason is simply the definition of statics.

I tried something else, by encapsulating the flagword definition into classes; but this doesn't make much sense yet. I'll try to come up with something more sensible.

In principle I see the usage like this:
 // define some quality word
int qualityWord = whatever;
// use a defined function to change the status
// and another one to see, wether a bit is set
bool hasPropertyX = pulseflag::hasPropertyX(qualityWord);

For expliciteness, I'd like to encapsulate the bit pattern definitions into namespaces.

I'll post the code, once I've written it.



When you have eliminated the impossible, whatever remains, however improbable, must be the truth. (Sir A.C. Doyle in Sign of Four)
Read Message
Read Message
Read Message
Previous Topic:Problem with PerEventIPFitterProcessor
Next Topic:Questions/remarks on pathfinder
Goto Forum:

Current Time: Tue Oct 22 20:52:17 Pacific Daylight Time 2019
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software