// -*- mode: c++ -*- #ifndef BRAT_BrSelectGeantTracks #define BRAT_BrSelectGeantTracks // $Id: BrSelectGeantTracks.h,v 1.1.1.1 2001/06/21 14:55:07 hagel Exp $ // // $Log: BrSelectGeantTracks.h,v $ // Revision 1.1.1.1 2001/06/21 14:55:07 hagel // Initial revision of brat2 // // Revision 1.3 2000/04/06 20:20:00 cholm // Added the class BrGeantDigitize, which is a full-blown // GBRAHMS digitizer // // Revision 1.2 1999/01/21 23:23:23 hagel // 1. Changed convention for checking includes. Current convention is: // BRAT_Br...... eg BRAT_BrModule ala ROOT. // 2. Added CVS logs to .h files that didn't have them. // 3. Moved checking of include definition to first line for easier reading // 4. Put checks before all includes in the include files as per BRAT specifications // 5. Added BrGeantHeader to Geant Makefile // 6. All changes have been checked to compile on NT ala Cygnus // // Revision 1.1 1998/09/27 17:27:12 alv // *** empty log message *** // // /////////////////////////////////////////////////////////////////////// // // // BrSelectGeantTracks // // // // BRAHMS GEANT track selection class // // // // the class is derived from the BrModule class // // // // Author : Alv Kjetil Holme // // Created : September 98 // // Version : 1.0 // // Changed : // // // /////////////////////////////////////////////////////////////////////// #ifndef ROOT_Rtypes #include "Rtypes.h" #endif #ifndef BRAT_BrModule #include "BrModule.h" #endif #ifndef BRAT_BrGeantInput #include "BrGeantInput.h" #endif class BrEventNode; const Int_t kMAXMASKS = 20; class BrSelectGeantTracks : public BrModule { BrSelectGeantTracks(const BrSelectGeantTracks&); BrSelectGeantTracks& operator=(const BrSelectGeantTracks&); public: BrSelectGeantTracks() : BrModule(), fNumMasks(0), fModule(0){} BrSelectGeantTracks(Text_t *name, Text_t *title=0) : BrModule(name, title && *title ? title : name), fNumMasks(0), fModule(0){} virtual ~BrSelectGeantTracks() { } virtual void SetInputModule(const BrGeantInput *input) { fModule = input; } virtual Bool_t AddConfig(const Text_t *config); virtual void ListConfigs(); virtual void Event(BrEventNode* inev, BrEventNode* outev); private: UInt_t fMask[kMAXMASKS]; // Detector bit masks Int_t fNumMasks; // Number of bit masks defined const BrGeantInput *fModule; // Input module that read tracks ClassDef(BrSelectGeantTracks,0) // GEANT track selection class }; #endif