6 TString
Bichsel::m_Tags[kTotal] = {
"P10",
"Bi",
"PAI"};
10 Bichsel::Bichsel(
const Char_t *tag, Int_t keep3D) : m_Type(-1), m_Tag(tag), m_dEdxParameterization(0) {
12 for (Int_t k = 0; k < kTotal; k++)
if (m_Tag.Contains(m_Tags[k].Data(),TString::kIgnoreCase)) {m_Type = k;
break;}
14 if (! m_dEdxParameterizations[m_Type])
16 m_dEdxParameterization = m_dEdxParameterizations[m_Type];
20 Bichsel *Bichsel::Instance(
const Char_t *tag, Int_t keep3D) {
21 if (!fgBichsel)
new Bichsel(tag, keep3D);
25 void Bichsel::Clean() {
26 for (Int_t k = 0; k < kTotal; k++)
27 if (m_dEdxParameterizations[k]) {
28 delete m_dEdxParameterizations[k];
29 m_dEdxParameterizations[k] = 0;
33 void Bichsel::Print() {
34 cout <<
"Bichsel:: " << m_Tag << endl;
35 if (m_dEdxParameterization) m_dEdxParameterization->Print();
Bichsel(const Char_t *tag="P10", Int_t keep3D=0)
last instance