- Timestamp:
- 10/07/06 14:57:12 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 1 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8010 r8011 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2006/10/07 Thomas Bretz 22 23 * Makefile.conf.general: 24 - removed ROOTVER definition ROOT_RELEASE can be used instead 25 26 * callisto.cc: 27 - exchanged some checks to get a more reasonable output 28 29 * callisto.rc, callisto_Dec04Jan05.rc: 30 - removed some obsolete resources for simplicity 31 32 * callisto.cc, ganymed.cc, mars.cc, merpp.cc, readdaq.cc, readreaw.cc, 33 showlog.cc, showplot.cc, sinope.cc, star.cc 34 - added the new root version check 35 - replaced ROOTVER by ROOT_RELEASE 36 37 * sinope.cc: 38 - adapted Usage() to fit the other executables 39 40 * mbase/MAGIC.h: 41 - added new namespace MARS with a new function CheckRootVer 42 43 * mbase/MAGIC.cc: 44 - added 45 46 * mbase/MEvtLoop.cc, mbase/MStatusDisplay.cc: 47 - replaced ROOTVER by ROOT_RELEASE 48 49 * mbase/Makefile: 50 - added new MAGIC.cc 51 52 * mbase/BaseLinkDef.h: 53 - added namespace MAGIC.cc 54 55 20 56 21 57 2006/10/07 Daniela Dorner, Thomas Bretz -
trunk/MagicSoft/Mars/Makefile.conf.general
r7879 r8011 3 3 # 4 4 5 ROOTVER = `root-config --version`6 5 ROOTLIBS = `root-config --libs` -lASImage -lMinuit -lHistPainter -lThread 7 6 ROOTGLIBS = `root-config --glibs` -lASImage -lMinuit -lHistPainter -lThread … … 18 17 # export MARSLIBS="-lX11 -lXpm -L/usr/X11R6/lib" 19 18 # 20 DEFINES = -DMARSVER=\"\<cvs\>\" -D__MARS__ -DROOTVER=\"$(ROOTVER)\"$(ARCHDEF) $(MARSDEFINES)19 DEFINES = -DMARSVER=\"\<cvs\>\" -D__MARS__ $(ARCHDEF) $(MARSDEFINES) 21 20 22 21 CXXFLAGS = $(ROOTCFLAGS) $(INCLUDES) $(OPTIM) $(DEBUG) $(DEFINES) -
trunk/MagicSoft/Mars/NEWS
r8003 r8011 3 3 *** Version <cvs> 4 4 5 - callisto: New swapped pixels have been found and corrected 5 - general: all executables now check consistency of the root version 6 installed with the root version used for compilation 6 7 7 8 - general: The algorithm to build seqeunces has been redesigned … … 43 44 44 45 - merpp: didn't recognize files with the extension .raw.gz - fixed. 46 47 - callisto: New swapped pixels have been found and corrected. For 48 details see MRawRunHeader::FixAssignment() 45 49 46 50 - callisto: Callisto now raises an error if one of the input files could -
trunk/MagicSoft/Mars/callisto.cc
r7989 r8011 33 33 gLog << " Callisto - MARS V" << MARSVER << endl; 34 34 gLog << " MARS -- CALibrate LIght Signals and Time Offsets" << endl; 35 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;35 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 36 36 gLog << "========================================================" << endl; 37 37 gLog << endl; … … 142 142 int main(int argc, char **argv) 143 143 { 144 if (!MARS::CheckRootVer()) 145 return 0xff; 146 144 147 // 145 148 // Evaluate arguments … … 198 201 kModeC = kTRUE; 199 202 203 // 204 // check for the right usage of the program 205 // 206 if (arg.GetNumArguments()!=1) 207 { 208 Usage(); 209 return 2; 210 } 211 212 if (arg.GetNumOptions()>0) 213 { 214 gLog << warn << "WARNING - Unknown commandline options..." << endl; 215 arg.Print("options"); 216 gLog << endl; 217 return 2; 218 } 219 200 220 if (!kModeC && !kModeY /*&& !kUseTest*/) 201 221 { 202 gLog << err << "Neither calibration (-c) nor signal extraction (-y) or test-mode (--use-test) specified!" << endl; 222 gLog << err << "Neither calibration (-c), signal extraction (-y) or test-mode (--use-test)" << endl; 223 gLog << "specified! You can also give the operation mode by the options defining the" << endl; 224 gLog << "output path --outc, --outy or --out." << endl; 203 225 Usage(); 204 226 return 2; … … 228 250 if (kModeC && kModeY) 229 251 kInpathY = kOutpathC; 230 231 if (arg.GetNumOptions()>0)232 {233 gLog << warn << "WARNING - Unknown commandline options..." << endl;234 arg.Print("options");235 gLog << endl;236 return 2;237 }238 239 //240 // check for the right usage of the program241 //242 if (arg.GetNumArguments()!=1)243 {244 Usage();245 return 2;246 }247 252 248 253 // -
trunk/MagicSoft/Mars/callisto.rc
r8000 r8011 82 82 #MJPedestalC1.ExtractSignal.ExtractionType: Integral <default> 83 83 #MJPedestalC1.ExtractSignal.ExtractionType: Amplitude 84 # -------------------------------------------------------------------------85 # Define here parameters valid for the sliding window:86 # -------------------------------------------------------------------------87 #MJPedestalC1.ExtractSignal.HiGainWindowSize: 688 #MJPedestalC1.ExtractSignal.LoGainWindowSize: 689 # -------------------------------------------------------------------------90 # Define here parameters valid for the digital filter with peak search:91 # -------------------------------------------------------------------------92 #MJPedestalC1.ExtractSignal.OffsetLeftFromPeak: 393 #MJPedestalC1.ExtractSignal.OffsetRightFromPeak: 394 #MJPedestalC1.ExtractSignal.PeakSearchWindowSize: 295 #MJPedestalC1.ExtractSignal.HiGainFailureLimit: 1096 #MJPedestalC1.ExtractSignal.LoGainFailureLimit: 2597 84 98 85 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc
r8001 r8011 92 92 #MJPedestalC1.ExtractSignal.ExtractionType: Integral <default> 93 93 #MJPedestalC1.ExtractSignal.ExtractionType: Amplitude 94 # -------------------------------------------------------------------------95 # Define here parameters valid for the sliding window:96 # -------------------------------------------------------------------------97 #MJPedestalC1.ExtractSignal.HiGainWindowSize: 698 #MJPedestalC1.ExtractSignal.LoGainWindowSize: 699 # -------------------------------------------------------------------------100 # Define here parameters valid for the digital filter with peak search:101 # -------------------------------------------------------------------------102 #MJPedestalC1.ExtractSignal.OffsetLeftFromPeak: 3103 #MJPedestalC1.ExtractSignal.OffsetRightFromPeak: 3104 #MJPedestalC1.ExtractSignal.PeakSearchWindowSize: 2105 #MJPedestalC1.ExtractSignal.HiGainFailureLimit: 10106 #MJPedestalC1.ExtractSignal.LoGainFailureLimit: 25107 94 108 95 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/ganymed.cc
r7753 r8011 30 30 gLog << " Ganymed - MARS V" << MARSVER << endl; 31 31 gLog << " MARS -- Gammas Are Now Your Most Exciting Discovery" << endl; 32 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;32 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 33 33 gLog << "========================================================" << endl; 34 34 gLog << endl; … … 91 91 int main(int argc, char **argv) 92 92 { 93 if (!MARS::CheckRootVer()) 94 return 0xff; 95 93 96 // 94 97 // Evaluate arguments -
trunk/MagicSoft/Mars/mars.cc
r7432 r8011 36 36 gLog << " MARS V" << MARSVER << endl; 37 37 gLog << " Magic Analysis and Reconstruction Software" << endl; 38 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;38 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 39 39 gLog << "==================================================" << endl; 40 40 gLog << endl; … … 53 53 int main(int argc, char **argv) 54 54 { 55 if (!MARS::CheckRootVer()) 56 return 0xff; 57 55 58 // 56 59 // Evaluate arguments -
trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
r7438 r8011 18 18 // I/O 19 19 #pragma link C++ class MZlib+; 20 //#pragma link C++ class MBzlib2+; 20 21 21 22 // Basic Network Tools … … 23 24 24 25 // Basic Tools 26 #pragma link C++ namespace MARS; 25 27 #pragma link C++ namespace MMath; 26 28 #pragma link C++ class MString+; -
trunk/MagicSoft/Mars/mbase/MAGIC.h
r7804 r8011 35 35 const Double_t kRad2Deg = 180.0/3.1415926535897932384626433832795028841971693993751; 36 36 37 namespace MARS 38 { 39 bool CheckRootVer(); 40 } 41 37 42 #endif -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r7888 r8011 109 109 SetBit(kMustCleanup); 110 110 111 *fLog << inf << underline << "Instantiated MEvtLoop (" << name << "), using ROOT v" << ROOT VER<< endl;111 *fLog << inf << underline << "Instantiated MEvtLoop (" << name << "), using ROOT v" << ROOT_RELEASE << endl; 112 112 } 113 113 -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r7887 r8011 451 451 452 452 // Add root version 453 l = new TGLabel(f, MString::Format("Using ROOT v%s", ROOT VER));453 l = new TGLabel(f, MString::Format("Using ROOT v%s", ROOT_RELEASE)); 454 454 fList->Add(l); 455 455 -
trunk/MagicSoft/Mars/mbase/Makefile
r7438 r8011 18 18 CINT = Base 19 19 20 SRCFILES = MLogo.cc \ 20 SRCFILES = MAGIC.cc \ 21 MLogo.cc \ 21 22 MArgs.cc \ 22 23 MString.cc \ -
trunk/MagicSoft/Mars/merpp.cc
r7801 r8011 53 53 gLog << " MERPP - MARS V" << MARSVER << endl; 54 54 gLog << " MARS - Merging and Preprocessing Program" << endl; 55 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;55 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 56 56 gLog << "==================================================" << endl; 57 57 gLog << endl; … … 147 147 int main(const int argc, char **argv) 148 148 { 149 if (!MARS::CheckRootVer()) 150 return 0xff; 151 149 152 // 150 153 // Evaluate arguments -
trunk/MagicSoft/Mars/readdaq.cc
r7579 r8011 39 39 gLog << " ReadDaq - MARS V" << MARSVER << endl; 40 40 gLog << " MARS - Read and print daq data files" << endl; 41 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;41 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 42 42 gLog << "==================================================" << endl; 43 43 gLog << endl; … … 59 59 int main(int argc, char **argv) 60 60 { 61 if (!MARS::CheckRootVer()) 62 return 0xff; 63 61 64 // 62 65 // Evaluate arguments -
trunk/MagicSoft/Mars/readraw.cc
r7432 r8011 42 42 gLog << " ReadRaw - MARS V" << MARSVER << endl; 43 43 gLog << " MARS - Read and print raw data files" << endl; 44 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;44 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 45 45 gLog << "==================================================" << endl; 46 46 gLog << endl; … … 70 70 int main(int argc, char **argv) 71 71 { 72 if (!MARS::CheckRootVer()) 73 return 0xff; 74 72 75 // Evaluate arguments 73 76 MArgs arg(argc, argv); -
trunk/MagicSoft/Mars/showlog.cc
r7432 r8011 3 3 4 4 #include <TRegexp.h> 5 6 #include "MAGIC.h" 5 7 6 8 #include "MArgs.h" … … 16 18 // 12345678901234567890123456789012345678901234567890 17 19 gLog << endl; 18 gLog << "showlog --- Mars V" << MARSVER << " compiled on <" << __DATE__ << "> using ROOT v" << ROOT VER<< endl;20 gLog << "showlog --- Mars V" << MARSVER << " compiled on <" << __DATE__ << "> using ROOT v" << ROOT_RELEASE << endl; 19 21 gLog << endl; 20 22 } … … 62 64 int main(int argc, char **argv) 63 65 { 66 if (!MARS::CheckRootVer()) 67 return 0xff; 68 64 69 MArgs arg(argc, argv); 65 70 -
trunk/MagicSoft/Mars/showplot.cc
r7827 r8011 18 18 // 12345678901234567890123456789012345678901234567890 19 19 gLog << endl; 20 gLog << "showplot --- Mars V" << MARSVER << " compiled on <" << __DATE__ << "> using ROOT v" << ROOT VER<< endl;20 gLog << "showplot --- Mars V" << MARSVER << " compiled on <" << __DATE__ << "> using ROOT v" << ROOT_RELEASE << endl; 21 21 gLog << endl; 22 22 } … … 90 90 int main(int argc, char **argv) 91 91 { 92 if (!MARS::CheckRootVer()) 93 return 0xff; 94 92 95 // 93 96 // Evaluate arguments -
trunk/MagicSoft/Mars/sinope.cc
r7262 r8011 196 196 // 1 2 3 4 5 197 197 // 12345678901234567890123456789012345678901234567890 198 gLog << "========================================================" << endl; 199 gLog << " Sinope - MARS V" << MARSVER << endl; 200 gLog << " MARS -- SImple Non Online Pulse Evaluation" << endl; 201 gLog << " Compiled on <" << __DATE__ << ">" << endl; 202 gLog << " Using ROOT v" << ROOTVER << endl; 203 gLog << "========================================================" << endl; 198 gLog << "==================================================" << endl; 199 gLog << " Sinope - MARS V" << MARSVER << endl; 200 gLog << " MARS -- SImple Non Online Pulse Evaluation" << endl; 201 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 202 gLog << "==================================================" << endl; 204 203 gLog << endl; 205 204 } … … 267 266 int main(int argc, char **argv) 268 267 { 268 if (!MARS::CheckRootVer()) 269 return 0xff; 270 269 271 // 270 272 // Evaluate arguments -
trunk/MagicSoft/Mars/star.cc
r7801 r8011 30 30 gLog << " Star - MARS V" << MARSVER << endl; 31 31 gLog << " MARS -- STandard Analysis and Reconstruction" << endl; 32 gLog << " Compiled with ROOT v" << ROOT VER<< " on <" << __DATE__ << ">" << endl;32 gLog << " Compiled with ROOT v" << ROOT_RELEASE << " on <" << __DATE__ << ">" << endl; 33 33 gLog << "========================================================" << endl; 34 34 gLog << endl; … … 91 91 int main(int argc, char **argv) 92 92 { 93 if (!MARS::CheckRootVer()) 94 return 0xff; 95 93 96 // 94 97 // Evaluate arguments
Note:
See TracChangeset
for help on using the changeset viewer.