[Brahms-dev-l] banapp 1.2.0

From: Truls Martin Larsen <trulsml_at_nbi.dk>
Date: Wed, 13 Dec 2006 12:27:24 +0100
Hi,

many changes commited to banapp classes and programs. See cvs log for
the changes. Most important is this:

AcceptanceMap class now uses enumerator from Selector::EPid for choosing
pid, and not is own version of it. The enumerator has the following:

enum EPid { kPion = 0, kKaon = 1, kProton = 2, kDeuteron = 3, kHadron =
4, kNParticles = 5, kNTriggers = 6};
  static const Char_t  *kPIDNames[kNParticles];  // particle names
 static const Double_t kMass    [kNParticles];  // data book masses

const Char_t *Selector::kPIDNames[Selector::kNParticles] =
  {"Pion", "Kaon", "Proton", "Deuteron", "Hadron"};
const Double_t Selector::kMass[Selector::kNParticles] =
  {BrUnits::pion_mass_c2, BrUnits::kaon_mass_c2,
BrUnits::proton_mass_c2, 1.87561, 0.0};


So just include Selector class in your scripts/programs that uses
AcceptanceMap class. To do loops just do:

for (Int_t pid = 0; i < Selector::kNParticles; pid)
    ...

to get a specific acc maps:

Float_t vertex = "some vertex";
Int_t vertexBin = "that some vertex binnumber";
Selector::EPid pid = "Get pid for this particle";

accMan->GetPtVsYMap(vertex, pid);
or 
accMan->GetPtVsYMap(vertexBin, pid);

All the "get map" functions also got an alternative to get the map
directly using the bin number, which is usefull when doing loops on vtx
bins.


I've done a good aount of testing to make sure everything produces the
expected output, but there are always things that can pass unnoticed...
Let me know if there are problems.

Cheers,
	Truls
-- 
*---------------------------------*
|http://www.nbi.dk/~trulsml           /
|Truls Martin Larsen                       /
|trulsml_at_nbi.dk                              .
|The Niels Bohr Institute        //
|Work Address:                            / \0
|Blegdamsvej 17                        /\_/
|DK-2100 Copenhagen              /  /
|Tel: +45 353 25269            / --
|                                              /_/  |
|Home address:                  /         \
|Holger Danskes Vej 28H|          '
|DK-2000 Frederiksberg |
|Denmark                             |
|Mob: +45 20974802         |
*----------------------*

_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l_at_lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Wed Dec 13 2006 - 06:29:18 EST

This archive was generated by hypermail 2.2.0 : Wed Dec 13 2006 - 06:29:43 EST