// ESAF : Euso Simulation and Analysis Framework // $Id: ChipTrackingTrgEngine2.hh,v 1.3 2005/05/02 10:11:09 pesce Exp $ // R. Pesce created // tracking built in front end chip logic + macrocell logic // ALGORYTHM: // each chip is capable of finding a track segment of consequtive and adjacent // pixels // if the length of a given segment exceeds a threshold, trigger occurs // if not, the macrocell checks if there are 2 segments in nearby front end // chips that summed together exceed the threshold. if this happens, trigger // occurs // // // Special multiple configurations is built directly inside #ifndef __CHIPTRACKINGTRGENGINE2_HH_ #define __CHIPTRACKINGTRGENGINE2_HH_ #include "euso.hh" #include "TriggerEngine.hh" #include "ChipTrackSegment.hh" class ChipTrackingTrgEngine2 : public TriggerEngine { public: enum ECTTypes { k8 = BIT(0), k9 = BIT(1), k10 = BIT(2), k11= BIT(3), k12 = BIT(4), k13 = BIT(5), k10p = BIT(6), k11p = BIT(7), k12p = BIT(8), k13p = BIT(9), k14p = BIT(10), k15p = BIT(11), }; // ctor ChipTrackingTrgEngine2(); // dtor virtual ~ChipTrackingTrgEngine2(); // simulate trigger virtual void Simulate( MacroCellData* ); EsafConfigClass(Electronics,ChipTrackingTrgEngine); private: ClassDef(ChipTrackingTrgEngine2,0) // trigger parameters Int_t fThreshold; //threshold on pixel hits in a gtu Int_t fMinTrackLength; //algorithm searches for tracks of length between fMinTrackLength and fMaxTriggerTrackLength Int_t fMaxTrackLength; //also max length for trigger in a single chip Int_t fMinTriggerTrackLength; //min trigger track length in a single chip Int_t fMinTriggerTwoLength; //min trigger track length in two nearby chips Int_t fMaxTwoLength; //max length for trigger in two nearby chips Bool_t fAcceptHole; //true if we accept an hole in a track in a single chip Bool_t fOnlyWithSignal; //if true processes only chip with signal // clear maps void Clear(); // fill root event void FillEEvent( Int_t ); // dump the number of tracks for each chip void Dump( Int_t ); map > fTrackSegments; //map for storing data }; #endif /* __CHIPTRACKINGTRGENGINE2_HH_ */