BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page
//  $Id: BrCombinedHit.cxx,v 1.1.1.1 2001/06/21 14:55:02 hagel Exp $
//
//  $Log: BrCombinedHit.cxx,v $
//  Revision 1.1.1.1  2001/06/21 14:55:02  hagel
//  Initial revision of brat2
//
//  Revision 1.5  1999/03/07 22:38:03  videbaek
//  Added DetectorHit and BrLocalTrackingModule as a more general way to
//  deal with local tracks and hits. Initial insertion. Not fully debugged.
//  Cosmetic changes to other modules.
//
//  Revision 1.4  1998/12/04 21:35:57  videbaek
//  Started updating structures for tracking. Using BrVector3D
//  in many places where double* or float* was used before.
//  Fix type SHLIB->$(SHLIB) .. in makefile
//

#include "BrCombinedHit.h"

ClassImp(BrCombinedHit)

/////////////////////////////////////////////////////////////
//
// BrCombinedHit is a BRAHMS data class for storing information for 
// one detector Hit. This is the deduced information for a hit in
// the local coordinate system for a given detector. It is in principle
// independent of what kind of detector is considered.
// It actually deserve to be renamed. This may 
//
//////////////////////////////////////////////////////////////

//________________________________________________________________________
 BrCombinedHit::BrCombinedHit() 
{
Int_t i;
 fID = 0;
 for(i=0;i<3;i++) fPos[i] = 0;
 for(i=0;i<2;i++) fDpos[i] = 0.0;
 fImod = 0;
 fNhit = 0;
 fStat = 0;
 fType = 0;
 fPlace = 0;		//Test to see where it was created;
}
//________________________________________________________________________
 BrCombinedHit::~BrCombinedHit(){

}

//________________________________________________________________________
ostream& operator<< (ostream & os, BrCombinedHit *hit)
{
Int_t idet = hit->GetImod() / 100 - 1;
Int_t iview = hit->GetImod() - (idet+1)*100;
os<<"idet,iplane = "<<idet<<","<<iview;
os<<" x,y,z= "<<hit->GetPos()[0]<<","<<hit->GetPos()[1]<<","<<
   hit->GetPos()[2];
os<<" Imode= "<<hit->GetImod()<<", Stat= "<<hit->GetStat();
os<<" Place set= "<<hit->GetPlace();
os<<endl;
return os;
}

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on by

Validate HTML
Validate CSS