MuonPRDTest: Fix CSC tester and CSC/TGC Digit Positions
- An error was reported in the CSC SDO tester previously: "No valid proxy for object CSC_SDO of type MuonSimDataCollection".
Fix it by using the CscSimDataCollection intead of MuonSimDataCollection in CSCSDOVariables.cxx.
The tests of Sim_tf.py, Digit_tf.py and Reco_tf.py are passed.
-
CSCDigitVariables.cxx has used the truth position information from CscSimData before, change to use digit positions in order to avoid monitoring the same positon information in CSCSDOVariables.cxx/.h. Therefore, we have CSC digit positions in CSCDigitVariables.cxx/.h and we have position information from CscSimData in CSCSDOVariables.cxx/.h.
-
The local digit position information will be loss after the localToGlobal transformation, the local and global position cannot be retrieved at the same time. Therefore, use another loop to fill the local digit positions in order to save the position information.