Dear Brahmen, Ian requested instructions on how to use the Zdc Z vertex. Please test the examples below. Yours Michael Hi Ian, to use the calibrated vertex data from ZDC you need to add BrZdcRdoModule to your bratmain script: ... your bratmain script BrAppendContainer *appModule= new BrAppendContainer ("Append", "IO helper"); mainModule->AddModule (appModule); //----- ZDC RDO module zdcRdoModule= new BrZdcRdoModule ("ZDC", "zero-degree"); zdcRdoModule->SetUseSlewing (kTRUE); zdcRdoModule->SetUseOffset (kTRUE); appModule->AddModule (zdcRdoModule); then in your main (where you do need the z-vertex from ZDC) analysis class you need to add in Event() method these few lines: #if !defined BRAT_BrZdcRdo #include "BrZdcRdo.h" #endif ... void BrYourAnalysisModule::Event (BrEventNode *inNode, BrEventNode *outNode) { SetState(kEvent); ... //----- get ZDC vertex BrZdcRdo *rdoZDC= (BrZdcRdo*) inNode->GetObject ("RdoZDC"); if (!rdoZDC) return; Float_t z= rdoZDC->GetZ (); // this is a calibrated vertex from the ZDC } you can look at the files in /brat/scripts/calib/zdc/ZdcVtxOffset.C as an example of script, and at /brat/modules/calib/vertex/BrZdcVertexCalModule.cxx as an example of "analysis" class which uses z-vertex from ZDC. All these are in BRAT. If you have troubles, please write me! Andrei. ----- End forwarded message ----- Michael Murray, Cyclotron TAMU, 979 845 1411 x 273, Fax 1899
This archive was generated by hypermail 2b30 : Thu Jun 13 2002 - 17:57:09 EDT