ROOT logo
//*-- Author   : Patrick Sellheim, Georgy Kornakov
//*-- Created  : 09/01/2014

//_HADES_CLASS_DESCRIPTION
////////////////////////////////////////////////////////////////////////////
// HParticleBtPar
//
// Parametercontainer for RICH backtracking algorithm.
//
//
////////////////////////////////////////////////////////////////////////////
#include "hparticlebtpar.h"
#include "hparamlist.h"

ClassImp(HParticleBtPar)

HParticleBtPar::HParticleBtPar(const Char_t* name,const Char_t* title,
			       const Char_t* context)
    : HParCond(name,title,context)
{

    fRingFitPar.Set(4);
    fChargeThres.Set(12);
    fGeomConst.Set(4);
    fRingSeg.Set(2);
    fSharedCharge.Set(9);
    fSigmaGaus.Set(4);
    fParThetaAngle.Set(2);
    fPhiOffset.Set(12);

    fSigmaRange.Set(4);
    fClusterLimits.Set(2);
    fVertexPos.Set(3);
    fRichSeg.Set(3);
    fNeighbourPad.Set(8);
    fTF2ParMean.Set(5400);// 45*15*8;
    fTF2ParSigma.Set(8775);// 45*15*13
    fLeptonSelection.Set(3);

    clear();
}
HParticleBtPar::~HParticleBtPar()
{
  // destructor
}
void HParticleBtPar::clear()
{
    fNSigma          = 3;
    fSizeMatrix      = 16;
    fPhiOffsetPar    = 30;
    fMinimumSigmaVal = 0.5;
    fMaximumType     = 7;

    fRingFitPar.Reset(0);
    fChargeThres.Reset(0.);
    fGeomConst.Reset(0.);
    fRingSeg.Reset(0);
    fSharedCharge.Reset(0.);
    fSigmaGaus.Reset(0.);
    fParThetaAngle.Reset(0.);
    fPhiOffset.Reset(0.);

    fSigmaRange.Reset(0.);
    fClusterLimits.Reset(0.);
    fVertexPos.Reset(0.);
    fRichSeg.Reset(0.);
    fNeighbourPad.Reset(0);
    fTF2ParMean.Reset(0.);
    fTF2ParSigma.Reset(0.);
    fLeptonSelection.Reset(0.);


    status = kFALSE;
    resetInputVersions();
    changed = kFALSE;

}

