16 produces<EcalTBHodoscopeRawInfo>();
27 delete theTBHodoGeom_;
38 event.getByLabel(ecalTBInfoLabel_,theEcalTBInfo);
40 double partXhodo = theEcalTBInfo->evXbeam();
41 double partYhodo = theEcalTBInfo->evYbeam();
43 LogDebug(
"EcalTBHodo") <<
"TB frame vertex (X,Y) for hodoscope simulation: \n"
44 <<
"x = " << partXhodo <<
" y = " << partYhodo;
50 int nPlanes = (int)theTBHodoGeom_->getNPlanes();
51 product->setPlanes(nPlanes);
53 for (
int iPlane = 0 ; iPlane < nPlanes ; ++iPlane) {
55 float theCoord = (float)partXhodo;
56 if (iPlane == 1 || iPlane == 3) theCoord = (float)partYhodo;
58 vector<int> firedChannels = theTBHodoGeom_->getFiredFibresInPlane(theCoord, iPlane);
59 unsigned int nChannels = firedChannels.size();
62 for (
unsigned int i = 0 ;
i < nChannels ; ++
i ) {
63 planeHit.
addHit(firedChannels[
i]);
66 product->setPlane((
unsigned int)iPlane, planeHit);
70 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.