Changeset 273 in Idarraga


Ignore:
Timestamp:
Mar 13, 2012, 9:02:36 AM (12 years ago)
Author:
idarraga
Message:

Mimosa26 included

File:
1 edited

Legend:

Unmodified
Added
Removed
  • allpix/src/AllPixSetupDigitizers.cc

    r252 r273  
    22 *  Authors:
    33 *   John Idarraga <idarraga@cern.ch>
    4  *   Mathieu Benoit <benoit@lal.in2p3.fr>
     4 *   Mathieu Benoit <Mathieu.Benoit@cern.ch>
    55 */
    66
     
    99#include "G4SDManager.hh"
    1010#include "G4PrimaryVertex.hh"
     11#include "AllPixMedipix2Digitizer.hh"
     12#include "AllPixFEI3StandardDigitizer.hh"
    1113#include "AllPixMimosa26Digitizer.hh"
    12 #include "AllPixFEI3StandardDigitizer.hh"
    1314
     15// __endofheader__
    1416
    1517// geometry
     
    7173                }
    7274                if(!found){
    73                         cout << "Couldn't find the detector in the list ! "<< endl;
     75                        cout << "Couldn't find the detector in the list !!!??? "<< endl;
    7476                        exit(1);
    7577                }
     
    100102                // Creating an instance of the actual digitizer, and keep pointer through the interface
    101103                AllPixDigitizerInterface * dmPtr;
     104        // __beginofdigitlist__
    102105                if (digitizerName == "FEI3Standard") {
    103106                        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);
    104111                        dmPtr = static_cast<AllPixDigitizerInterface *> (dp);
    105112                        cout << "    Setting up a " << digitizerName << " digitizer for det : " << detectorId << endl;
     
    109116                        cout << "    Setting up a " << digitizerName << " digitizer for det : " << detectorId << endl;
    110117                }
    111 
    112  else {
     118 
     119        // __endofdigitlist__
     120            else {
    113121                        G4cout << "    can't find digitizer with name : " << digitizerName << G4endl;
    114122                        exit(1);
Note: See TracChangeset for help on using the changeset viewer.