00001 00002 00003 // Program name: CDTrackerOptions.h 00004 // 00005 // Package: CalDetTracker 00006 // 00007 // Purpose: 00008 // 00009 // Contact: Chris Smith, Ryan Nichol, Leo Jenner or Jeff Hartnell 00011 00012 #ifndef CDTRACKEROPTIONS_H 00013 #define CDTRACKEROPTIONS_H 00014 00015 #include <string> 00016 00017 #include "TObject.h" 00018 00019 class CDTrackerOptions : public TObject 00020 { 00021 00022 public: 00023 00024 CDTrackerOptions(); 00025 CDTrackerOptions(std::string); 00026 00027 void SetTrackerOptions(std::string); 00028 void SetTrackerOptions(float,int,int,int,int,int,float,float,float); 00029 00030 float GetThresh() {return fthresh;} 00031 int GetMinHit() {return fminhit;} 00032 int GetAcceptance() {return facceptance;} 00033 int GetHitsPerPlane() {return fhits_per_plane;} 00034 int GetMaxHotPlanes() {return fmax_hot_planes;} 00035 int GetTrkLenCut() {return ftrk_len_cut;} 00036 float GetAngleLimit() {return fangle_limit;} 00037 float GetMinAngle() {return fmin_angle;} 00038 float GetMinVertAngle() {return fmin_vert_angle;} 00039 bool Cosmic() {return fcosmic;} 00040 00041 void SetThresh(float thresh) {fthresh=thresh;} 00042 void SetMinHit(int minhit) {fminhit=minhit;} 00043 void SetAcceptance(int acceptance) {facceptance=acceptance;} 00044 void SetHitsPerPlane(int hits_per_plane) {fhits_per_plane=hits_per_plane;} 00045 void SetMaxHotPlanes(int max_hot_planes) {fmax_hot_planes=max_hot_planes;} 00046 void SetTrkLenCut(int trk_len_cut) {ftrk_len_cut=trk_len_cut;} 00047 void SetAngleLimit(float angle_limit) {fangle_limit=angle_limit;} 00048 void SetMinAngle(float min_angle) {fmin_angle=min_angle;} 00049 void SetMinVertAngle(float min_vert_angle) {fmin_vert_angle=min_vert_angle;} 00050 void SetCosmic(bool cosmic) {fcosmic = cosmic;} 00051 00052 private: 00053 00054 float fthresh; //threshold for "non-zero" ADC value 00055 int fminhit; //minimum number of hits allowed in an accepted event 00056 int facceptance; //+/- #strips to look at for hits in next plane 00057 int fhits_per_plane; //max allowed hits per plane in search range 00058 int fmax_hot_planes; //max allowed consecutive "hot" planes 00059 //(i.e. planes with >2 && <=fhits_per_plane) 00060 int ftrk_len_cut; //minimum track length (in terms of number of 00061 //hit planes in a particular view) 00062 00063 float fangle_limit; //maximum angle wrt beamline 00064 float fmin_angle; //minimum angle wrt beamline 00065 float fmin_vert_angle; //minimum vertical angle wrt beamline 00066 //(useful for cutting out beam and PS muons) 00067 bool fcosmic; //true==cosmic ; false==beam 00068 00069 ClassDef(CDTrackerOptions,1) // CDTrackerOptions 00070 00071 }; 00072 #endif //CDTRACKEROPTIONS_H 00073 00074 00075 00076
1.3.9.1