//*-- Author : Alberica Toia
//*-- Modified: Joern Wuestenfeld 03/31/2005
//*-- Version: $Id: hmudata.h,v 1.8 2008-09-18 13:02:58 halo Exp $

#ifndef HMUDATA_H
#define HMUDATA_H

#include "TObject.h"

class HEventHeader;
class HMUData : public TObject
{
private:
  UInt_t muLength;    // Length of subevent

  UInt_t version;     // Version of matching unit DSP code
  UInt_t triggerCode; // Triggercode from MU subevent
  UInt_t nHitsRich;   // Number of Hits in RICH
  UInt_t nHitsShower; // number of hits in SHOWER
  UInt_t nHitsTof;    // number of hits in TOF
  UInt_t scalers[20]; // Values read from scalers

  UInt_t secHitPatternRich;       // Bit pattern for RICH sectors that had a hit
  UInt_t secHitPatternShower;     // Bit pattern for SHOWER sectors that had a hit
  UInt_t secHitPatternTof;        // Bit pattern for TOF sectors that had a hit
  UInt_t nLeptons;                // Number of leptons found
  UInt_t nDiLeptons;              // Number of Dileptons found
  Bool_t fTriggerCodeFirstFormat; // flag for format of MU data (old or new)
  HEventHeader *eventhead;        //!  pointer to header
public:
  HMUData(void);
  ~HMUData(void) {};

  Int_t decode (UInt_t *ptr, Int_t maxLength);

  void clear();

  void setMULength(Int_t mul){muLength=mul;};
  UInt_t getMULength(){return muLength;};

  Bool_t isTriggerCodeFirstFormat(void) { return fTriggerCodeFirstFormat; };
  Bool_t getTriggerCodeFirstFormat() { return fTriggerCodeFirstFormat; };

  UInt_t getVersion(){return version;};
  UInt_t getTriggerCode(){return triggerCode;};
  UInt_t getNHitsRich() { return nHitsRich; };
  UInt_t getNHitsShower() { return nHitsShower; };
  UInt_t getNHitsTof() { return nHitsTof; };
  UInt_t getSecHitPatternRich() {return secHitPatternRich;};
  UInt_t getSecHitPatternShower() {return secHitPatternShower;};
  UInt_t getSecHitPatternTof() {return secHitPatternTof;};
  UInt_t getNLeptons(){return nLeptons;};
  UInt_t getNDiLeptons(){return nDiLeptons;};

  void setTriggerCodeFirstFormat(Bool_t tcff) { fTriggerCodeFirstFormat = tcff; };
  void setVersion(Int_t v){version=v;};
  void setTriggerCode(Int_t tc){triggerCode=tc;};

  void setNHitsRich(Int_t hr) { nHitsRich=hr; };
  void setNHitsShower(Int_t hs) { nHitsShower=hs; };
  void setNHitsTof(Int_t ht) { nHitsTof=ht; };
  void setSecHitPatternRich(Int_t pr) {secHitPatternRich=pr;};
  void setSecHitPatternShower(Int_t pr) {secHitPatternShower=pr;};
  void setSecHitPatternTof(Int_t pr) {secHitPatternTof=pr;};
  void setNLeptons(Int_t nl){ nLeptons = nl ;};
  void setNDiLeptons(Int_t nl){ nDiLeptons = nl;};

  ClassDef(HMUData,2) // MU data container
};

#endif /* !HMUDATA_H */

Last change: Sat May 22 12:59:07 2010
Last generated: 2010-05-22 12:59

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.