GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » FairMCPoint
Re: FairMCPoint [message #13202 is a reply to message #13165] Wed, 14 March 2012 12:55 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hallo Volker,

looking at the current implementation one can improve it as following:
1. The FairBasePoint and FarMCPoint will be unified in one class (FairMCPoint)
2. FairSingleLinkedData is not needed (will be removed)
3. FairLinkedData and FairLinkedMultiData will be unified in one class (FairLinkData)
4. The new FairMCPoint class will inherits directly from FairMultiLinkedData
5. The FairMCPoint will not inherit from FairTimeStamp

The new design will be:

index.php?t=getfile&id=6856&private=0


Now the new FairMCPoint and FairHit has to be understood as an example, in fact even now before changing anything you can skip them and define your own classes the only thing the framework need is that you inherits from TObject in ROOT nothing more. Now with the new changes it get clearer and in case you need to use the fair links you inherits from FairlinkData, otherwise you just define your own classes that are TObjects. The same is true for the Hit Class if you went to use our scheme for time base simulation you inherits from the FairTimeStamp, otherwise you define your own.

For the event display using the example point and Hit you can directly use our implementation, or you do it on your own.

With these changes, the code get clearer but the current functionality is not really changed and every body is free to choose where to plug his data into the framework what to re-use, etc.

best regards.

Mohammad


[Updated on: Wed, 14 March 2012 19:52]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Creating a new Detector out of 2 or more detectors
Next Topic: FairMCEventHeader
Goto Forum:
  


Current Time: Thu Dec 12 22:37:04 CET 2024

Total time taken to generate the page: 0.00829 seconds