Changeset 273 in Idarraga
- Timestamp:
- Mar 13, 2012, 9:02:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
allpix/src/AllPixSetupDigitizers.cc
r252 r273 2 2 * Authors: 3 3 * John Idarraga <idarraga@cern.ch> 4 * Mathieu Benoit < benoit@lal.in2p3.fr>4 * Mathieu Benoit <Mathieu.Benoit@cern.ch> 5 5 */ 6 6 … … 9 9 #include "G4SDManager.hh" 10 10 #include "G4PrimaryVertex.hh" 11 #include "AllPixMedipix2Digitizer.hh" 12 #include "AllPixFEI3StandardDigitizer.hh" 11 13 #include "AllPixMimosa26Digitizer.hh" 12 #include "AllPixFEI3StandardDigitizer.hh"13 14 15 // __endofheader__ 14 16 15 17 // geometry … … 71 73 } 72 74 if(!found){ 73 cout << "Couldn't find the detector in the list ! "<< endl;75 cout << "Couldn't find the detector in the list !!!??? "<< endl; 74 76 exit(1); 75 77 } … … 100 102 // Creating an instance of the actual digitizer, and keep pointer through the interface 101 103 AllPixDigitizerInterface * dmPtr; 104 // __beginofdigitlist__ 102 105 if (digitizerName == "FEI3Standard") { 103 106 AllPixFEI3StandardDigitizer * dp = new AllPixFEI3StandardDigitizer(digitizerModulesNames[itr] , hcName, digitColectionName); 107 dmPtr = static_cast<AllPixDigitizerInterface *> (dp); 108 cout << " Setting up a " << digitizerName << " digitizer for det : " << detectorId << endl; 109 } else if (digitizerName == "Medipix2") { 110 AllPixMedipix2Digitizer * dp = new AllPixMedipix2Digitizer(digitizerModulesNames[itr] , hcName, digitColectionName); 104 111 dmPtr = static_cast<AllPixDigitizerInterface *> (dp); 105 112 cout << " Setting up a " << digitizerName << " digitizer for det : " << detectorId << endl; … … 109 116 cout << " Setting up a " << digitizerName << " digitizer for det : " << detectorId << endl; 110 117 } 111 112 else { 118 119 // __endofdigitlist__ 120 else { 113 121 G4cout << " can't find digitizer with name : " << digitizerName << G4endl; 114 122 exit(1);
Note: See TracChangeset
for help on using the changeset viewer.