33 #include <TObjArray.h> 55 bool charge(
int id,
int &charge)
const;
Cylinder::ConstCylinderPointer theTargetCylinder
minimal transverse^2 momentum after propagation to cylinder
unsigned int theNumPass
for final statistics: all seen events
~CosmicGenFilterHelix() override
Plane::ConstPlanePointer theTargetPlaneMax
plane closing cylinder at 'negative' side
const double theMinPt2
minimal momentum^2 after propagation to cylinder
const std::vector< int > theIds
const Propagator * getPropagator(const edm::EventSetup &setup) const
TObjArray theHistsAfter
hists of properties from generator
void createHistsStart(const char *dirName, TObjArray &hists)
for final statistics: events with track reaching target
def setup(process, global_tag, zero_tesla=False)
const MagneticField * getMagneticField(const edm::EventSetup &setup) const
provide magnetic field from Event Setup
bool propagateToCutCylinder(const GlobalPoint &vertStart, const GlobalVector &momStart, int charge, const MagneticField *field, const Propagator *propagator)
actually propagate to the defined cylinder
edm::EDGetTokenT< edm::HepMCProduct > theSrcToken
void monitorEnd(const GlobalPoint &endVert, const GlobalVector &endMom, const GlobalPoint &vert, const GlobalVector &mom, double path, TObjArray &hists)
CosmicGenFilterHelix(const edm::ParameterSet &config)
const std::vector< int > theCharges
requested Ids
bool equidistLogBins(double *bins, int nBins, double first, double last) const
void createHistsEnd(const char *dirName, TObjArray &hists)
TObjArray theHistsBefore
whether or not to fill monitor hists (needs TFileService)
bool charge(int id, int &charge) const
true if ID selected, return by value its charge
void monitorStart(const GlobalPoint &vert, const GlobalVector &mom, int charge, TObjArray &hists)
const std::string thePropagatorName
charges, parallel to theIds
bool filter(edm::Event &event, const edm::EventSetup &eventSetup) override
Plane::ConstPlanePointer theTargetPlaneMin
target cylinder, around z-axis
unsigned int theNumTotal
plane closing cylinder at 'positive' side