#ifndef STNTUPLE_TWireChecker #define STNTUPLE_TWireChecker #include "TObject.h" class TStnPhoton; class TCprCluster; class TCesCluster; class TStnClusterBlock; class TWireChecker : public TObject { public: TWireChecker(); ~TWireChecker(); bool GoodCprCluster(TStnPhoton* pho, int nWire=5); //based on Ces position bool GoodCprCluster(TCprCluster* clu); bool GoodCprCluster(Int_t is, Int_t iw, Int_t first, Int_t nWires); // based on ces x and z bool GoodCesCluster(TStnPhoton* pho, int nWire=11, int nStrip=11); // based on links to cluster block bool GoodCesCluster(TStnPhoton* pho, TStnClusterBlock* club); // given a cluster bool GoodCesCluster(TCesCluster* clu); // given a set of wires // view (0=strips), side, wedge, x=local x in +phi direction, signed z bool GoodCesClusterGeo(Int_t iv, Int_t is, Int_t iw, Float_t x, Float_t z, int nWire=11, int nStrip=11); // given a set of wires // view (0=strips), side, wedge, first wire, nwires bool GoodCesCluster(Int_t iv, Int_t is, Int_t iw, Int_t first, Int_t nWires); void setRunNumber(Int_t run) { runNumber=run; } int runNumber; ClassDef(TWireChecker,1) }; #endif