void HParticleBtPar::putParams(HParamList* l)
{
    // Puts all params of HRpcSlewingPar to the parameter list of
    // HParamList (which ist used by the io);
    if (!l) return;
    l->add("fNSigma",         fNSigma         );
    l->add("fSizeMatrix",     fSizeMatrix     );
    l->add("fPhiOffsetPar",   fPhiOffsetPar   );
    l->add("fMinimumSigmaVal",fMinimumSigmaVal);
    l->add("fMaximumType",    fMaximumType    );

    l->add("fRingFitPar",     fRingFitPar     );
    l->add("fChargeThres",    fChargeThres    );
    l->add("fGeomConst",      fGeomConst      );
    l->add("fRingSeg",        fRingSeg        );
    l->add("fSharedCharge",   fSharedCharge   );
    l->add("fSigmaGaus",      fSigmaGaus      );
    l->add("fParThetaAngle",  fParThetaAngle  );
    l->add("fPhiOffset",      fPhiOffset      );

    l->add("fSigmaRange",     fSigmaRange     );
    l->add("fClusterLimits",  fClusterLimits  );
    l->add("fVertexPos",      fVertexPos      );
    l->add("fRichSeg",        fRichSeg        );
    l->add("fNeighbourPad",   fNeighbourPad   );
    l->add("fTF2ParMean",     fTF2ParMean     );
    l->add("fTF2ParSigma",    fTF2ParSigma    );
    l->add("fLeptonSelection",fLeptonSelection);


}
Bool_t HParticleBtPar::getParams(HParamList* l)
{
    if (!l) return kFALSE;
    if(!( l->fill("fNSigma",          &fNSigma         ))) { cout<<"fNSigma"<<endl; return kFALSE; }
    if(!( l->fill("fSizeMatrix",      &fSizeMatrix     ))) { cout<<"fSizeMatrix"<<endl;return kFALSE;  }
    if(!( l->fill("fPhiOffsetPar",    &fPhiOffsetPar   ))) { cout<<"fPhiOffsetPar"<<endl;return kFALSE;  }
    if(!( l->fill("fMinimumSigmaVal", &fMinimumSigmaVal ))){ cout<<"fMinimumSigmaVal"<<endl; return kFALSE; }
    if(!( l->fill("fMaximumType",     &fMaximumType    ))) { cout<<"fMaximumType"<<endl;return kFALSE;  }
   
    if(!( l->fill("fRingFitPar",      &fRingFitPar     ))) { cout<<"fRingFitPar"<<endl;return kFALSE;  }
    if(!( l->fill("fChargeThres",     &fChargeThres    ))) { cout<<"fChargeThres"<<endl;return kFALSE;  }
    if(!( l->fill("fGeomConst",       &fGeomConst      ))) { cout<<"fGeomConst"<<endl;return kFALSE;  }
    if(!( l->fill("fRingSeg",         &fRingSeg        ))) { cout<<"fRingSeg"<<endl;return kFALSE;  }
    if(!( l->fill("fSharedCharge",    &fSharedCharge   ))) { cout<<"fSharedCharge"<<endl;return kFALSE;  }
    if(!( l->fill("fSigmaGaus",       &fSigmaGaus      ))) { cout<<"fSigmaGaus"<<endl;return kFALSE;  }
    if(!( l->fill("fParThetaAngle",   &fParThetaAngle  ))) { cout<<"fParThetaAngle"<<endl;return kFALSE;  }
    if(!( l->fill("fPhiOffset",       &fPhiOffset      ))) { cout<<"fPhiOffset"<<endl;return kFALSE;  }
   
    if(!( l->fill("fSigmaRange",      &fSigmaRange      ))){ cout<<"fSigmaRange"<<endl; return kFALSE; }
    if(!( l->fill("fClusterLimits",   &fClusterLimits   ))){ cout<<"fClusterLimits"<<endl; return kFALSE; }
    if(!( l->fill("fVertexPos",       &fVertexPos       ))){ cout<<"fVertexPos"<<endl; return kFALSE; }
    if(!( l->fill("fRichSeg",         &fRichSeg         ))){ cout<<"fRichSeg"<<endl; return kFALSE; }
    if(!( l->fill("fNeighbourPad",    &fNeighbourPad    ))){ cout<<"fNeighbourPad"<<endl; return kFALSE; }
    if(!( l->fill("fTF2ParMean",      &fTF2ParMean      ))) { cout<<"fTF2ParMean"<<endl;return kFALSE; }
    if(!( l->fill("fTF2ParSigma",     &fTF2ParSigma     ))){ cout<<"fTF2ParSigma"<<endl; return kFALSE; }
    if(!( l->fill("fLeptonSelection", &fLeptonSelection ))){ cout<<"fLeptonSelection"<<endl; return kFALSE; }

    return kTRUE;
}

 hparticlebtpar.cc:1
 hparticlebtpar.cc:2
 hparticlebtpar.cc:3
 hparticlebtpar.cc:4
 hparticlebtpar.cc:5
 hparticlebtpar.cc:6
 hparticlebtpar.cc:7
 hparticlebtpar.cc:8
 hparticlebtpar.cc:9
 hparticlebtpar.cc:10
 hparticlebtpar.cc:11
 hparticlebtpar.cc:12
 hparticlebtpar.cc:13
 hparticlebtpar.cc:14
 hparticlebtpar.cc:15
 hparticlebtpar.cc:16
 hparticlebtpar.cc:17
 hparticlebtpar.cc:18
 hparticlebtpar.cc:19
 hparticlebtpar.cc:20
 hparticlebtpar.cc:21
 hparticlebtpar.cc:22
 hparticlebtpar.cc:23
 hparticlebtpar.cc:24
 hparticlebtpar.cc:25
 hparticlebtpar.cc:26
 hparticlebtpar.cc:27
 hparticlebtpar.cc:28
 hparticlebtpar.cc:29
 hparticlebtpar.cc:30
 hparticlebtpar.cc:31
 hparticlebtpar.cc:32
 hparticlebtpar.cc:33
 hparticlebtpar.cc:34
 hparticlebtpar.cc:35
 hparticlebtpar.cc:36
 hparticlebtpar.cc:37
 hparticlebtpar.cc:38
 hparticlebtpar.cc:39
 hparticlebtpar.cc:40
 hparticlebtpar.cc:41
 hparticlebtpar.cc:42
 hparticlebtpar.cc:43
 hparticlebtpar.cc:44
 hparticlebtpar.cc:45
 hparticlebtpar.cc:46
 hparticlebtpar.cc:47
 hparticlebtpar.cc:48
 hparticlebtpar.cc:49
 hparticlebtpar.cc:50
 hparticlebtpar.cc:51
 hparticlebtpar.cc:52
 hparticlebtpar.cc:53
 hparticlebtpar.cc:54
 hparticlebtpar.cc:55
 hparticlebtpar.cc:56
 hparticlebtpar.cc:57
 hparticlebtpar.cc:58
 hparticlebtpar.cc:59
 hparticlebtpar.cc:60
 hparticlebtpar.cc:61
 hparticlebtpar.cc:62
 hparticlebtpar.cc:63
 hparticlebtpar.cc:64
 hparticlebtpar.cc:65
 hparticlebtpar.cc:66
 hparticlebtpar.cc:67
 hparticlebtpar.cc:68
 hparticlebtpar.cc:69
 hparticlebtpar.cc:70
 hparticlebtpar.cc:71
 hparticlebtpar.cc:72
 hparticlebtpar.cc:73
 hparticlebtpar.cc:74
 hparticlebtpar.cc:75
 hparticlebtpar.cc:76
 hparticlebtpar.cc:77
 hparticlebtpar.cc:78
 hparticlebtpar.cc:79
 hparticlebtpar.cc:80
 hparticlebtpar.cc:81
 hparticlebtpar.cc:82
 hparticlebtpar.cc:83
 hparticlebtpar.cc:84
 hparticlebtpar.cc:85
 hparticlebtpar.cc:86
 hparticlebtpar.cc:87
 hparticlebtpar.cc:88
 hparticlebtpar.cc:89
 hparticlebtpar.cc:90
 hparticlebtpar.cc:91
 hparticlebtpar.cc:92
 hparticlebtpar.cc:93
 hparticlebtpar.cc:94
 hparticlebtpar.cc:95
 hparticlebtpar.cc:96
 hparticlebtpar.cc:97
 hparticlebtpar.cc:98
 hparticlebtpar.cc:99
 hparticlebtpar.cc:100
 hparticlebtpar.cc:101
 hparticlebtpar.cc:102
 hparticlebtpar.cc:103
 hparticlebtpar.cc:104
 hparticlebtpar.cc:105
 hparticlebtpar.cc:106
 hparticlebtpar.cc:107
 hparticlebtpar.cc:108
 hparticlebtpar.cc:109
 hparticlebtpar.cc:110
 hparticlebtpar.cc:111
 hparticlebtpar.cc:112
 hparticlebtpar.cc:113
 hparticlebtpar.cc:114
 hparticlebtpar.cc:115
 hparticlebtpar.cc:116
 hparticlebtpar.cc:117
 hparticlebtpar.cc:118
 hparticlebtpar.cc:119
 hparticlebtpar.cc:120
 hparticlebtpar.cc:121
 hparticlebtpar.cc:122
 hparticlebtpar.cc:123
 hparticlebtpar.cc:124
 hparticlebtpar.cc:125
 hparticlebtpar.cc:126
 hparticlebtpar.cc:127
 hparticlebtpar.cc:128
 hparticlebtpar.cc:129
 hparticlebtpar.cc:130
 hparticlebtpar.cc:131
 hparticlebtpar.cc:132
 hparticlebtpar.cc:133
 hparticlebtpar.cc:134
 hparticlebtpar.cc:135
 hparticlebtpar.cc:136
 hparticlebtpar.cc:137
 hparticlebtpar.cc:138
 hparticlebtpar.cc:139