// ----------------------------------------------------------------------------- // ----- counters_sps_feb15_sim.C ----- // ----- ----- // ----- created by C. Simon on 2020-02-20 ----- // ----- ----- // ----------------------------------------------------------------------------- Bool_t counters_sps_feb15_sim() { FairRunSim* run = FairRunSim::Instance(); if(!run) { return kFALSE; } CbmTof* tTofDetector = dynamic_cast(run->GetListOfModules()->FindObject("TOF")); if(tTofDetector) { // counters in the setup looking downstream (along Z) // diamond start counters // default: do not create regular MC points in any start counter tTofDetector->SetCounterInactive(5, 2, 0); tTofDetector->SetCounterInactive(5, 1, 0); tTofDetector->SetCounterInactive(5, 0, 0); // upper setup (lower rates) tTofDetector->SetCounterInactive(2, 0, 0); // tTofDetector->SetCounterInactive(3, 0, 0); // tTofDetector->SetCounterInactive(9, 0, 0); // tTofDetector->SetCounterInactive(7, 0, 0); // tTofDetector->SetCounterInactive(4, 0, 0); tTofDetector->SetCounterInactive(2, 1, 0); // create beam MC points in the following start counters // tTofDetector->SetCounterInBeam(5, 2, 0); tTofDetector->SetCounterInBeam(5, 1, 0); return kTRUE; } else { return kFALSE; } }