15 produces<EcalTBHodoscopeRawInfo>();
26 delete theTBHodoGeom_;
37 event.getByLabel(ecalTBInfoLabel_,theEcalTBInfo);
39 double partXhodo = theEcalTBInfo->evXbeam();
40 double partYhodo = theEcalTBInfo->evYbeam();
42 LogDebug(
"EcalTBHodo") <<
"TB frame vertex (X,Y) for hodoscope simulation: \n"
43 <<
"x = " << partXhodo <<
" y = " << partYhodo;
49 int nPlanes = (int)theTBHodoGeom_->getNPlanes();
50 product->setPlanes(nPlanes);
52 for (
int iPlane = 0 ; iPlane < nPlanes ; ++iPlane) {
54 float theCoord = (float)partXhodo;
55 if (iPlane == 1 || iPlane == 3) theCoord = (float)partYhodo;
57 vector<int> firedChannels = theTBHodoGeom_->getFiredFibresInPlane(theCoord, iPlane);
58 unsigned int nChannels = firedChannels.size();
62 planeHit.
addHit(firedChannels[
i]);
65 product->setPlane((
unsigned int)iPlane, planeHit);
69 LogDebug(
"EcalTBHodo") << (*product);
T getUntrackedParameter(std::string const &, T const &) const
void addHit(unsigned int i)
void produce(edm::Event &event, const edm::EventSetup &eventSetup)
Produce digis out of raw data.
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
FakeTBHodoscopeRawInfoProducer(const edm::ParameterSet &ps)
Constructor.
virtual ~FakeTBHodoscopeRawInfoProducer()
Destructor.