//*-- Author: Alberica Toia
//*-- Modified: Joern Wuestenfeld 05/11/2005
//*-- Version: $Id: htriggerparmommap.h,v 1.4 2008-05-09 16:18:42 halo Exp $

#ifndef HTRIGGERPARMOMMAP_H
#define HTRIGGERPARMOMMAP_H

#include "hparset.h"
#include "TString.h"

class HParIo;

class HTriggerParMomMap : public HParSet {
private:
  Int_t Theta_bins;       // number of bins in theta
  Int_t Deltatheta_bins;  // number of bins in deta theta
  Int_t Phi_bins;         // number of bins in phi

  Float_t mu_mom[64][64][8];  // momentum map
public:
  HTriggerParMomMap(const Char_t* name="TriggerParMomMap",
                    const Char_t* title="Parameters for MU Momentum Mapping ",
                    const Char_t* context="TriggerProduction");
  ~HTriggerParMomMap(void);
  
  Int_t getTheta_bins(void){return Theta_bins;}
  Int_t getDeltatheta_bins(void){return Deltatheta_bins;}
  Int_t getPhi_bins(void){return Phi_bins;}

  void setTheta_bins(Int_t th_bins) {Theta_bins=th_bins;}
  void setDeltatheta_bins(Int_t Dth_bins) {Deltatheta_bins=Dth_bins;}
  void setPhi_bins(Int_t ph_bins) {Phi_bins=ph_bins;}

  Float_t getMom(Int_t th, Int_t Delta_th, Int_t ph){return mu_mom[th][Delta_th][ph];}
  void setMom(Int_t th, Int_t Delta_th, Int_t ph, Float_t mom){mu_mom[th][Delta_th][ph]=mom;}
  
  Bool_t init(HParIo*,Int_t*);
  Int_t write(HParIo*);
  void clear();
  void printParam();
  void readline(const Char_t*, Int_t*);
  void putAsciiHeader(TString&);
  Bool_t writeline(Char_t*, Int_t, Int_t, Int_t); 
  Bool_t writesize(Char_t *buf);
  void setDefaults(void);

  ClassDef(HTriggerParMomMap,1)  // Container for the MU Momentum Mapping parameters
};

#endif /* !HTRIGGERPARMOMMAP_H */












Last change: Sat May 22 13:17:14 2010
Last generated: 2010-05-22 13:17

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.