Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:07

0001 #ifndef RecoVertex_VertexHisto
0002 #define RecoVertex_VertexHisto
0003 
0004 #include <string>
0005 #include "RecoVertex/VertexPrimitives/interface/TransientVertex.h"
0006 // #include "RecoVertex/ConfigurableVertexReco/test/TrackHisto.h"
0007 #include "SimDataFormats/TrackingAnalysis/interface/TrackingVertex.h"
0008 #include "SimTracker/TrackAssociation/interface/TrackAssociatorBase.h"                                  
0009 
0010 class VertexHisto {
0011   /**
0012    *  Vertex histogramming.
0013    */
0014    public:
0015       VertexHisto( const std::string & filename="vertices.root",
0016                    const std::string & trackname="tracks.root" );
0017       ~VertexHisto();
0018       void analyse ( const TrackingVertex & sim, const TransientVertex & rec,
0019                      const std::string & name ) const;
0020       void saveTracks ( const TransientVertex & rec, 
0021                         const reco::RecoToSimCollection & p,
0022                         const std::string & name ) const;
0023    
0024    private:
0025       void stamp();
0026 
0027    private:
0028       std::string filename_;
0029    //   TrackHisto tracks_;
0030       bool hasStamped;
0031 };
0032 
0033 #endif