#ifndef HTOFCLUSTERFPAR_H
#define HTOFCLUSTERFPAR_H
using namespace std;
#include "hparcond.h"
#include <iostream> 
#include <iomanip>
#include <fstream> 
#include <cstring>
class HParamList;

class HTofClusterFPar : public HParCond {
private:
  Float_t diffTmax;       //Maximal time distance of two hits.
  Float_t diffXmax;       //Maximal x position distance of two hits.
  Float_t mipLimit;       //Time interval limit for probability calculation.
  Float_t mL1all;         //Most probable value of 1st Landau (all).
  Float_t sL1all;         //Sigma of 1st Landau (all).
  Float_t mL2all;         //Most probable value of 2nd Landau (all).
  Float_t sL2all;         //Sigma of 2nd Landau (all).
  Float_t ratCall1;       //Constant ratio of Landau functions (all).
  Float_t mL1lep;         //Most probable value of 1st Landau (lep).
  Float_t sL1lep;         //Sigma of 1st Landau (lep).
  Float_t mL2lep;         //Most probable value of 2nd Landau (lep).
  Float_t sL2lep;         //Sigma of 2nd Landau (lep).
  Float_t ratClep1;       //Constant ratio of Landau functions (lep).
  Float_t diffPmax;       //Maximal momentum difference between tracks (for kick-plane part).
  Float_t lossEmax;       //Maximal energy loss for cluster of size = 2 (for kick-plane part).

public:
  HTofClusterFPar(const Char_t* name="TofClusterFPar",
                  const Char_t* title="Parameter container for the cluster finder",
                  const Char_t* context="TofCluNormalBias");
  virtual ~HTofClusterFPar(void);
  void clear(void);
  Bool_t init(HParIo *inp, Int_t *set);
  Int_t write(HParIo *io);
  void putParams(HParamList*);
  Bool_t getParams(HParamList*);
  Float_t getMaxTDiff(void)      { return diffTmax; }
  Float_t getMaxXDiff(void)      { return diffXmax; }
  Float_t getMIPLimit(void) { return mipLimit; }
  Float_t getMPV1      (const Char_t* aset="all") { return (strncmp(aset,"lep",sizeof(aset))==0)? mL1lep:mL1all; }
  Float_t getSigma1    (const Char_t* aset="all") { return (strncmp(aset,"lep",sizeof(aset))==0)? sL1lep:sL1all; }
  Float_t getMPV2      (const Char_t* aset="all") { return (strncmp(aset,"lep",sizeof(aset))==0)? mL2lep:mL2all; }
  Float_t getSigma2    (const Char_t* aset="all") { return (strncmp(aset,"lep",sizeof(aset))==0)? sL2lep:sL2all; }
  Float_t getConstRatio(const Char_t* aset="all") { return (strncmp(aset,"lep",sizeof(aset))==0)? ratClep1:ratCall1; }
  Float_t getMaxPDiff(void)      { return diffPmax; }
  Float_t getMaxELoss(void)      { return lossEmax; }
  void readFrom(const HTofClusterFPar &par);
//  Int_t writeFile(fstream *pFile);
//  Bool_t read(fstream *pFile,Int_t* set,Int_t inputNumber);
//  void printTo(ostream &out);
//  void readFrom(istream &in);
  ClassDef(HTofClusterFPar,4)
};

#endif

Last change: Sat May 22 13:15:55 2010
Last generated: 2010-05-22 13:15

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.