#ifndef TTRIPTPARAM_HXX #define TTRIPTPARAM_HXX /// This structure contains the constants to initialise a set of histograms. /// It is intended so that we can have one lot of code for e.g. hitmaps etc. which /// can be used on any of the TripT detectotrs. namespace COMET{ class ITripTParam; } class COMET::ITripTParam { public: ITripTParam(int detcode, int maxrmm, const char *name, char dchar) : fDetCode(detcode), fMaxRmm(maxrmm), fDChar(dchar) { snprintf(fName,100,"%s",name); } int GetDetCode() const { return fDetCode; } int GetMaxRmm() const { return fMaxRmm; } const char *GetName() const { return fName; } char GetDChar() const { return fDChar; } private: int fDetCode; // Numerical code for the detector int fMaxRmm; // Maximum number of rmms on this sub detector. char fName[100]; // Name of the detector char fDChar; // Single character identifier (Can be used to make ROOT names unique) // and to access banks }; #endif