All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GenericCRT.h
Go to the documentation of this file.
1 #ifndef GENERICCRTUTIL_H
2 #define GENERICCRTUTIL_H
3 
4 
5 /*!
6  * Title: GenericCRT Utility Class
7  * Author: Andrzej Szelc (andrzejs@fnal.gov)
8  *
9  * Description:
10  * Class with Algorithms to convert sim::AuxDetHits to sim::AuxDetSimChannels
11  *
12  */
13 
14 
19 #include "art/Framework/Services/Registry/ServiceHandle.h"
20 
21 #include <memory>
22 #include <string>
23 #include <vector>
24 
25 namespace sim{
26 
28 
29  public:
30 
31  GenericCRTUtility(const std::string energyUnitsScale);
32 
33  sim::AuxDetIDE toAuxDetIDE(sim::AuxDetHit const& InputHit) const;
34 
35  std::vector<unsigned int> GetAuxDetChannels(const std::vector<sim::AuxDetHit>& InputHitVector) const;
36 
37  std::vector<sim::AuxDetSimChannel> GetAuxDetSimChannels(const std::vector<sim::AuxDetHit>& InputHitVector) const;
38 
39  sim::AuxDetSimChannel GetAuxDetSimChannelByNumber(const std::vector<sim::AuxDetHit>& InputHitVector, unsigned int inputchannel) const;
40 
41  private:
42 
43  art::ServiceHandle<geo::Geometry const> fGeo;
44 
46 
47  };
48 
49 }
50 
51 
52 #endif
sim::AuxDetIDE toAuxDetIDE(sim::AuxDetHit const &InputHit) const
Definition: GenericCRT.cxx:32
sim::AuxDetSimChannel GetAuxDetSimChannelByNumber(const std::vector< sim::AuxDetHit > &InputHitVector, unsigned int inputchannel) const
Definition: GenericCRT.cxx:82
std::vector< unsigned int > GetAuxDetChannels(const std::vector< sim::AuxDetHit > &InputHitVector) const
Definition: GenericCRT.cxx:56
Collection of particles crossing one auxiliary detector cell.
object containing MC truth information necessary for making RawDigits and doing back tracking ...
art::ServiceHandle< geo::Geometry const > fGeo
Definition: GenericCRT.h:43
std::vector< sim::AuxDetSimChannel > GetAuxDetSimChannels(const std::vector< sim::AuxDetHit > &InputHitVector) const
Definition: GenericCRT.cxx:145
GenericCRTUtility(const std::string energyUnitsScale)
Definition: GenericCRT.cxx:20
MC truth information to make RawDigits and do back tracking.
object containing MC truth information necessary for making RawDigits and doing back tracking ...
art framework interface to geometry description