// ----------------------------------------------------------------------------- // ----- counters_sps_nov15_sim.C ----- // ----- ----- // ----- created by C. Simon on 2018-05-01 ----- // ----- ----- // ----------------------------------------------------------------------------- Bool_t counters_sps_nov15_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(4, 0, 0); tTofDetector->SetCounterInactive(9, 0, 0); tTofDetector->SetCounterInactive(9, 0, 1); // tTofDetector->SetCounterInactive(9, 1, 0); tTofDetector->SetCounterInactive(9, 1, 1); tTofDetector->SetCounterInactive(9, 2, 0); // tTofDetector->SetCounterInactive(9, 2, 1); // tTofDetector->SetCounterInactive(3, 0, 0); // lower setup (higher rates) tTofDetector->SetCounterInactive(8, 0, 0); tTofDetector->SetCounterInactive(8, 0, 1); tTofDetector->SetCounterInactive(8, 0, 2); tTofDetector->SetCounterInactive(8, 0, 3); tTofDetector->SetCounterInactive(8, 0, 4); tTofDetector->SetCounterInactive(8, 0, 5); tTofDetector->SetCounterInactive(6, 0, 0); tTofDetector->SetCounterInactive(6, 0, 1); tTofDetector->SetCounterInactive(7, 0, 0); tTofDetector->SetCounterInactive(7, 0, 1); tTofDetector->SetCounterInactive(7, 0, 2); tTofDetector->SetCounterInactive(7, 0, 3); tTofDetector->SetCounterInactive(1, 0, 0); tTofDetector->SetCounterInactive(2, 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; } }