00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "StMessMgr.h"
00011 #include "StMtdEvtFilterApplyMaker.h"
00012 #include <bitset>
00013
00014 ClassImp(StMtdEvtFilterApplyMaker)
00015
00016
00017 StMtdEvtFilterApplyMaker::StMtdEvtFilterApplyMaker(const Char_t *name) : StTagFilterMaker(name)
00018 {
00019
00020
00021
00022
00023
00024
00025
00026
00027 SetVarList("MtdTrackFilterTag.isRejectEvent:MtdTrackFilterTag.shouldHaveRejectEvent:MtdTrackFilterTag.tpcSectors");
00028 }
00029
00030
00031 bool StMtdEvtFilterApplyMaker::SkipEvent()
00032 {
00033 LOG_INFO << "Found isReject = " << GetVal(0)
00034 << " and shouldHaveReject = " << GetVal(1)
00035 << " and tpcSectors = " << (bitset<24>)(GetVal(2)) << endm;
00036
00038 if (GetVal(0) != 0) return true;
00039
00045 TDataSet* ds1 = new TDataSet("MtdShouldHaveRejectEvent");
00046 TDataSet* ds2 = new TDataSet("TpcSectorsByMtd");
00047 ds1->SetTitle(Form("%d",(int) GetVal(1)));
00048 ds2->SetTitle(Form("%u",(unsigned int) GetVal(2)));
00049 AddData(ds1);
00050 AddData(ds2);
00051
00052 return false;
00053 }
00054
00055
00056
00057
00058
00059
00060
00061