LISTSERV mailing list manager LISTSERV 16.5

Help for LCD-SIM Archives


LCD-SIM Archives

LCD-SIM Archives


LCD-SIM@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

LCD-SIM Home

LCD-SIM Home

LCD-SIM  February 1999

LCD-SIM February 1999

Subject:

TkID bug

From:

Rob Shanks <[log in to unmask]>

Date:

26 Feb 1999 16:58:37 -0800Fri, 26 Feb 1999 16:58:37 -0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (74 lines)

	It was discovered that the layerON bit mask of the TkID class in
the GISMO code was not consistent with the placement of the fields in
the binary tag for the Tracker and VXD sub-systems. Also, the TkID class
in the RootApps/Event/ space does not place the fields in the same spot
as the GISMO TkID class. 
	First off, don't go and delete all of your simulated events.
They're still good. This is because even when put in the wrong spot, the
fields don't over-write each other. 
	To do reconstruction you will have to make some changes to the
TkID class in RpptApps/Event/V1.0/src/TkID.cxx. Find the method
TkID::layer(). This method and the setLayer method,right below it will
need to be changed. 

Currently, the methods should look like this:

Int_t TkID::layer() const {
  // This returns the layer number from the first 8 bits of m_tag
  Int_t  layer = (TkID::layerOn & m_tag);

  return layer;
}
//____________________________________________________________
void TkID::setLayer(Int_t tag) {
  // setLayer sets the first 8 bits of m_tag to the layer number
  Int_t layerShift = tag;

  Int_t  layer = (TkID::layerOff & m_tag) | layerShift;

  m_tag = layer;
} 
	To be able to do reconstruction dealing with the Tracker and VXD
you will need to change these methods to look like this:

int TkID::layer() const {

    int  layer = (TkID::layerOn & m_tag) >> 21;

    return layer;
};

void TkID::setLayer(int tag) {

    int layerShift = tag << 21;

    int  layer = (TkID::layerOff & m_tag) | layerShift;

    m_tag = layer;
};

	You will also need to change the layerOn mask which is defined
at the bottom of TkID.cxx. You will need to change it from  0x000000FF
to 0x1FE00000. After doing all of this, remake the Event shared library.
All the RootApps packages link to this library so they will need to be
relinked as well.
	
	Confused yet? These changes will allow you to process all of the
events that you have already generated. We are planning on releasing a
new version of the package sometime early next week. The inconsistencies
with the TkID class will be fixed in the simulator and the
reconstruction code but this fix will probably mean that the files you
generated previously will not produce accurate reconstruction's of the
VXD and Tracker if they are used with the new version of the code. So
you may want to copy TkID to another space before you install the new
version of the reconstruction code just so you have a version of TkID
that reads the old, incorrect layout of the TkID tag.
	If I've missed something, or confused you hopelessly, feel free
to ask me questions.

Rob Shanks
[log in to unmask]



Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

May 2015
March 2015
February 2015
January 2013
November 2012
June 2012
July 2011
April 2011
September 2010
June 2010
February 2010
October 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
September 2006
August 2006
July 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
August 2005
July 2005
June 2005
May 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
April 2003
March 2003
February 2003
January 2003
July 2002
October 2001
June 2001
May 2001
March 2001
February 2001
December 2000
November 2000
October 2000
June 2000
April 2000
March 2000
February 2000
January 2000
November 1999
October 1999
September 1999
August 1999
July 1999
June 1999
May 1999
April 1999
March 1999
February 1999
January 1999

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use