Changeset 3674 in Sophya for trunk/AddOn/TAcq/brparam.h
- Timestamp:
- Nov 15, 2009, 1:27:00 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/brparam.h
r3673 r3674 60 60 BRConfList(string basedir, vector<ADCBoardDesc> boards); 61 61 BRConfList(BRConfList const & cf); 62 63 void SetBaseDirectory(string basedir); 62 64 void Set(BRConfList const & cf); 63 65 ostream& Print(ostream& os) ; 64 66 void ReadDCFile(string file); 65 inline string& BaseDirectory(){ return basedir_; }67 inline const string& BaseDirectory() const { return basedir_; } 66 68 //....................................... 67 69 string basedir_; … … 75 77 class BRParList { 76 78 public: 77 BRParList (string fibres="1", unsigned int szframe= 16424, unsigned int nframeDMA= 32,79 BRParList (string fibres="1", unsigned int szframe= 16424, unsigned int dmaszkb = 32, 78 80 int nfiles=1, string acqmode="fft2c", int nblocfile=10, 79 81 int nmaxpr = 0, string outpath="TstAcq", … … 89 91 inline int NFibers() { return NbFibers; } 90 92 // Taille des operations DMA (en octets) 91 inline uint_4 DMASizeBytes() { return nbFrameDMA*1024; }93 inline uint_4 DMASizeBytes() { return dmasizekb*1024; } 92 94 // Taille des operations DMA (en KB=1024 bytes) 93 inline uint_4 DMASizeKB() { return nbFrameDMA; }95 inline uint_4 DMASizeKB() { return dmasizekb; } 94 96 // Taille des paquets recus sur PCIExpress 95 97 inline uint_4 RecvPaquetSize() { return PaqSize; } … … 106 108 inline uint_4 MaxNbBlocs() { return NbFiles*NBlocPerFile; } 107 109 110 // Identification source ciel 111 inline string& SkySource() { return skysource; } 112 108 113 //.......................................... 109 114 void Decode(); … … 116 121 string OutPathName; // directory de base 117 122 string ProcPathName; 118 u nsigned intPaqSize ; // taille des paquets ou sizeFrame119 u nsigned int nbFrameDMA; // taille du dma en multiple de 2 (2 a 56)123 uint_4 PaqSize ; // taille des paquets ou sizeFrame 124 uint_4 dmasizekb ; // taille du dma en multiple de 2 (2 a 56) 120 125 int NbFiles; // nombre de fichier produits 121 126 int NBlocPerFile; // nombre de bloc par fichier … … 134 139 // ---- Pour gerer la reduction des tailles de paquets 135 140 bool fgreducpsize; // true -> reduction taille des paquets 141 bool reducneedcopy; // true -> besoin de copie intermediaire pour la reduction de taille de paquets 136 142 BRPaqReducAction pqreducmode; 137 143 uint_4 redpqsize; 138 144 uint_4 reducoffset; 139 145 146 // Identification source observee dans le ciel 147 string skysource; 140 148 // Pour des tests de performances ou sans carte ADC (pattern) 141 149 bool monothr ; // pour les test mono thread … … 200 208 inline uint_4 MaxNbBlocs() { return param_->MaxNbBlocs(); } 201 209 210 // Identification source ciel 211 inline string& SkySource() { return param_->SkySource(); } 212 202 213 // repertoire d'acquisition 203 214 inline string OutputDirectory() { return (config_->BaseDirectory()+param_->OutPathName); }
Note:
See TracChangeset
for help on using the changeset viewer.