1 #ifndef IC_CRTCOMMONUTILS_H
2 #define IC_CRTCOMMONUTILS_H
4 #include "messagefacility/MessageLogger/MessageLogger.h"
5 #include "canvas/Persistency/Common/Ptr.h"
6 #include "canvas/Persistency/Common/PtrVector.h"
18 #include "TGeoManager.h"
21 #include "TLorentzVector.h"
54 pair<uint8_t,uint8_t>
ADToMac(
size_t adid);
56 int NFeb(
size_t adid);
65 int GetLayerID(
const art::Ptr<sim::AuxDetSimChannel> adsc);
82 std::pair<TVector3, TVector3>
CubeIntersection(TVector3 min, TVector3 max, TVector3 start, TVector3 end);
string MacToRegion(uint8_t mac)
std::pair< TVector3, TVector3 > CubeIntersection(TVector3 min, TVector3 max, TVector3 start, TVector3 end)
int ADToChanGroup(size_t adid)
int GetMINOSLayerID(size_t adid)
double LengthIDE(sim::AuxDetIDE ide)
int GetTypeCodeFromRegion(string name)
TLorentzVector AvgIDEPoint(sim::AuxDetIDE ide)
int GetAuxDetTypeCode(size_t adid)
map< size_t, int > fAuxDetIdToChanGroup
size_t MacToAuxDetID(uint8_t mac, int chan)
map< size_t, char > fAuxDetIdToType
int AuxDetRegionNameToNum(string reg)
double SimpleDCA(sbn::crt::CRTHit hit, TVector3 start, TVector3 direction)
Access the description of auxiliary detector geometry.
Collection of particles crossing one auxiliary detector cell.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
object containing MC truth information necessary for making RawDigits and doing back tracking ...
string GetRegionNameFromNum(int num)
art framework interface to geometry description for auxiliary detectors
auto end(FixedBins< T, C > const &) noexcept
TVector3 ChanToLocalCoords(const uint8_t mac, const int chan)
pair< uint8_t, uint8_t > ADToMac(size_t adid)
char MacToType(uint8_t mac)
Description of geometry of one entire detector.
char GetRegTypeFromRegName(string name)
char GetAuxDetType(size_t adid)
map< string, size_t > fNameToAuxDetId
Encapsulate the geometry of an auxiliary detector.
int GetLayerID(sim::AuxDetSimChannel const &adsc)
string GetAuxDetRegion(size_t adid)
double LineSegmentDistance(TVector3 start1, TVector3 end1, TVector3 start2, TVector3 end2)
TVector3 ChanToWorldCoords(const uint8_t mac, const int chan)
MC truth information to make RawDigits and do back tracking.
int MacToTypeCode(uint8_t mac)
int ChannelToAuxDetSensitiveID(uint8_t mac, int chan)
string AuxDetNameToRegion(string name)
map< uint8_t, vector< size_t > > fFebToAuxDetId
double DistToCrtHit(sbn::crt::CRTHit hit, TVector3 start, TVector3 end)
TVector3 WorldToModuleCoords(TVector3 point, size_t adid)
map< size_t, string > fAuxDetIdToRegion
map< size_t, vector< pair< uint8_t, int > > > fAuxDetIdToFeb
geo::GeometryCore const * fGeoService
art framework interface to geometry description