97 std::unique_ptr< vector<CRTHit> > CRTHitcol(
new vector<CRTHit>);
98 std::unique_ptr< vector<AuxDetIDE> > IDEcol(
new vector<AuxDetIDE>);
99 std::unique_ptr< art::Assns<CRTHit, AuxDetIDE> > Hitassn(
new art::Assns<CRTHit,AuxDetIDE>);
100 art::PtrMaker<CRTHit> makeHitPtr(event);
101 art::PtrMaker<AuxDetIDE> makeAdPtr(event);
106 art::Handle< vector<sim::AuxDetSimChannel>> adscListHandle;
107 vector<art::Ptr<sim::AuxDetSimChannel> > adscList;
110 art::fill_ptr_vector(adscList, adscListHandle);
112 mf::LogInfo(
"CRTTrueHitProducer")
113 <<
"Number of AuxDetSimChannels = "<<adscList.size();
117 for(
auto const& crtHitPair : crtHitPairs){
119 CRTHitcol->push_back(crtHitPair.first);
120 art::Ptr<CRTHit> hitPtr = makeHitPtr(CRTHitcol->size()-1);
123 for(
auto const& ide : crtHitPair.second){
125 IDEcol->push_back(ide);
126 art::Ptr<AuxDetIDE> idePtr = makeAdPtr(IDEcol->size()-1);
127 Hitassn->addSingle(hitPtr, idePtr);
131 event.put(std::move(CRTHitcol));
132 event.put(std::move(IDEcol));
133 event.put(std::move(Hitassn));
135 mf::LogInfo(
"CRTTrueHitProducer")
136 <<
"Number of CRT hits produced = "<<nHits;
art::InputTag fCrtModuleLabel
name of crt producer
vector< pair< CRTHit, vector< sim::AuxDetIDE > > > CreateCRTHits(vector< art::Ptr< sim::AuxDetSimChannel >> adscList)