7 #include "TClonesArray.h"
53 class PHit :
public TObject
69 void Clear(Option_t *opt);
95 void CopyTo(std::vector <PHit *> &ordlist, Option_t *opt =
"");
99 {
return fHits->GetEntries(); }
103 TClonesArray &ar = *fHits;
105 PHit *ishit = 0x0; Int_t entries = fHits->GetEntries();
106 for (Int_t j = 0; j < entries; j++) {
108 if ( hit->
fUID == uid ) {
124 { fH += h; fK += k; }
135 void Clear(Option_t *opt);
156 void Clear(Option_t *opt);
177 {
return fHits->GetEntries(); }
184 void Clear(Option_t *opt);
PHit * GetHit(Int_t)
to get a Hit
PHit * IsUID(Int_t uid, Int_t *which=0x0)
void CopyTo(std::vector< PHit * > &ordlist, Option_t *opt="")
helper function
void Clear(Option_t *opt)
clear the collection of hits, set H, K to 0
void AddHK(Double_t h, Int_t k=1)
void Clear(Option_t *opt)
POpticalHit * AddHit()
add a hit to the current event
POpticalHit * GetHit(Int_t)
to get a Hit
PHit * AddHit()
add a hit to the current event
void SetHK(Double_t h, Int_t k)