Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:51

0001 #ifndef RPCDigitizer_RPCSynchronizer_h
0002 #define RPCDigitizer_RPCSynchronizer_h
0003 
0004 /** \class RPCSynchronizer
0005  *   Class for the RPC strip response simulation based
0006  *   on a parametrized model (ORCA-based)
0007  *
0008  *  \author Raffaello Trentadue -- INFN Bari
0009  */
0010 
0011 #include <cstring>
0012 #include <iostream>
0013 #include <fstream>
0014 #include <string>
0015 #include <vector>
0016 #include <cstdlib>
0017 
0018 #include "FWCore/Framework/interface/Frameworkfwd.h"
0019 #include "FWCore/Framework/interface/Event.h"
0020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0021 #include "FWCore/ServiceRegistry/interface/Service.h"
0022 #include <set>
0023 
0024 class PSimHit;
0025 class RPCSimSetUp;
0026 
0027 namespace edm {
0028   class ParameterSet;
0029 }
0030 
0031 namespace CLHEP {
0032   class HepRandomEngine;
0033 }
0034 
0035 class RPCSynchronizer {
0036 public:
0037   RPCSynchronizer(const edm::ParameterSet& config);
0038   ~RPCSynchronizer();
0039 
0040   int getSimHitBx(const PSimHit*, CLHEP::HepRandomEngine*);
0041   int getSimHitBxAndTimingForIRPC(const PSimHit*, CLHEP::HepRandomEngine*);
0042   void setRPCSimSetUp(RPCSimSetUp* simsetup) { theSimSetUp = simsetup; }
0043   RPCSimSetUp* getRPCSimSetUp() { return theSimSetUp; }
0044   double getExactTime() const { return the_exact_time; }
0045   double getSmearedTime() const { return the_smeared_time; }
0046 
0047 private:
0048   double resRPC;
0049   double timOff;
0050   double dtimCs;
0051   double resEle;
0052   double sspeed;
0053   double cspeed;
0054   double lbGate;
0055   double lbGateNew;
0056   double cosmicPar;
0057   double LHCGate;
0058   bool cosmics;
0059   double irpc_timing_res;
0060   double irpc_electronics_jitter;
0061   double the_exact_time;
0062   double the_smeared_time;
0063   RPCSimSetUp* theSimSetUp;
0064   int N_BX;
0065 };
0066 #endif