CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ApvFactoryService.cc
Go to the documentation of this file.
2 
5 
6 using namespace edm;
7 using namespace std;
8 //using namespace sistrip;
9 
10 // -----------------------------------------------------------------------------
11 //
12 
13 // -----------------------------------------------------------------------------
14 //
15 
17  apvFactory_ = new ApvAnalysisFactory(pset);
18  std::cout << " Print pedalgo inside ApvFactoryService constructor "
19  << pset.getParameter<string>("CalculatorAlgorithm") << std::endl;
20  // activity.watchPostProcessEvent(this, &ApvFactoryService::postProcessEvent);
21 }
22 
23 // -----------------------------------------------------------------------------
24 //
26 
27 // -----------------------------------------------------------------------------
28 
30  if (gotPed)
31  return;
32 
33  /*
34  std::cout << "ApvFactoryService::post" << std::endl;
35 
36  edm::ESHandle<SiStripPedestals> ped;
37  ies.get<SiStripPedestalsRcd>().get(ped);
38 
39  //apvFactory_->SetPed(ped);
40 
41  gotPed=true;
42 
43 
44  std::vector<uint32_t> pdetid;
45  ped->getDetIds(pdetid);
46  edm::LogInfo("SiStripO2O") << " Peds Found " << pdetid.size() << " DetIds";
47 
48  // pedDB_=ped;
49 
50  for (size_t id=0;id<pdetid.size();id++){
51  SiStripPedestals::Range range=ped->getRange(pdetid[id]);
52  // SiStripPedestals::Range range=pedDB_.getRange(pdetid[id]);
53  int strip=0;
54 
55  edm::LogInfo("SiStripO2O") << "PED detid " << pdetid[id] << " \t"
56  << " strip " << strip << " \t"
57  << ped->getPed (strip,range) << " \t"
58  << ped->getLowTh (strip,range) << " \t"
59  << ped->getHighTh(strip,range) << " \t"
60  << std::endl;
61 
62  }
63 
64 */
65 }
66 
67 // -----------------------------------------------------------------------------
68 //
69 
70 // -----------------------------------------------------------------------------
71 //
72 
74 // -----------------------------------------------------------------------------
75 
76 // -----------------------------------------------------------------------------
77 //
78 
void postProcessEvent(const edm::Event &ie, const edm::EventSetup &ies)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ApvAnalysisFactory *const getApvFactory() const
tuple cout
Definition: gather_cfg.py:144
ApvAnalysisFactory * apvFactory_
ApvFactoryService(const edm::ParameterSet &, edm::ActivityRegistry &)