Hello I have added a new class BrTPCSEquenceAdder to brat. It is a class made for efficiency calculations fir the TPC's. The version number is not changed since it does'nt affect any other classes. It has been tested for a while now and seems to work fine. This is how to use it: BrTPCSequenceAdder *adder = new BrTPCSequenceAdder("the adder name", "the adder title"); //read a raw event that satisfies your conditions : BrEvent *raw_event = new BrEvent(.....); Input_file->Event(raw_event); // Do the same with a simulated track, geant track : BrEvent *geant_event() = new BrEvent(....); Geant_file->Event(geant_event); // digitize you track (which heavily depends on you parameters) BrDigitizeTPC *tpc_digitize = new BrDigitizeTPC(.....); BrEventNode *digitized_node = new BrEventNode(....); tpc_digitize->Event(geant_event, digitized_node); // give the name of the tpc to the adder adder->SetTPCName("Your tpc"); // add the sequences in the digitized_node and the raw_event // make an event or eventnode that you like to have the results in : BrEventNode *added_node = new BrEventNode(......); adder->Event(digitized_node, raw_event, added_node); // and now you have the track added to the raw event on the sequence level. // if you want to check if the adder gave up : if (adder->GetStatus() = 0) cout << "Adding went successfully!" << endl; else // you have already gotten a warning message but : cout << "Something wnt wrong during adding" << endl; Any comments are appretiated. Truls *----------------------* |Truls Martin Larsen | |University of Oslo | |Department of Physics | |P.O.Box 1048 Blindern | |0316 Oslo, Norway | |Tel: +47 22856465 | | | |Home address: | |Eiksvn 58 | |1361 Østerås | |Tel: +47 67155618 | |Mob: +47 99691838 | |T.M.Larsen@fys.uio.no | *----------------------*
This archive was generated by hypermail 2b29 : Wed Feb 21 2001 - 04:48:05 EST