#include "hlocalselection.h"
#include "hevent.h"
#include "hspectrometer.h"
#include "hdetector.h"
#include "hrichdetector.h"
#include "hcategory.h"
#include "hiterator.h"
#include "hmatrixcatiter.h"
#include "hlinearcatiter.h"
#include "hlocation.h"
#include "hrichcal.h"
#include "hrichlocal.h"
#include "hdebug.h"
#include "hades.h"
#include "richdef.h"
#include "hrichgeometrypar.h"
#include "hrichlocalmaxheader.h"
ClassImp(HLocalSelection)
HLocalSelection::HLocalSelection(const Text_t *name,const Text_t *title,Float_t lowTheta[6],Float_t highTheta[6],Float_t *minEvt,Float_t *maxEvt,Int_t intSize) :
HReconstructor(name,title) {
evtIntSize = intSize;
minEvent = new Float_t[intSize];
maxEvent = new Float_t[intSize];
for(Int_t i = 0;i<intSize;i++){
minEvent[i] = minEvt[i];
maxEvent[i] = maxEvt[i];
}
for(Int_t i = 0;i<6;i++){
countSec[i] =0;
thetaLow[i] = lowTheta[i];
thetaHigh[i] = highTheta[i];
}
evtCount = 0;
}
HLocalSelection::~HLocalSelection(void){
delete [] minEvent;
delete [] maxEvent;
}
Bool_t HLocalSelection::init() {
printf("initialization of rich localmaxcal\n");
return kTRUE;
}
Int_t HLocalSelection::execute() {
evtCount++;
for (Int_t i = 0;i<evtIntSize;i++){
if(evtCount<maxEvent[i]){
if(evtCount>minEvent[i]){
break;
}
else return kSkipEvent;
}
else if(i==evtIntSize-1) return kSkipEvent;
}
return 0;
}
void HLocalSelection::checkPhoton(Float_t theta,Int_t sec){
if(theta>thetaLow[sec]&&theta<thetaHigh[sec]){
countSec[sec]++;
}
}
Last change: Sat May 22 12:59:02 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.