#include "hevent.h"
#include "hdeco.h"
#include "hades.h"
#include <iostream>
#include "hrecevent.h"
#include "hpartialevent.h"
#include "heventheader.h"
#include "TString.h"
ClassImp(HDeco)
HDeco::HDeco(){
}
HDeco::~HDeco(){
}
HDeco::HDeco(const Text_t *name,const Text_t *title,const Option_t *sel): HReconstructor(name, title) {
sele = sel;
sele.ToLower();
}
Int_t HDeco::execute(){
TString trig="trigger";
HRecEvent *event=0;
event=(HRecEvent *)gHades->getCurrentEvent();
Int_t flag =event->getHeader()->getDownscalingFlag();
if(sele.CompareTo(trig)==0){
if(flag==1) {
return kSkipEvent;
}
}
else if(flag==0) return kSkipEvent;
return 0;
}
Bool_t HDeco::init(){
cout<<" selecting seocnd level trigger data"<<endl;
return kTRUE;
}
Last change: Sat May 22 12:54:33 2010
Last generated: 2010-05-22 12:54
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.